62 #ifndef vtkNamedColors_h
63 #define vtkNamedColors_h
66 #include "vtkCommonColorModule.h"
71 VTK_ABI_NAMESPACE_BEGIN
72 class vtkNamedColorsDataStore;
73 class vtkColorStringParser;
96 int GetNumberOfColors();
124 void GetColor(
const vtkStdString&
name,
unsigned char& r,
unsigned char& g,
unsigned char& b,
159 void GetColor(
const vtkStdString&
name,
double& r,
double& g,
double& b,
double& a);
234 virtual void SetColor(
const vtkStdString&
name,
const unsigned char& r,
const unsigned char& g,
235 const unsigned char& b,
const unsigned char& a = 255);
243 virtual void SetColor(
const vtkStdString&
name,
const double& r,
const double& g,
const double& b,
244 const double& a = 1);
254 virtual void SetColor(
const vtkStdString&
name,
const unsigned char rgba[4]);
390 vtkNamedColorsDataStore* Colors;
391 vtkColorStringParser* Parser;
398 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...