Adds color to a graph. More...
#include <ogdf/simultaneous/SimDrawColorizer.h>
Inheritance diagram for ogdf::SimDrawColorizer:Classes | |
| class | SimDrawColorScheme |
| Manages the various color schemes. More... | |
Public Types | |
| enum class | colorScheme { none , bluYel , redGre , bluOra , teaLil , redBluYel , greLilOra } |
| types for colorschemes More... | |
Public Member Functions | |
| SimDrawColorizer (SimDraw &SD) | |
| constructor assigns default color scheme | |
| void | addColor () |
| adds some color to a graph | |
| void | addColorNodeVersion () |
| adds color to a graph including nodes | |
| colorScheme & | ColorScheme () |
| assigns a new color scheme | |
| const colorScheme & | ColorScheme () const |
| returns current color scheme | |
Public Member Functions inherited from ogdf::SimDrawManipulatorModule | |
| SimDrawManipulatorModule () | |
| default constructor | |
| SimDrawManipulatorModule (SimDraw &SD) | |
| constructor | |
| const SimDraw & | constSimDraw () const |
| returns base instance | |
| void | init (SimDraw &SD) |
| initializing base instance | |
Private Attributes | |
| colorScheme | m_colorScheme |
| stores the current colorscheme | |
Additional Inherited Members | |
Protected Attributes inherited from ogdf::SimDrawManipulatorModule | |
| Graph * | m_G |
| pointer to current graph | |
| GraphAttributes * | m_GA |
| pointer to current graphattributes | |
| SimDraw * | m_SD |
| pointer to current simdraw instance | |
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.
Definition at line 56 of file SimDrawColorizer.h.
|
strong |
types for colorschemes
Definition at line 59 of file SimDrawColorizer.h.
|
inlineexplicit |
constructor assigns default color scheme
Definition at line 75 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
|
inline |
assigns a new color scheme
Definition at line 83 of file SimDrawColorizer.h.
|
inline |
returns current color scheme
Definition at line 80 of file SimDrawColorizer.h.
|
private |
stores the current colorscheme
Definition at line 71 of file SimDrawColorizer.h.