VTK
vtkColorSeries.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkColorSeries.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
29 #ifndef __vtkColorSeries_h
30 #define __vtkColorSeries_h
31 
32 #include "vtkObject.h"
33 #include "vtkColor.h" // Needed for vtkColor3ub
34 
36 {
37 public:
38  vtkTypeMacro(vtkColorSeries, vtkObject);
39  virtual void PrintSelf(ostream &os, vtkIndent indent);
40 
42  static vtkColorSeries* New();
43 
44 //BTX
46 
47  enum {
48  SPECTRUM = 0,
49  WARM,
50  COOL,
54  CUSTOM
55  };
56 //ETX
58 
60  void SetColorScheme(int scheme);
61 
63 
64  vtkGetMacro(ColorScheme, int);
66 
68  int GetNumberOfColors();
69 
70 //BTX
73  vtkColor3ub GetColor(int index) const;
74 
77  vtkColor3ub GetColorRepeating(int index) const;
78 
81  void SetColor(int index, const vtkColor3ub &color);
82 
84  void AddColor(const vtkColor3ub &color);
85 
87 
88  void InsertColor(int index, const vtkColor3ub &color);
89 //ETX
91 
93  void RemoveColor(int index);
94 
96  void ClearColors();
97 
99  void DeepCopy(vtkColorSeries *chartColors);
100 
101 //BTX
102 protected:
103  vtkColorSeries();
104  ~vtkColorSeries();
105 
107 
108  class Private;
109  Private *Storage;
111 
114 
115 private:
116  vtkColorSeries(const vtkColorSeries &); // Not implemented.
117  void operator=(const vtkColorSeries &); // Not implemented.
118 //ETX
119 };
120 
121 #endif //__vtkColorSeries_h
#define VTK_CHARTS_EXPORT
abstract base class for most VTK objects
Definition: vtkObject.h:60
7 colors from blue to magenta.
6 colors from green to orange.
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:37
7 different blues.
6 warm colors (red to yellow).
stores a list of colors.
7 cool colors (green to purple).
static vtkObject * New()
Private * Storage