37 #ifndef __vtkLookupTable_h
38 #define __vtkLookupTable_h
44 #define VTK_RAMP_LINEAR 0
45 #define VTK_RAMP_SCURVE 1
46 #define VTK_RAMP_SQRT 2
47 #define VTK_SCALE_LINEAR 0
48 #define VTK_SCALE_LOG10 1
65 int Allocate(
int sz=256,
int ext=256);
76 virtual void ForceBuild();
86 vtkSetMacro(Ramp,
int);
90 vtkGetMacro(Ramp,
int);
97 void SetScale(
int scale);
100 vtkGetMacro(Scale,
int);
108 void SetTableRange(
double r[2]);
109 virtual void SetTableRange(
double min,
double max);
110 vtkGetVectorMacro(TableRange,
double,2);
116 vtkSetVector2Macro(HueRange,
double);
117 vtkGetVector2Macro(HueRange,
double);
123 vtkSetVector2Macro(SaturationRange,
double);
124 vtkGetVector2Macro(SaturationRange,
double);
130 vtkSetVector2Macro(ValueRange,
double);
131 vtkGetVector2Macro(ValueRange,
double);
137 vtkSetVector2Macro(AlphaRange,
double);
138 vtkGetVector2Macro(AlphaRange,
double);
144 vtkSetVector4Macro(NanColor,
double);
145 vtkGetVector4Macro(NanColor,
double);
153 void GetColor(
double x,
double rgb[3]);
164 void SetNumberOfTableValues(
vtkIdType number);
172 void SetTableValue(
vtkIdType indx,
double rgba[4]);
176 void SetTableValue(
vtkIdType indx,
double r,
double g,
double b,
double a=1.0);
184 void GetTableValue(
vtkIdType id,
double rgba[4]);
190 return this->Table->GetPointer(4*
id); };
197 unsigned char *WritePointer(
const vtkIdType id,
const int number);
202 double *
GetRange() {
return this->GetTableRange(); };
203 void SetRange(
double min,
double max) { this->SetTableRange(min, max); };
212 static void GetLogRange(
const double range[2],
double log_range[2]);
216 static double ApplyLogScale(
double v,
const double range[2],
217 const double log_range[2]);
241 int inputDataType,
int numberOfValues,
242 int inputIncrement,
int outputIncrement);
266 double TableRange[2];
268 double SaturationRange[2];
269 double ValueRange[2];
270 double AlphaRange[2];