Open
Graph Drawing
Framework

 v.2012.07
 

ogdf::SimDrawColorizer::SimDrawColorScheme Class Reference

Manages the various color schemes. More...

#include <ogdf/simultaneous/SimDrawColorizer.h>

List of all members.

Public Member Functions

 SimDrawColorScheme (enum colorScheme colorScm, int numberOfGraphs)
 constructor
 ~SimDrawColorScheme ()
 destructor
void assignColScm (int numberOfGraphs)
 sets the color component arrays according to colorschemeXS
String getColor (int subGraphBits, int numberOfGraphs)
 joins the different color components together

Private Attributes

int * blue
 blue color component
int * green
 green color component
colorScheme m_intScheme
 stores the current colorscheme (set by constructor)
int * red
 red color component

Detailed Description

Manages the various color schemes.

Color schemes are used within SimDrawColorizer to chose different colors for the basic graph visualizations. It is used directly within SimDrawColorizer.

SimDraw SD;
[...]
SDC.ColorScheme() = SimDrawColorizer::redGre;
SDC.addColor();
[...]

CAUTION: Some color schemes are only valid for a small number (e.g. two or three) of basic graphs. The default color scheme can be used for up to 32 basic graphs.

Definition at line 124 of file SimDrawColorizer.h.


Constructor & Destructor Documentation

ogdf::SimDrawColorizer::SimDrawColorScheme::SimDrawColorScheme ( enum colorScheme  colorScm,
int  numberOfGraphs 
)

constructor

ogdf::SimDrawColorizer::SimDrawColorScheme::~SimDrawColorScheme ( )

destructor


Member Function Documentation

void ogdf::SimDrawColorizer::SimDrawColorScheme::assignColScm ( int  numberOfGraphs)

sets the color component arrays according to colorschemeXS

String ogdf::SimDrawColorizer::SimDrawColorScheme::getColor ( int  subGraphBits,
int  numberOfGraphs 
)

joins the different color components together


Member Data Documentation

int* ogdf::SimDrawColorizer::SimDrawColorScheme::blue
private

blue color component

stores the values of the blue color component for every graph according to colorscheme

Definition at line 146 of file SimDrawColorizer.h.

int* ogdf::SimDrawColorizer::SimDrawColorScheme::green
private

green color component

stores the values of the green color component for every graph according to colorscheme

Definition at line 140 of file SimDrawColorizer.h.

colorScheme ogdf::SimDrawColorizer::SimDrawColorScheme::m_intScheme
private

stores the current colorscheme (set by constructor)

Definition at line 128 of file SimDrawColorizer.h.

int* ogdf::SimDrawColorizer::SimDrawColorScheme::red
private

red color component

stores the values of the red color component for every graph according to colorscheme

Definition at line 134 of file SimDrawColorizer.h.


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