Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

ogdf::SimDrawColorizer::SimDrawColorScheme Class Reference

Manages the various color schemes. More...

#include <ogdf/simultaneous/SimDrawColorizer.h>

Public Member Functions

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

Private Attributes

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

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

Constructor & Destructor Documentation

◆ SimDrawColorScheme()

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

constructor

◆ ~SimDrawColorScheme()

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

destructor

Member Function Documentation

◆ assignColScm()

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

sets the color component arrays according to colorschemeXS

◆ getColor()

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

joins the different color components together

Member Data Documentation

◆ blue

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

◆ green

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

◆ m_intScheme

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

stores the current colorscheme (set by constructor)

Definition at line 114 of file SimDrawColorizer.h.

◆ red

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


The documentation for this class was generated from the following file:
ogdf::SimDrawColorizer::SimDrawColorizer
SimDrawColorizer(SimDraw &SD)
constructor assigns default color scheme
Definition: SimDrawColorizer.h:75