Go to the documentation of this file.
49 vtkColor3(
const T& red,
const T& green,
const T& blue)
52 this->
Data[1] = green;
60 void Set(
const T& red,
const T& green,
const T& blue)
63 this->
Data[1] = green;
120 this->
Data[1] = green;
121 this->
Data[2] = blue;
129 void Set(
const T& red,
const T& green,
const T& blue)
132 this->
Data[1] = green;
133 this->
Data[2] = blue;
141 void Set(
const T& red,
const T& green,
const T& blue,
const T&
alpha)
144 this->
Data[1] = green;
145 this->
Data[2] = blue;
209 unsigned int hex = static_cast<unsigned int>(hexSigned);
210 this->
Data[2] = hex & 0xff;
212 this->
Data[1] = hex & 0xff;
214 this->
Data[0] = hex & 0xff;
256 unsigned int hex = static_cast<unsigned int>(hexSigned);
257 this->
Data[3] = hex & 0xff;
259 this->
Data[2] = hex & 0xff;
261 this->
Data[1] = hex & 0xff;
263 this->
Data[0] = hex & 0xff;
268 unsigned char b,
unsigned char a = 255)
269 :
vtkColor4<unsigned char>(r, g, b, a) {}
271 vtkColor4<unsigned char>(c[0], c[1], c[2], 255) {}
T Data[Size]
The only thing stored in memory!
vtkColor4f(float r, float g, float b, float a=1.0)
const T & GetRed() const
Get the red component of the color, i.e.
void Set(const T &red, const T &green, const T &blue, const T &alpha)
Set the red, green, blue and alpha components of the color.
vtkColor3d(const double *init)
vtkColor4d(const double *init)
const T & GetRed() const
Get the red component of the color, i.e.
void SetAlpha(const T &alpha)
Set the alpha component of the color, i.e.
const T & GetBlue() const
Get the blue component of the color, i.e.
vtkColor4(const T &red, const T &green, const T &blue, const T &alpha)
vtkColor4d(double r, double g, double b, double a=1.0)
vtkColor4ub(unsigned char r, unsigned char g, unsigned char b, unsigned char a=255)
vtkColor4(const T &scalar)
void Set(const T &red, const T &green, const T &blue)
Set the red, green and blue components of the color.
void SetRed(const T &red)
Set the red component of the color, i.e.
vtkColor3ub(unsigned char r, unsigned char g, unsigned char b)
vtkColor3ub(int hexSigned)
Construct a color from a hexadecimal representation such as 0x0000FF (blue).
vtkColor4ub(const unsigned char *init)
vtkColor4ub(unsigned char scalar)
vtkColor3d(double r, double g, double b)
void SetBlue(const T &blue)
Set the blue component of the color, i.e.
vtkColor4f(const float *init)
void SetGreen(const T &green)
Set the green component of the color, i.e.
vtkColor3ub(unsigned char scalar)
void Set(const T &red, const T &green, const T &blue)
Set the red, green and blue components of the color.
void SetRed(const T &red)
Set the red component of the color, i.e.
vtkColor3ub(const unsigned char *init)
void SetBlue(const T &blue)
Set the blue component of the color, i.e.
vtkColor3f(float r, float g, float b)
Some derived classes for the different colors commonly used.
vtkColor4d(double scalar)
const T & GetAlpha() const
Get the alpha component of the color, i.e.
vtkColor3(const T &scalar)
void SetGreen(const T &green)
Set the green component of the color, i.e.
vtkColor4ub(int hexSigned)
Construct a color from a hexadecimal representation such as 0x0000FFAA (opaque blue).
vtkColor3(const T &red, const T &green, const T &blue)
templated base type for containers of constant size.
vtkColor3d(double scalar)
const T & GetGreen() const
Get the green component of the color, i.e.
const T & GetGreen() const
Get the green component of the color, i.e.
vtkColor3f(const float *init)
const T & GetBlue() const
Get the blue component of the color, i.e.
vtkColor4ub(const vtkColor3ub &c)