Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

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 
38 namespace ogdf {
39 class SimDraw;
40 
42 
57 public:
59  enum class colorScheme {
60  none,
61  bluYel,
62  redGre,
63  bluOra,
64  teaLil,
65  redBluYel,
66  greLilOra
67  };
68 
69 private:
72 
73 public:
76  m_colorScheme = colorScheme::none;
77  }
78 
80  const colorScheme& ColorScheme() const { return m_colorScheme; }
81 
83  colorScheme& ColorScheme() { return m_colorScheme; }
84 
86  void addColorNodeVersion();
87 
89  void addColor();
90 
91 public:
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 }
ogdf::SimDraw
The Base class for simultaneous graph drawing.
Definition: SimDraw.h:55
ogdf::Color
Colors represented as RGBA values.
Definition: graphics.h:164
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
ogdf::SimDrawColorizer::ColorScheme
const colorScheme & ColorScheme() const
returns current color scheme
Definition: SimDrawColorizer.h:80
graphics.h
Declaration of basic types for graphics.
ogdf::SimDrawColorizer::SimDrawColorScheme::m_intScheme
colorScheme m_intScheme
stores the current colorscheme (set by constructor)
Definition: SimDrawColorizer.h:114
ogdf::SimDrawColorizer::SimDrawColorScheme::red
int * red
red color component
Definition: SimDrawColorizer.h:120
ogdf::SimDrawColorizer::SimDrawColorScheme::green
int * green
green color component
Definition: SimDrawColorizer.h:126
ogdf::SimDrawColorizer::SimDrawColorizer
SimDrawColorizer(SimDraw &SD)
constructor assigns default color scheme
Definition: SimDrawColorizer.h:75
ogdf::SimDrawColorizer::SimDrawColorScheme::blue
int * blue
blue color component
Definition: SimDrawColorizer.h:132
ogdf::SimDrawColorizer::ColorScheme
colorScheme & ColorScheme()
assigns a new color scheme
Definition: SimDrawColorizer.h:83
ogdf::SimDrawColorizer::m_colorScheme
colorScheme m_colorScheme
stores the current colorscheme
Definition: SimDrawColorizer.h:71
ogdf::SimDrawManipulatorModule
Interface for simdraw manipulators.
Definition: SimDrawManipulatorModule.h:62
ogdf::SimDrawColorizer
Adds color to a graph.
Definition: SimDrawColorizer.h:56
basic.h
Basic declarations, included by all source files.
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:111
SimDrawManipulatorModule.h
Module for simdraw manipulator classes.
ogdf::SimDrawColorizer::colorScheme
colorScheme
types for colorschemes
Definition: SimDrawColorizer.h:59