.Simulation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
ColorPicker.h
1 // ColorPicker.h - ColorPicker Class Declaration.
2 // Written By Jesse Z. Zhong
3 #ifndef __ColorPicker_H__
4 #define __ColorPicker_H__
5 #include "stdafx.h"
6 using namespace std;
7 namespace DataVisualizerGUI {
8 
12  class ColorPicker {
13  public:
14 
18  ColorPicker();
19 
23  ~ColorPicker();
24 
28  enum EDrawType {
29  Random = 0,
31  Preset
32  };
33 
37  QColor Draw(EDrawType type);
38 
42  void Reset();
43  protected:
47  void Init();
48 
49  // Members
50  vector<QColor> OrderedColorList_;
51  vector<QColor> PresetColorList_;
54  };
55 }
56 #endif // !__ColorPicker_H__
vector< QColor > OrderedColorList_
List of ordered colors.
Definition: ColorPicker.h:50
int OrderedDrawIndex_
Index that keeps track of the next color to draw with the next call of an ordered draw...
Definition: ColorPicker.h:52
Colors are picked from a list that is ordered by their position on a color spectrum.
Definition: ColorPicker.h:30
int PresetDrawIndex_
Index that keeps track of the next color to draw with the next call of a preset draw.
Definition: ColorPicker.h:53
EDrawType
Type of color drawing.
Definition: ColorPicker.h:28
Allows the drawing of a color from a list of presets.
Definition: ColorPicker.h:12
vector< QColor > PresetColorList_
List of preset colors.
Definition: ColorPicker.h:51