Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
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
 
 ~SimDrawColorScheme ()
 destructor
 
void assignColScm (int numberOfGraphs)
 sets the color component arrays according to colorschemeXS
 
Color getColor (int subGraphBits, int numberOfGraphs)
 joins the different color components together
 

Private Attributes

intblue
 blue color component
 
intgreen
 green color component
 
colorScheme m_intScheme
 stores the current colorscheme (set by constructor)
 
intred
 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.

[...]
SDC.ColorScheme() = SimDrawColorizer::redGre;
SDC.addColor();
[...]
Adds color to a graph.
@ redGre
red and green <= 2 colors
The Base class for simultaneous graph drawing.
Definition SimDraw.h:50
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()

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 108 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 129 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 123 of file SimDrawColorizer.h.

◆ m_intScheme

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

stores the current colorscheme (set by constructor)

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


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