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;
60 {this->SetRange(rng[0],rng[1]);}
65 virtual unsigned char *MapValue(
double v) = 0;
69 virtual void GetColor(
double v,
double rgb[3]) = 0;
75 {this->GetColor(v,this->RGB);
return this->RGB;}
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)
151 {this->MapScalarsThroughTable(scalars,output,
VTK_RGBA);}
157 virtual void MapScalarsThroughTable2(
void *input,
unsigned char *output,
158 int inputDataType,
int numberOfValues,
160 int outputFormat) = 0;
179 virtual vtkIdType GetNumberOfAvailableColors() = 0;
void MapScalarsThroughTable(vtkDataArray *scalars, unsigned char *output)
abstract base class for most VTK objects
void SetRange(double rng[2])
Superclass for mapping scalar values into colors.
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
abstract superclass for arrays of numeric data
virtual double GetOpacity(double vtkNotUsed(v))
dynamic, self-adjusting array of unsigned char
double * GetColor(double v)
double GetLuminance(double x)
virtual int UsingLogScale()