Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
SimDrawColorizer.h
Go to the documentation of this file.
1
32#pragma once
33
34#include <ogdf/basic/basic.h>
35#include <ogdf/basic/graphics.h>
37
38namespace ogdf {
39class SimDraw;
40
42
57public:
59 enum class colorScheme {
60 none,
61 bluYel,
62 redGre,
63 bluOra,
64 teaLil,
65 redBluYel,
66 greLilOra
67 };
68
69private:
72
73public:
76 m_colorScheme = colorScheme::none;
77 }
78
80 const colorScheme& ColorScheme() const { return m_colorScheme; }
81
83 colorScheme& ColorScheme() { return m_colorScheme; }
84
87
89 void addColor();
90
91public:
93
112 private:
115
117
120 int* red;
121
123
126 int* green;
127
129
132 int* blue;
133
134 public:
136 SimDrawColorScheme(colorScheme colorScm, int numberOfGraphs);
137
140
142 Color getColor(int subGraphBits, int numberOfGraphs);
143
145 void assignColScm(int numberOfGraphs);
146 };
147};
148
149}
Module for simdraw manipulator classes.
Basic declarations, included by all source files.
Colors represented as RGBA values.
Definition graphics.h:164
Manages the various color schemes.
void assignColScm(int numberOfGraphs)
sets the color component arrays according to colorschemeXS
SimDrawColorScheme(colorScheme colorScm, int numberOfGraphs)
constructor
colorScheme m_intScheme
stores the current colorscheme (set by constructor)
Color getColor(int subGraphBits, int numberOfGraphs)
joins the different color components together
Adds color to a graph.
void addColorNodeVersion()
adds color to a graph including nodes
const colorScheme & ColorScheme() const
returns current color scheme
colorScheme & ColorScheme()
assigns a new color scheme
SimDrawColorizer(SimDraw &SD)
constructor assigns default color scheme
colorScheme
types for colorschemes
void addColor()
adds some color to a graph
colorScheme m_colorScheme
stores the current colorscheme
The Base class for simultaneous graph drawing.
Definition SimDraw.h:55
Interface for simdraw manipulators.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF dynamic library (shared object / DLL),...
Definition config.h:117
Declaration of basic types for graphics.
The namespace for all OGDF objects.