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;
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;
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