Adds color to a graph. More...
#include <ogdf/simultaneous/SimDrawColorizer.h>
Classes | |
| class | SimDrawColorScheme |
| Manages the various color schemes. More... | |
Public Types | |
| enum | colorScheme { none, bluYel, redGre, bluOra, teaLil, redBluYel, greLilOra } |
types for colorschemes More... | |
Public Member Functions | |
| SimDrawColorizer (SimDraw &SD) | |
| constructor assigns default color scheme | |
| const colorScheme & | ColorScheme () const |
| returns current color scheme | |
| colorScheme & | ColorScheme () |
| assigns a new color scheme | |
| void | addColorNodeVersion () |
| adds color to a graph including nodes | |
| void | addColor () |
| adds some color to a graph | |
Private Attributes | |
| colorScheme | m_colorScheme |
| stores the current colorscheme | |
Adds color to a graph.
SimDrawColorizer adds colors to the edges (and nodes) of a simdraw instance. The underlying color scheme sets the used colors. Some color schemes are only usable for a small number of basic graphs.
A typical use of SimDrawColorizer involves a predefined SimDraw instance on which SimDrawColorizer works.
SimDraw SD; SimDrawColorizer SDC(SD); [...] SDC.addColor(); [...]
Definition at line 76 of file SimDrawColorizer.h.
types for colorschemes
Definition at line 81 of file SimDrawColorizer.h.
| ogdf::SimDrawColorizer::SimDrawColorizer | ( | SimDraw & | SD | ) | [inline] |
constructor assigns default color scheme
Definition at line 98 of file SimDrawColorizer.h.
| void ogdf::SimDrawColorizer::addColor | ( | ) |
adds some color to a graph
| void ogdf::SimDrawColorizer::addColorNodeVersion | ( | ) |
adds color to a graph including nodes
| const colorScheme& ogdf::SimDrawColorizer::ColorScheme | ( | ) | const [inline] |
returns current color scheme
Definition at line 102 of file SimDrawColorizer.h.
| colorScheme& ogdf::SimDrawColorizer::ColorScheme | ( | ) | [inline] |
assigns a new color scheme
Definition at line 105 of file SimDrawColorizer.h.
stores the current colorscheme
Definition at line 94 of file SimDrawColorizer.h.