Go to the documentation of this file.
59 #ifndef vtkLookupTable_h
60 #define vtkLookupTable_h
67 #define VTK_RAMP_LINEAR 0
68 #define VTK_RAMP_SCURVE 1
69 #define VTK_RAMP_SQRT 2
70 #define VTK_SCALE_LINEAR 0
71 #define VTK_SCALE_LOG10 1
190 unsigned char colorOut[4]);
255 double r,
double g,
double b,
double a=1.0);
270 return this->Table->GetPointer(4*
id); };
277 unsigned char *WritePointer(
const vtkIdType id,
const int number);
282 double *
GetRange() {
return this->GetTableRange(); };
297 const double log_range[2]);
321 int inputDataType,
int numberOfValues,
322 int inputIncrement,
int outputIncrement);
351 double TableRange[2];
353 double SaturationRange[2];
354 double ValueRange[2];
355 double AlphaRange[2];
357 double BelowRangeColor[4];
359 double AboveRangeColor[4];
367 unsigned char NanColorChar[4];
386 return this->
Table->WritePointer(4*
id,4*number);
unsigned char * WritePointer(const vtkIdType id, const int number)
#define vtkGetObjectMacro(name, type)
#define VTKCOMMONCORE_EXPORT
#define vtkSetVector2Macro(name, type)
GLboolean GLboolean GLboolean b
void PrintSelf(ostream &os, vtkIndent indent)
vtkTimeStamp OpaqueFlagBuildTime
double * GetTableValue(vtkIdType id)
#define vtkGetVector2Macro(name, type)
unsigned char * GetNanColorAsUnsignedChars()
static const vtkIdType NAN_COLOR_INDEX
static vtkLookupTable * New()
virtual void SetTableValue(vtkIdType indx, double rgba[4])
vtkLookupTable(int sze=256, int ext=256)
static const vtkIdType ABOVE_RANGE_COLOR_INDEX
void ResizeTableForSpecialColors()
static const vtkIdType BELOW_RANGE_COLOR_INDEX
record modification and/or execution time
GLenum GLenum GLenum GLenum GLenum scale
dynamic, self-adjusting array of unsigned char
#define vtkTypeMacro(thisClass, superclass)
void SetTableRange(double r[2])
unsigned char * GetPointer(const vtkIdType id)
GLint GLint GLint GLint GLint x
static void GetColorAsUnsignedChars(const double colorIn[4], unsigned char colorOut[4])
static double ApplyLogScale(double v, const double range[2], const double log_range[2])
void SetTable(vtkUnsignedCharArray *)
unsigned char * MapValue(double v)
GLenum GLenum GLenum input
#define vtkGetVectorMacro(name, type, count)
virtual void ForceBuild()
void DeepCopy(vtkScalarsToColors *lut)
void MapScalarsThroughTable2(void *input, unsigned char *output, int inputDataType, int numberOfValues, int inputIncrement, int outputIncrement)
static const vtkIdType NUMBER_OF_SPECIAL_COLORS
#define vtkSetClampMacro(name, type, min, max)
virtual vtkIdType GetNumberOfAvailableColors()
virtual void SetTableRange(double min, double max)
a simple class to control print indentation
virtual void SetTableValue(vtkIdType indx, double r, double g, double b, double a=1.0)
double GetOpacity(double v)
#define vtkGetMacro(name, type)
Superclass for mapping scalar values to colors.
void GetTableValue(vtkIdType id, double rgba[4])
GLboolean GLboolean GLboolean GLboolean a
void SetRange(double min, double max)
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkIdType GetNumberOfTableValues()
vtkSetMacro(IgnoreDriverBugs, bool)
map scalar values into colors via a lookup table
#define vtkSetVector4Macro(name, type)
GLdouble GLdouble GLdouble r
int Allocate(int sz=256, int ext=256)
virtual void GetIndexedColor(vtkIdType idx, double rgba[4])
virtual int UsingLogScale()
static void GetLogRange(const double range[2], double log_range[2])
void GetColor(double x, double rgb[3])
void SetNumberOfTableValues(vtkIdType number)
vtkUnsignedCharArray * Table
#define vtkGetVector4Macro(name, type)
void SetRange(double rng[2])
virtual vtkIdType GetIndex(double v)