Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

SimDrawColorizer.h
Go to the documentation of this file.
1 
32 #pragma once
33 
35 
36 namespace ogdf {
37 
39 
54 public:
56  enum class colorScheme {
57  none,
58  bluYel,
59  redGre,
60  bluOra,
61  teaLil,
62  redBluYel,
63  greLilOra
64  };
65 
66 private:
69 
70 public:
73  m_colorScheme = colorScheme::none;
74  }
75 
77  const colorScheme& ColorScheme() const { return m_colorScheme; }
78 
80  colorScheme& ColorScheme() { return m_colorScheme; }
81 
83  void addColorNodeVersion();
84 
86  void addColor();
87 
88 public:
90 
109  private:
112 
114 
117  int* red;
118 
120 
123  int* green;
124 
126 
129  int* blue;
130 
131  public:
133  SimDrawColorScheme(colorScheme colorScm, int numberOfGraphs);
134 
137 
139  Color getColor(int subGraphBits, int numberOfGraphs);
140 
142  void assignColScm(int numberOfGraphs);
143  };
144 };
145 
146 }
ogdf::SimDraw
The Base class for simultaneous graph drawing.
Definition: SimDraw.h:50
ogdf::Color
Colors represented as RGBA values.
Definition: graphics.h:160
ogdf
The namespace for all OGDF objects.
Definition: AugmentationModule.h:36
ogdf::SimDrawColorizer::ColorScheme
const colorScheme & ColorScheme() const
returns current color scheme
Definition: SimDrawColorizer.h:77
ogdf::SimDrawColorizer::SimDrawColorScheme::m_intScheme
colorScheme m_intScheme
stores the current colorscheme (set by constructor)
Definition: SimDrawColorizer.h:111
ogdf::SimDrawColorizer::SimDrawColorScheme::red
int * red
red color component
Definition: SimDrawColorizer.h:117
ogdf::SimDrawColorizer::SimDrawColorScheme::green
int * green
green color component
Definition: SimDrawColorizer.h:123
ogdf::SimDrawColorizer::SimDrawColorizer
SimDrawColorizer(SimDraw &SD)
constructor assigns default color scheme
Definition: SimDrawColorizer.h:72
ogdf::SimDrawColorizer::SimDrawColorScheme::blue
int * blue
blue color component
Definition: SimDrawColorizer.h:129
ogdf::SimDrawColorizer::ColorScheme
colorScheme & ColorScheme()
assigns a new color scheme
Definition: SimDrawColorizer.h:80
ogdf::SimDrawColorizer::m_colorScheme
colorScheme m_colorScheme
stores the current colorscheme
Definition: SimDrawColorizer.h:68
ogdf::SimDrawManipulatorModule
Interface for simdraw manipulators.
Definition: SimDrawManipulatorModule.h:58
ogdf::SimDrawColorizer
Adds color to a graph.
Definition: SimDrawColorizer.h:53
OGDF_EXPORT
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:101
ogdf::SimDrawColorizer::SimDrawColorScheme
Manages the various color schemes.
Definition: SimDrawColorizer.h:108
SimDrawManipulatorModule.h
Module for simdraw manipulator classes.
ogdf::SimDrawColorizer::colorScheme
colorScheme
types for colorschemes
Definition: SimDrawColorizer.h:56