67 #ifndef vtkNamedColors_h 68 #define vtkNamedColors_h 71 #include "vtkCommonColorModule.h" 76 class vtkNamedColorsDataStore;
77 class vtkColorStringParser;
100 int GetNumberOfColors();
128 void GetColor(
const vtkStdString&
name,
unsigned char& r,
unsigned char& g,
unsigned char& b,
163 void GetColor(
const vtkStdString&
name,
double& r,
double& g,
double& b,
double& a);
238 virtual void SetColor(
const vtkStdString&
name,
const unsigned char& r,
const unsigned char& g,
239 const unsigned char& b,
const unsigned char& a = 255);
247 virtual void SetColor(
const vtkStdString&
name,
const double& r,
const double& g,
const double& b,
248 const double& a = 1);
258 virtual void SetColor(
const vtkStdString&
name,
const unsigned char rgba[4]);
394 vtkNamedColorsDataStore* Colors;
395 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...