Open
Graph Drawing
Framework

 v.2010.10
 

Classes | Public Types | Public Member Functions | Private Attributes

ogdf::SimDrawColorizer Class Reference

Adds color to a graph. More...

#include <ogdf/simultaneous/SimDrawColorizer.h>

Inheritance diagram for ogdf::SimDrawColorizer:
ogdf::SimDrawManipulatorModule

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
const colorSchemeColorScheme () const
 returns current color scheme
colorSchemeColorScheme ()
 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

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

Definition at line 76 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 81 of file SimDrawColorizer.h.


Constructor & Destructor Documentation

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

constructor assigns default color scheme

Definition at line 98 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 102 of file SimDrawColorizer.h.

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

assigns a new color scheme

Definition at line 105 of file SimDrawColorizer.h.


Member Data Documentation

stores the current colorscheme

Definition at line 94 of file SimDrawColorizer.h.


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