Open
Graph Drawing
Framework

 v.2012.05
 

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
String getColor (int subGraphBits, int numberOfGraphs)
 joins the different color components together
void assignColScm (int numberOfGraphs)
 sets the color component arrays according to colorschemeXS

Private Attributes

colorScheme m_intScheme
 stores the current colorscheme (set by constructor)
int * red
 red color component
int * green
 green color component
int * blue
 blue 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;
  SimDrawColorizer SDC(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 123 of file SimDrawColorizer.h.


Constructor & Destructor Documentation

constructor


Member Function Documentation

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

blue color component

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

Definition at line 145 of file SimDrawColorizer.h.

green color component

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

Definition at line 139 of file SimDrawColorizer.h.

stores the current colorscheme (set by constructor)

Definition at line 127 of file SimDrawColorizer.h.

red color component

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

Definition at line 133 of file SimDrawColorizer.h.


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