35 vtkColor3(
const T& red = 0,
const T& green = 0,
const T& blue = 0)
38 this->
Data[1] = green;
47 void Set(
const T& red,
const T& green,
const T& blue)
50 this->
Data[1] = green;
61 const T&
Red()
const {
return this->
Data[0]; }
79 const T&
Blue()
const {
return this->
Data[2]; }
89 vtkColor4(
const T& red = 0,
const T& green = 0,
const T& blue = 0,
93 this->
Data[1] = green;
95 this->
Data[3] = alpha;
103 void Set(
const T& red,
const T& green,
const T& blue)
106 this->
Data[1] = green;
107 this->
Data[2] = blue;
113 void Set(
const T& red,
const T& green,
const T& blue,
const T& alpha)
116 this->
Data[1] = green;
117 this->
Data[2] = blue;
118 this->
Data[3] = alpha;
128 const T&
Red()
const {
return this->
Data[0]; }
166 unsigned char b = 0) :
vtkColor3<unsigned char>(r, g, b) {}
192 unsigned char b = 0,
unsigned char a = 255)
193 :
vtkColor4<unsigned char>(r, g, b, a) {}
197 vtkColor4<unsigned char>(c[0], c[1], c[2], 255) {}
203 vtkColor4f(
float r = 0.0,
float g = 0.0,
float b = 0.0,
float a = 1.0)
211 vtkColor4d(
double r = 0.0,
double g = 0.0,
double b = 0.0,
float a = 1.0)
216 #endif // __vtkColor_h
const T & GetGreen() const
vtkColor3f(const float *init)
void SetAlpha(const T &alpha)
const T & GetAlpha() const
vtkColor4ub(const vtkColor3ub &c)
void Set(const T &red, const T &green, const T &blue, const T &alpha)
vtkColor3(const T &red=0, const T &green=0, const T &blue=0)
templated base type for storage of vectors.
void SetGreen(const T &green)
vtkColor3d(const double *init)
const T & GetBlue() const
vtkColor3d(double r=0.0, double g=0.0, double b=0.0)
void SetBlue(const T &blue)
vtkColor4f(float r=0.0, float g=0.0, float b=0.0, float a=1.0)
vtkColor4ub(const unsigned char *init)
void SetGreen(const T &green)
void SetRed(const T &red)
void SetRed(const T &red)
void Set(const T &red, const T &green, const T &blue)
vtkColor3ub(const unsigned char *init)
vtkColor4d(double r=0.0, double g=0.0, double b=0.0, float a=1.0)
void Set(const T &red, const T &green, const T &blue)
vtkColor4f(const float *init)
vtkColor4ub(unsigned char r=0, unsigned char g=0, unsigned char b=0, unsigned char a=255)
vtkColor3f(float r=0.0, float g=0.0, float b=0.0)
void SetBlue(const T &blue)
vtkColor3ub(unsigned char r=0, unsigned char g=0, unsigned char b=0)
const T & GetBlue() const
vtkColor4(const T &red=0, const T &green=0, const T &blue=0, const T &alpha=0)
vtkColor4d(const double *init)
const T & GetGreen() const