34 #ifndef __vtkScalarsToColors_h
35 #define __vtkScalarsToColors_h
50 virtual int IsOpaque();
57 virtual double *GetRange() = 0;
58 virtual void SetRange(
double min,
double max) = 0;
59 void SetRange(
double rng[2])
65 virtual unsigned char *MapValue(
double v) = 0;
69 virtual void GetColor(
double v,
double rgb[3]) = 0;
74 double *GetColor(
double v)
75 {this->
GetColor(v,this->RGB);
return this->RGB;}
81 virtual double GetOpacity(
double vtkNotUsed(v))
89 double GetLuminance(
double x)
90 {
double rgb[3]; this->GetColor(x,rgb);
91 return static_cast<double>(rgb[0]*0.30 + rgb[1]*0.59 + rgb[2]*0.11);}
99 virtual void SetAlpha(
double alpha);
100 vtkGetMacro(Alpha,
double);
119 vtkSetMacro(VectorMode,
int);
120 vtkGetMacro(VectorMode,
int);
121 void SetVectorModeToMagnitude();
122 void SetVectorModeToComponent();
136 vtkSetMacro(VectorComponent,
int);
137 vtkGetMacro(VectorComponent,
int);
147 unsigned char *output,
150 unsigned char *output)
157 virtual void MapScalarsThroughTable2(
void *input,
unsigned char *output,
158 int inputDataType,
int numberOfValues,
160 int outputFormat) = 0;
174 virtual int UsingLogScale()
179 virtual vtkIdType GetNumberOfAvailableColors() = 0;