Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
SimDrawColorizer.h
Go to the documentation of this file.
1
32#pragma once
33
35
36namespace ogdf {
37
39
54public:
56 enum class colorScheme {
57 none,
58 bluYel,
59 redGre,
60 bluOra,
61 teaLil,
62 redBluYel,
63 greLilOra
64 };
65
66private:
69
70public:
73 m_colorScheme = colorScheme::none;
74 }
75
77 const colorScheme& ColorScheme() const { return m_colorScheme; }
78
80 colorScheme& ColorScheme() { return m_colorScheme; }
81
84
86 void addColor();
87
88public:
90
109 private:
112
114
117 int* red;
118
120
123 int* green;
124
126
129 int* blue;
130
131 public:
134
137
139 Color getColor(int subGraphBits, int numberOfGraphs);
140
143 };
144};
145
146}
Module for simdraw manipulator classes.
Colors represented as RGBA values.
Definition graphics.h:160
Manages the various color schemes.
void assignColScm(int numberOfGraphs)
sets the color component arrays according to colorschemeXS
SimDrawColorScheme(colorScheme colorScm, int numberOfGraphs)
constructor
colorScheme m_intScheme
stores the current colorscheme (set by constructor)
Color getColor(int subGraphBits, int numberOfGraphs)
joins the different color components together
Adds color to a graph.
void addColorNodeVersion()
adds color to a graph including nodes
const colorScheme & ColorScheme() const
returns current color scheme
colorScheme & ColorScheme()
assigns a new color scheme
SimDrawColorizer(SimDraw &SD)
constructor assigns default color scheme
colorScheme
types for colorschemes
void addColor()
adds some color to a graph
colorScheme m_colorScheme
stores the current colorscheme
The Base class for simultaneous graph drawing.
Definition SimDraw.h:50
Interface for simdraw manipulators.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition config.h:101
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.