62 #ifndef __vtkNamedColors_h
63 #define __vtkNamedColors_h
65 #include "vtkCommonColorModule.h"
71 class vtkNamedColorsDataStore;
88 int GetNumberOfColors();
108 unsigned char & r,
unsigned char & g,
109 unsigned char & b,
unsigned char & a);
116 void GetColor(
const vtkStdString & name,
unsigned char rgba[4]);
134 double & r,
double & g,
double & b,
double & a);
141 void GetColor(
const vtkStdString & name,
double rgba[4]);
164 double & r,
double & g,
double & b);
171 void GetColorRGB(
const vtkStdString & name,
double rgb[3]);
188 const unsigned char & r,
const unsigned char & g,
189 const unsigned char & b,
const unsigned char & a = 255);
197 const double & r,
const double & g,
198 const double & b,
const double & a = 1);
205 virtual void SetColor(
const vtkStdString & name,
const unsigned char rgba[4]);
220 virtual void SetColor(
const vtkStdString & name,
const double rgba[4]);
260 vtkNamedColorsDataStore *Colors;
Wrapper around std::string to keep symbols short.
abstract base class for most VTK objects
A class holding colors and their names.
a vtkAbstractArray subclass for strings
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation