Manages the various color schemes. More...
#include <ogdf/simultaneous/SimDrawColorizer.h>
Public Member Functions | |
| SimDrawColorScheme (enum colorScheme colorScm, int numberOfGraphs) | |
| constructor | |
| ~SimDrawColorScheme () | |
| destructor | |
| String | getColor (int subGraphBits, int numberOfGraphs) |
| joins the different color components together | |
| void | assignColScm (int numberOfGraphs) |
| sets the color component arrays according to colorschemeXS | |
Private Attributes | |
| colorScheme | m_intScheme |
| stores the current colorscheme (set by constructor) | |
| int * | red |
| red color component | |
| int * | green |
| green color component | |
| int * | blue |
| blue color component | |
Manages the various color schemes.
Color schemes are used within SimDrawColorizer to chose different colors for the basic graph visualizations. It is used directly within SimDrawColorizer.
SimDraw SD; SimDrawColorizer SDC(SD); [...] SDC.ColorScheme() = SimDrawColorizer::redGre; SDC.addColor(); [...]
CAUTION: Some color schemes are only valid for a small number (e.g. two or three) of basic graphs. The default color scheme can be used for up to 32 basic graphs.
Definition at line 123 of file SimDrawColorizer.h.
| ogdf::SimDrawColorizer::SimDrawColorScheme::SimDrawColorScheme | ( | enum colorScheme | colorScm, |
| int | numberOfGraphs | ||
| ) |
constructor
| void ogdf::SimDrawColorizer::SimDrawColorScheme::assignColScm | ( | int | numberOfGraphs | ) |
sets the color component arrays according to colorschemeXS
| String ogdf::SimDrawColorizer::SimDrawColorScheme::getColor | ( | int | subGraphBits, |
| int | numberOfGraphs | ||
| ) |
joins the different color components together
int* ogdf::SimDrawColorizer::SimDrawColorScheme::blue [private] |
blue color component
stores the values of the blue color component for every graph according to colorscheme
Definition at line 145 of file SimDrawColorizer.h.
int* ogdf::SimDrawColorizer::SimDrawColorScheme::green [private] |
green color component
stores the values of the green color component for every graph according to colorscheme
Definition at line 139 of file SimDrawColorizer.h.
stores the current colorscheme (set by constructor)
Definition at line 127 of file SimDrawColorizer.h.
int* ogdf::SimDrawColorizer::SimDrawColorScheme::red [private] |
red color component
stores the values of the red color component for every graph according to colorscheme
Definition at line 133 of file SimDrawColorizer.h.