62 #ifndef vtkNamedColors_h
63 #define vtkNamedColors_h
66 #include "vtkCommonColorModule.h"
72 VTK_ABI_NAMESPACE_BEGIN
73 class vtkNamedColorsDataStore;
74 class vtkColorStringParser;
97 int GetNumberOfColors();
125 void GetColor(
const vtkStdString&
name,
unsigned char& r,
unsigned char& g,
unsigned char& b,
160 void GetColor(
const vtkStdString&
name,
double& r,
double& g,
double& b,
double& a);
235 virtual void SetColor(
const vtkStdString&
name,
const unsigned char& r,
const unsigned char& g,
236 const unsigned char& b,
const unsigned char& a = 255);
244 virtual void SetColor(
const vtkStdString&
name,
const double& r,
const double& g,
const double& b,
245 const double& a = 1);
255 virtual void SetColor(
const vtkStdString&
name,
const unsigned char rgba[4]);
391 vtkNamedColorsDataStore* Colors;
392 vtkColorStringParser* Parser;
399 VTK_ABI_NAMESPACE_END
Wrapper around std::string to keep symbols short.
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
A class holding colors and their names.
a vtkAbstractArray subclass for strings
Some derived classes for the different colors commonly used.
a simple class to control print indentation
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...