59 #ifndef vtkLookupTable_h
60 #define vtkLookupTable_h
69 #define VTK_RAMP_LINEAR 0
70 #define VTK_RAMP_SCURVE 1
71 #define VTK_RAMP_SQRT 2
72 #define VTK_SCALE_LINEAR 0
73 #define VTK_SCALE_LOG10 1
100 int Allocate(
int sz=256,
int ext=256);
104 virtual void Build();
111 virtual void ForceBuild();
132 void SetScale(
int scale);
144 void SetTableRange(
double r[2]);
145 virtual void SetTableRange(
double min,
double max);
186 unsigned char* GetNanColorAsUnsignedChars();
191 static void GetColorAsUnsignedChars(
const double colorIn[4],
192 unsigned char colorOut[4]);
243 void SetNumberOfTableValues(
vtkIdType number);
251 virtual void SetTableValue(
vtkIdType indx,
double rgba[4]);
256 virtual void SetTableValue(
vtkIdType indx,
257 double r,
double g,
double b,
double a=1.0);
266 void GetTableValue(
vtkIdType id,
double rgba[4]);
272 return this->Table->GetPointer(4*
id); };
279 unsigned char *WritePointer(
const vtkIdType id,
const int number);
284 double *
GetRange() {
return this->GetTableRange(); };
285 void SetRange(
double min,
double max) { this->SetTableRange(min, max); };
294 static void GetLogRange(
const double range[2],
double log_range[2]);
298 static double ApplyLogScale(
double v,
const double range[2],
299 const double log_range[2]);
323 int inputDataType,
int numberOfValues,
324 int inputIncrement,
int outputIncrement);
353 double TableRange[2];
355 double SaturationRange[2];
356 double ValueRange[2];
357 double AlphaRange[2];
359 double BelowRangeColor[4];
361 double AboveRangeColor[4];
369 unsigned char NanColorChar[4];
386 return this->
Table->WritePointer(4*
id,4*number);
GLboolean GLboolean GLboolean b
void SetRange(double min, double max)
virtual int UsingLogScale()
GLenum GLenum GLenum input
vtkTimeStamp OpaqueFlagBuildTime
GLenum GLenum GLenum GLenum GLenum scale
#define VTKCOMMONCORE_EXPORT
#define vtkGetMacro(name, type)
record modification and/or execution time
map scalar values into colors via a lookup table
#define vtkSetClampMacro(name, type, min, max)
virtual void MapScalarsThroughTable2(void *input, unsigned char *output, int inputDataType, int numberOfValues, int inputIncrement, int outputFormat)
vtkSimpleMutexLock * ResizeMutex
GLdouble GLdouble GLdouble r
static const vtkIdType NUMBER_OF_SPECIAL_COLORS
#define vtkTypeMacro(thisClass, superclass)
virtual unsigned char * MapValue(double v)
Superclass for mapping scalar values to colors.
GLint GLint GLint GLint GLint x
virtual double GetOpacity(double v)
static vtkScalarsToColors * New()
#define vtkSetVector4Macro(name, type)
a simple class to control print indentation
virtual void GetColor(double v, double rgb[3])
vtkIdType GetNumberOfTableValues()
#define vtkGetVector4Macro(name, type)
#define vtkGetObjectMacro(name, type)
static const vtkIdType NAN_COLOR_INDEX
unsigned char * GetPointer(const vtkIdType id)
dynamic, self-adjusting array of unsigned char
void SetRange(double rng[2])
GLboolean GLboolean GLboolean GLboolean a
unsigned char * WritePointer(const vtkIdType id, const int number)
vtkUnsignedCharArray * Table
#define vtkGetVector2Macro(name, type)
virtual void GetIndexedColor(vtkIdType i, double rgba[4])
#define vtkBooleanMacro(name, type)
static const vtkIdType BELOW_RANGE_COLOR_INDEX
virtual void DeepCopy(vtkScalarsToColors *o)
void PrintSelf(ostream &os, vtkIndent indent)
#define vtkGetVectorMacro(name, type, count)
static const vtkIdType ABOVE_RANGE_COLOR_INDEX
#define vtkSetVector2Macro(name, type)
virtual vtkIdType GetNumberOfAvailableColors()
#define vtkSetMacro(name, type)