#include <vtkLookupTable.h>
Inheritance diagram for vtkLookupTable:
vtkLookupTable is an object that is used by mapper objects to map scalar values into rgba (red-green-blue-alpha transparency) color specification, or rgba into scalar values. The color table can be created by direct insertion of color values, or by specifying hue, saturation, value, and alpha range and generating a table.
Definition at line 50 of file vtkLookupTable.h.
Public Types | |
typedef vtkScalarsToColors | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
int | Allocate (int sz=256, int ext=256) |
virtual void | Build () |
unsigned char * | MapValue (double v) |
void | GetColor (double x, double rgb[3]) |
double | GetOpacity (double v) |
void | SetTableValue (vtkIdType indx, double rgba[4]) |
void | SetTableValue (vtkIdType indx, double r, double g, double b, double a=1.0) |
double * | GetTableValue (vtkIdType id) |
void | DeepCopy (vtkLookupTable *lut) |
virtual void | ForceBuild () |
virtual void | SetRamp (int) |
void | SetRampToLinear () |
void | SetRampToSCurve () |
void | SetRampToSQRT () |
virtual int | GetRamp () |
void | SetScale (int scale) |
void | SetScaleToLinear () |
void | SetScaleToLog10 () |
virtual int | GetScale () |
void | SetTableRange (double r[2]) |
virtual void | SetTableRange (double min, double max) |
virtual double * | GetTableRange () |
virtual void | GetTableRange (double data[2]) |
virtual void | SetHueRange (double, double) |
void | SetHueRange (double[2]) |
virtual double * | GetHueRange () |
virtual void | GetHueRange (double &, double &) |
virtual void | GetHueRange (double[2]) |
virtual void | SetSaturationRange (double, double) |
void | SetSaturationRange (double[2]) |
virtual double * | GetSaturationRange () |
virtual void | GetSaturationRange (double &, double &) |
virtual void | GetSaturationRange (double[2]) |
virtual void | SetValueRange (double, double) |
void | SetValueRange (double[2]) |
virtual double * | GetValueRange () |
virtual void | GetValueRange (double &, double &) |
virtual void | GetValueRange (double[2]) |
virtual void | SetAlphaRange (double, double) |
void | SetAlphaRange (double[2]) |
virtual double * | GetAlphaRange () |
virtual void | GetAlphaRange (double &, double &) |
virtual void | GetAlphaRange (double[2]) |
virtual vtkIdType | GetIndex (double v) |
void | SetNumberOfTableValues (vtkIdType number) |
vtkIdType | GetNumberOfTableValues () |
void | GetTableValue (vtkIdType id, double rgba[4]) |
unsigned char * | GetPointer (const vtkIdType id) |
unsigned char * | WritePointer (const vtkIdType id, const int number) |
double * | GetRange () |
void | SetRange (double min, double max) |
void | SetRange (double rng[2]) |
virtual void | SetNumberOfColors (vtkIdType) |
virtual vtkIdType | GetNumberOfColors () |
void | SetTable (vtkUnsignedCharArray *) |
virtual vtkUnsignedCharArray * | GetTable () |
void | MapScalarsThroughTable2 (void *input, unsigned char *output, int inputDataType, int numberOfValues, int inputIncrement, int outputIncrement) |
Static Public Member Functions | |
static vtkLookupTable * | New () |
static int | IsTypeOf (const char *type) |
static vtkLookupTable * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkLookupTable (int sze=256, int ext=256) | |
~vtkLookupTable () | |
Protected Attributes | |
vtkIdType | NumberOfColors |
vtkUnsignedCharArray * | Table |
double | TableRange [2] |
double | HueRange [2] |
double | SaturationRange [2] |
double | ValueRange [2] |
double | AlphaRange [2] |
int | Scale |
int | Ramp |
vtkTimeStamp | InsertTime |
vtkTimeStamp | BuildTime |
double | RGBA [4] |
|
Reimplemented from vtkScalarsToColors. Reimplemented in vtkLogLookupTable, and vtkWindowLevelLookupTable. Definition at line 57 of file vtkLookupTable.h. |
|
|
|
|
|
Construct with range=[0,1]; and hsv ranges set up for rainbow color table (from red to blue). Reimplemented from vtkObject. Reimplemented in vtkLogLookupTable, and vtkWindowLevelLookupTable. |
|
Reimplemented from vtkScalarsToColors. Reimplemented in vtkLogLookupTable, and vtkWindowLevelLookupTable. |
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkScalarsToColors. Reimplemented in vtkLogLookupTable, and vtkWindowLevelLookupTable. |
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkScalarsToColors. Reimplemented in vtkLogLookupTable, and vtkWindowLevelLookupTable. |
|
Reimplemented from vtkScalarsToColors. Reimplemented in vtkLogLookupTable, and vtkWindowLevelLookupTable. |
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from vtkScalarsToColors. Reimplemented in vtkLogLookupTable, and vtkWindowLevelLookupTable. |
|
Allocate a color table of specified size. |
|
Generate lookup table from hue, saturation, value, alpha min/max values. Table is built from linear ramp of each value. Reimplemented from vtkScalarsToColors. Reimplemented in vtkWindowLevelLookupTable. |
|
Force the lookup table to regenerate from hue, saturation, value, and alpha min/max values. Table is built from a linear ramp of each value. ForceBuild() is useful if a lookup table has been defined manually (using SetTableValue) and then an application decides to rebuild the lookup table using the implicit process. |
|
Set the shape of the table ramp to either linear or S-curve. The default is S-curve, which tails off gradually at either end. The equation used for the S-curve is y = (sin((x - 1/2)*pi) + 1)/2, while the equation for the linear ramp is simply y = x. For an S-curve greyscale ramp, you should set NumberOfTableValues to 402 (which is 256*pi/2) to provide room for the tails of the ramp. The equation for the SQRT is y = sqrt(x). |
|
Force the lookup table to regenerate from hue, saturation, value, and alpha min/max values. Table is built from a linear ramp of each value. ForceBuild() is useful if a lookup table has been defined manually (using SetTableValue) and then an application decides to rebuild the lookup table using the implicit process. Definition at line 83 of file vtkLookupTable.h. References VTK_RAMP_LINEAR. |
|
Force the lookup table to regenerate from hue, saturation, value, and alpha min/max values. Table is built from a linear ramp of each value. ForceBuild() is useful if a lookup table has been defined manually (using SetTableValue) and then an application decides to rebuild the lookup table using the implicit process. Definition at line 84 of file vtkLookupTable.h. References VTK_RAMP_SCURVE. |
|
Force the lookup table to regenerate from hue, saturation, value, and alpha min/max values. Table is built from a linear ramp of each value. ForceBuild() is useful if a lookup table has been defined manually (using SetTableValue) and then an application decides to rebuild the lookup table using the implicit process. Definition at line 85 of file vtkLookupTable.h. References VTK_RAMP_SQRT. |
|
Force the lookup table to regenerate from hue, saturation, value, and alpha min/max values. Table is built from a linear ramp of each value. ForceBuild() is useful if a lookup table has been defined manually (using SetTableValue) and then an application decides to rebuild the lookup table using the implicit process. |
|
Set the type of scale to use, linear or logarithmic. The default is linear. If the scale is logarithmic, then the TableRange must not cross the value zero. |
|
Set the type of scale to use, linear or logarithmic. The default is linear. If the scale is logarithmic, then the TableRange must not cross the value zero. Definition at line 94 of file vtkLookupTable.h. References VTK_SCALE_LINEAR. |
|
Set the type of scale to use, linear or logarithmic. The default is linear. If the scale is logarithmic, then the TableRange must not cross the value zero. Definition at line 95 of file vtkLookupTable.h. References VTK_SCALE_LOG10. |
|
Set the type of scale to use, linear or logarithmic. The default is linear. If the scale is logarithmic, then the TableRange must not cross the value zero. |
|
Set/Get the minimum/maximum scalar values for scalar mapping. Scalar values less than minimum range value are clamped to minimum range value. Scalar values greater than maximum range value are clamped to maximum range value. Referenced by vtkWindowLevelLookupTable::SetLevel(), and vtkWindowLevelLookupTable::SetWindow(). |
|
Set/Get the minimum/maximum scalar values for scalar mapping. Scalar values less than minimum range value are clamped to minimum range value. Scalar values greater than maximum range value are clamped to maximum range value. |
|
Set/Get the minimum/maximum scalar values for scalar mapping. Scalar values less than minimum range value are clamped to minimum range value. Scalar values greater than maximum range value are clamped to maximum range value. |
|
Set/Get the minimum/maximum scalar values for scalar mapping. Scalar values less than minimum range value are clamped to minimum range value. Scalar values greater than maximum range value are clamped to maximum range value. |
|
Set the range in hue (using automatic generation). Hue ranges between [0,1]. |
|
Set the range in hue (using automatic generation). Hue ranges between [0,1]. |
|
Set the range in hue (using automatic generation). Hue ranges between [0,1]. |
|
Set the range in hue (using automatic generation). Hue ranges between [0,1]. |
|
Set the range in hue (using automatic generation). Hue ranges between [0,1]. |
|
Set the range in saturation (using automatic generation). Saturation ranges between [0,1]. |
|
Set the range in saturation (using automatic generation). Saturation ranges between [0,1]. |
|
Set the range in saturation (using automatic generation). Saturation ranges between [0,1]. |
|
Set the range in saturation (using automatic generation). Saturation ranges between [0,1]. |
|
Set the range in saturation (using automatic generation). Saturation ranges between [0,1]. |
|
Set the range in value (using automatic generation). Value ranges between [0,1]. |
|
Set the range in value (using automatic generation). Value ranges between [0,1]. |
|
Set the range in value (using automatic generation). Value ranges between [0,1]. |
|
Set the range in value (using automatic generation). Value ranges between [0,1]. |
|
Set the range in value (using automatic generation). Value ranges between [0,1]. |
|
Set the range in alpha (using automatic generation). Alpha ranges from [0,1]. |
|
Set the range in alpha (using automatic generation). Alpha ranges from [0,1]. |
|
Set the range in alpha (using automatic generation). Alpha ranges from [0,1]. |
|
Set the range in alpha (using automatic generation). Alpha ranges from [0,1]. |
|
Set the range in alpha (using automatic generation). Alpha ranges from [0,1]. |
|
Map one value through the lookup table. Implements vtkScalarsToColors. |
|
Map one value through the lookup table and return the color as an RGB array of doubles between 0 and 1. Implements vtkScalarsToColors. |
|
Map one value through the lookup table and return the alpha value (the opacity) as a double between 0 and 1. |
|
Return the table index associated with a particular value. |
|
Specify the number of values (i.e., colors) in the lookup table. |
|
Return the table index associated with a particular value. Definition at line 154 of file vtkLookupTable.h. |
|
Directly load color into lookup table. Use [0,1] double values for color component specification. Make sure that you've either used the Build() method or used SetNumberOfTableValues() prior to using this method. |
|
Directly load color into lookup table. Use [0,1] double values for color component specification. |
|
Return a rgba color value for the given index into the lookup table. Color components are expressed as [0,1] double values. |
|
Return a rgba color value for the given index into the lookup table. Color components are expressed as [0,1] double values. |
|
Get pointer to color table data. Format is array of unsigned char r-g-b-a-r-g-b-a... Definition at line 178 of file vtkLookupTable.h. |
|
Get pointer to data. Useful for direct writes into object. MaxId is bumped by number (and memory allocated if necessary). Id is the location you wish to write into; number is the number of rgba values to write. Definition at line 246 of file vtkLookupTable.h. References InsertTime, vtkTimeStamp::Modified(), Table, and vtkUnsignedCharArray::WritePointer(). |
|
Sets/Gets the range of scalars which will be mapped. This is a duplicate of Get/SetTableRange. Implements vtkScalarsToColors. Definition at line 191 of file vtkLookupTable.h. |
|
Get pointer to data. Useful for direct writes into object. MaxId is bumped by number (and memory allocated if necessary). Id is the location you wish to write into; number is the number of rgba values to write. Implements vtkScalarsToColors. Definition at line 192 of file vtkLookupTable.h. |
|
Get pointer to data. Useful for direct writes into object. MaxId is bumped by number (and memory allocated if necessary). Id is the location you wish to write into; number is the number of rgba values to write. Reimplemented from vtkScalarsToColors. Definition at line 193 of file vtkLookupTable.h. References vtkScalarsToColors::SetRange(). |
|
Set the number of colors in the lookup table. Use SetNumberOfTableValues() instead, it can be used both before and after the table has been built whereas SetNumberOfColors() has no effect after the table has been built. |
|
Set the number of colors in the lookup table. Use SetNumberOfTableValues() instead, it can be used both before and after the table has been built whereas SetNumberOfColors() has no effect after the table has been built. |
|
Set/Get the internal table array that is used to map the scalars to colors. The table array is an unsigned char array with 4 components representing RGBA. |
|
Set/Get the internal table array that is used to map the scalars to colors. The table array is an unsigned char array with 4 components representing RGBA. |
|
map a set of scalars through the lookup table Implements vtkScalarsToColors. |
|
Copy the contents from another LookupTable |
|
Definition at line 227 of file vtkLookupTable.h. |
|
Definition at line 228 of file vtkLookupTable.h. Referenced by WritePointer(). |
|
Definition at line 229 of file vtkLookupTable.h. |
|
Definition at line 230 of file vtkLookupTable.h. |
|
Definition at line 231 of file vtkLookupTable.h. |
|
Definition at line 232 of file vtkLookupTable.h. |
|
Definition at line 233 of file vtkLookupTable.h. |
|
Definition at line 234 of file vtkLookupTable.h. |
|
Definition at line 235 of file vtkLookupTable.h. |
|
Definition at line 236 of file vtkLookupTable.h. Referenced by WritePointer(). |
|
Definition at line 237 of file vtkLookupTable.h. |
|
Definition at line 238 of file vtkLookupTable.h. |