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