Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

SimDrawColorizer.h
Go to the documentation of this file.
1 
32 #pragma once
33 
35 
36 namespace ogdf
37 {
38 
40 
55 {
56 
57 public:
59  enum class colorScheme
60  {
61  none,
62  bluYel,
63  redGre,
64  bluOra,
65  teaLil,
66  redBluYel,
67  greLilOra
68  };
69 
70 private:
73 
74 public:
77  { m_colorScheme = colorScheme::none; }
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  {
113  private:
116 
118 
121  int *red;
122 
124 
127  int *green;
128 
130 
133  int *blue;
134 
135  public:
137  SimDrawColorScheme (colorScheme colorScm, int numberOfGraphs);
138 
141 
143  Color getColor(int subGraphBits, int numberOfGraphs);
144 
146  void assignColScm(int numberOfGraphs);
147  };
148 
149 };
150 
151 }
Module for simdraw manipulator classes.
colorScheme m_intScheme
stores the current colorscheme (set by constructor)
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
const colorScheme & ColorScheme() const
returns current color scheme
colorScheme
types for colorschemes
colorScheme & ColorScheme()
assigns a new color scheme
Manages the various color schemes.
Colors represented as RGBA values.
Definition: graphics.h:205
Adds color to a graph.
colorScheme m_colorScheme
stores the current colorscheme
SimDrawColorizer(SimDraw &SD)
constructor assigns default color scheme
The Base class for simultaneous graph drawing.
Definition: SimDraw.h:52
The namespace for all OGDF objects.
Interface for simdraw manipulators.