Open
Graph Drawing
Framework

 v.2012.07
 

ogdf::SimDrawColorizer Class Reference

Adds color to a graph. More...

#include <ogdf/simultaneous/SimDrawColorizer.h>

+ Inheritance diagram for ogdf::SimDrawColorizer:

List of all members.

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
void addColor ()
 adds some color to a graph
void addColorNodeVersion ()
 adds color to a graph including nodes
const colorSchemeColorScheme () const
 returns current color scheme
colorSchemeColorScheme ()
 assigns a new color scheme
- Public Member Functions inherited from ogdf::SimDrawManipulatorModule
 SimDrawManipulatorModule ()
 default constructor
 SimDrawManipulatorModule (SimDraw &SD)
 constructor
const SimDrawconstSimDraw () 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
Graphm_G
 pointer to current graph
GraphAttributesm_GA
 pointer to current graphattributes
SimDrawm_SD
 pointer to current simdraw instance

Detailed Description

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;
[...]
SDC.addColor();
[...]

Definition at line 67 of file SimDrawColorizer.h.


Member Enumeration Documentation

types for colorschemes

Enumerator:
none 

<= 32 different colors

bluYel 

blue and yellow <= 2 colors

redGre 

red and green <= 2 colors

bluOra 

blue and orange <= 2 colors

teaLil 

teal and purple <= 2 colors

redBluYel 

red, blue and yellow <= 3 colors

greLilOra 

green, purple and orange <= 3 colors

Definition at line 72 of file SimDrawColorizer.h.


Constructor & Destructor Documentation

ogdf::SimDrawColorizer::SimDrawColorizer ( SimDraw SD)
inline

constructor assigns default color scheme

Definition at line 89 of file SimDrawColorizer.h.


Member Function Documentation

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 93 of file SimDrawColorizer.h.

colorScheme& ogdf::SimDrawColorizer::ColorScheme ( )
inline

assigns a new color scheme

Definition at line 96 of file SimDrawColorizer.h.


Member Data Documentation

colorScheme ogdf::SimDrawColorizer::m_colorScheme
private

stores the current colorscheme

Definition at line 85 of file SimDrawColorizer.h.


The documentation for this class was generated from the following file: