48 #ifndef __vtkScalarsToColors_h
49 #define __vtkScalarsToColors_h
70 virtual int IsOpaque();
77 virtual double *GetRange();
78 virtual void SetRange(
double min,
double max);
80 {this->SetRange(rng[0],rng[1]);}
85 virtual unsigned char *MapValue(
double v);
89 virtual void GetColor(
double v,
double rgb[3]);
95 {this->GetColor(v,this->RGB);
return this->RGB;}
100 virtual double GetOpacity(
double v);
107 {
double rgb[3]; this->GetColor(x,rgb);
108 return static_cast<double>(rgb[0]*0.30 + rgb[1]*0.59 + rgb[2]*0.11);}
116 virtual void SetAlpha(
double alpha);
117 vtkGetMacro(Alpha,
double);
138 vtkSetMacro(VectorMode,
int);
139 vtkGetMacro(VectorMode,
int);
140 void SetVectorModeToMagnitude();
141 void SetVectorModeToComponent();
142 void SetVectorModeToRGBColors();
157 vtkSetMacro(VectorComponent,
int);
158 vtkGetMacro(VectorComponent,
int);
167 vtkSetMacro(VectorSize,
int);
168 vtkGetMacro(VectorSize,
int);
177 void MapVectorsThroughTable(
void *
input,
unsigned char *output,
178 int inputDataType,
int numberOfValues,
179 int inputIncrement,
int outputFormat,
180 int vectorComponent,
int vectorSize);
182 int inputDataType,
int numberOfValues,
183 int inputIncrement,
int outputFormat)
184 { this->MapVectorsThroughTable(input, output, inputDataType, numberOfValues,
185 inputIncrement, outputFormat, -1, -1); }
196 unsigned char *output,
199 unsigned char *output)
200 {this->MapScalarsThroughTable(scalars,output,
VTK_RGBA);}
202 int inputDataType,
int numberOfValues,
205 {this->MapScalarsThroughTable2(input, output, inputDataType,
206 numberOfValues, inputIncrement, outputFormat);}
213 virtual void MapScalarsThroughTable2(
void *
input,
unsigned char *output,
214 int inputDataType,
int numberOfValues,
238 virtual vtkIdType GetNumberOfAvailableColors();
274 virtual void GetAnnotationColor(
const vtkVariant&
val,
double rgba[4]);
293 virtual void GetIndexedColor(
vtkIdType i,
double rgba[4]);
303 virtual void ResetAnnotations();
311 vtkSetMacro(IndexedLookup,
int);
312 vtkGetMacro(IndexedLookup,
int);
313 vtkBooleanMacro(IndexedLookup,
int);
330 void MapColorsToColors(
void *
input,
unsigned char *output,
331 int inputDataType,
int numberOfValues,
332 int numberOfComponents,
int vectorSize,
339 void MapVectorsToMagnitude(
void *
input,
double *output,
340 int inputDataType,
int numberOfValues,
341 int numberOfComponents,
int vectorSize);
347 virtual void UpdateAnnotatedValueMap();
350 class vtkInternalAnnotatedValueMap;
368 unsigned char RGBABytes[4];
369 double InputRange[2];
void MapScalarsThroughTable(vtkDataArray *scalars, unsigned char *output)
Wrapper around std::string to keep symbols short.
abstract base class for most VTK objects
GLenum GLenum GLenum input
Abstract superclass for all arrays.
void SetRange(double rng[2])
#define VTKCOMMONCORE_EXPORT
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
a vtkAbstractArray subclass for strings
GLsizei const GLfloat * value
A atomic type representing the union of many types.
Superclass for mapping scalar values to colors.
GLint GLint GLint GLint GLint x
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
GLboolean GLenum GLenum GLvoid * values
abstract superclass for arrays of numeric data
void MapScalarsThroughTable(void *input, unsigned char *output, int inputDataType, int numberOfValues, int inputIncrement, int outputFormat)
dynamic, self-adjusting array of unsigned char
double * GetColor(double v)
vtkStringArray * Annotations
void MapVectorsThroughTable(void *input, unsigned char *output, int inputDataType, int numberOfValues, int inputIncrement, int outputFormat)
GLclampf GLclampf GLclampf alpha
vtkInternalAnnotatedValueMap * AnnotatedValueMap
vtkAbstractArray * AnnotatedValues
double GetLuminance(double x)
virtual int UsingLogScale()