#include <vtkScalarsToColors.h>
Inheritance diagram for vtkScalarsToColors:
Public Methods | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | Build () |
virtual unsigned char * | MapValue (float v)=0 |
virtual void | GetColor (float v, float rgb[3])=0 |
virtual float * | GetRange ()=0 |
virtual void | SetRange (float min, float max)=0 |
void | SetRange (float rng[2]) |
float * | GetColor (float v) |
virtual float | GetOpacity (float vtkNotUsed(v)) |
float | GetLuminance (float x) |
void | SetAlpha (float alpha) |
virtual float | GetAlpha () |
vtkUnsignedCharArray * | MapScalars (vtkDataArray *scalars, int colorMode, int component) |
void | MapScalarsThroughTable (vtkDataArray *scalars, unsigned char *output, int outputFormat) |
void | MapScalarsThroughTable (vtkDataArray *scalars, unsigned char *output) |
virtual void | MapScalarsThroughTable2 (void *input, unsigned char *output, int inputDataType, int numberOfValues, int inputIncrement, int outputFormat)=0 |
virtual vtkUnsignedCharArray * | ConvertUnsignedCharToRGBA (vtkUnsignedCharArray *colors, int numComp, int numTuples) |
Static Public Methods | |
int | IsTypeOf (const char *type) |
vtkScalarsToColors * | SafeDownCast (vtkObject *o) |
Protected Methods | |
vtkScalarsToColors () | |
~vtkScalarsToColors () | |
Protected Attributes | |
float | Alpha |
vtkScalarsToColors is a general purpose superclass for objects that convert scalars to colors. This include vtkLookupTable classes and color transfer functions.
The scalars to color mapping can be augmented with an additional uniform alpha blend. This is used, for example, to blend a vtkActor's opacity with the lookup table values.
Definition at line 74 of file vtkScalarsToColors.h.
|
Definition at line 175 of file vtkScalarsToColors.h. |
|
Definition at line 176 of file vtkScalarsToColors.h. |
|
Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkLogLookupTable, vtkLookupTable, vtkWindowLevelLookupTable, and vtkColorTransferFunction. |
|
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 vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkLogLookupTable, vtkLookupTable, vtkWindowLevelLookupTable, and vtkColorTransferFunction. |
|
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 vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkLogLookupTable, vtkLookupTable, vtkWindowLevelLookupTable, and vtkColorTransferFunction. |
|
Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkLogLookupTable, vtkLookupTable, vtkWindowLevelLookupTable, and vtkColorTransferFunction. |
|
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 vtkObject. Reimplemented in vtkLogLookupTable, vtkLookupTable, vtkWindowLevelLookupTable, and vtkColorTransferFunction. |
|
Perform any processing required (if any) before processing scalars. Reimplemented in vtkLookupTable, and vtkWindowLevelLookupTable. Definition at line 81 of file vtkScalarsToColors.h. |
|
Sets/Gets the range of scalars which will be mapped. Reimplemented in vtkLookupTable, and vtkColorTransferFunction. |
|
Sets/Gets the range of scalars which will be mapped. Reimplemented in vtkLookupTable, and vtkColorTransferFunction. Referenced by vtkColorTransferFunction::SetRange(), and vtkLookupTable::SetRange().
|
|
Sets/Gets the range of scalars which will be mapped. Reimplemented in vtkLookupTable, and vtkColorTransferFunction. Definition at line 87 of file vtkScalarsToColors.h. |
|
Map one value through the lookup table and return a color defined as a RGBA unsigned char tuple (4 bytes). Reimplemented in vtkLookupTable, and vtkColorTransferFunction. |
|
Map one value through the lookup table and return the color as an RGB array of floats between 0 and 1. Reimplemented in vtkLookupTable, and vtkColorTransferFunction. Referenced by vtkColorTransferFunction::GetColor(), and vtkLookupTable::GetColor().
|
|
Map one value through the lookup table and return the color as an RGB array of floats between 0 and 1. Reimplemented in vtkLookupTable, and vtkColorTransferFunction. Definition at line 102 of file vtkScalarsToColors.h. |
|
Map one value through the lookup table and return the alpha value (the opacity) as a float between 0 and 1. Definition at line 109 of file vtkScalarsToColors.h. |
|
Map one value through the lookup table and return the luminance 0.3*red + 0.59*green + 0.11*blue as a float between 0 and 1. Returns the luminance value for the specified scalar value. Definition at line 117 of file vtkScalarsToColors.h. |
|
Specify an additional opacity (alpha) value to blend with. Values != 1 modify the resulting color consistent with the requested form of the output. This is typically used by an actor in order to blend its opacity. |
|
Specify an additional opacity (alpha) value to blend with. Values != 1 modify the resulting color consistent with the requested form of the output. This is typically used by an actor in order to blend its opacity. |
|
An internal method maps a data array into a 4-component, unsigned char RGBA array. The color mode determines the behavior of mapping. If VTK_COLOR_MODE_DEFAULT is set, then unsigned char data arrays are treated as colors (and converted to RGBA if necessary); otherwise, the data is mapped through this instance of ScalarsToColors. The offset is used for data arrays with more than one component; it indicates which component to use to do the blending. |
|
Map a set of scalars through the lookup table in a single operation. The output format can be set to VTK_RGBA (4 components), VTK_RGB (3 components), VTK_LUMINANCE (1 component, greyscale), or VTK_LUMINANCE_ALPHA (2 components) If not supplied, the output format defaults to RGBA. |
|
Map a set of scalars through the lookup table in a single operation. The output format can be set to VTK_RGBA (4 components), VTK_RGB (3 components), VTK_LUMINANCE (1 component, greyscale), or VTK_LUMINANCE_ALPHA (2 components) If not supplied, the output format defaults to RGBA. Definition at line 152 of file vtkScalarsToColors.h. |
|
An internal method typically not used in applications. Reimplemented in vtkLookupTable, and vtkColorTransferFunction. |
|
An internal method used to convert a color array to RGBA. The method instantiates a vtkUnsignedCharArray and returns it. The user is responsible for managing the memory. |
|
Definition at line 178 of file vtkScalarsToColors.h. |