74 #ifndef vtkNamedColors_h
75 #define vtkNamedColors_h
78 #include "vtkCommonColorModule.h"
83 class vtkNamedColorsDataStore;
84 class vtkColorStringParser;
107 int GetNumberOfColors();
135 void GetColor(
const vtkStdString&
name,
unsigned char& r,
unsigned char& g,
unsigned char& b,
170 void GetColor(
const vtkStdString&
name,
double& r,
double& g,
double& b,
double& a);
245 virtual void SetColor(
const vtkStdString&
name,
const unsigned char& r,
const unsigned char& g,
246 const unsigned char& b,
const unsigned char& a = 255);
254 virtual void SetColor(
const vtkStdString&
name,
const double& r,
const double& g,
const double& b,
255 const double& a = 1);
265 virtual void SetColor(
const vtkStdString&
name,
const unsigned char rgba[4]);
401 vtkNamedColorsDataStore* Colors;
402 vtkColorStringParser* Parser;
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...