#include <vtkLookupTableWithEnabling.h>
vtkLookupTableWithEnabling "disables" or "grays out" output colors based on whether the given value in EnabledArray is "0" or not.
Definition at line 42 of file vtkLookupTableWithEnabling.h.
Public Types | |
typedef vtkLookupTable | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual vtkDataArray * | GetEnabledArray () |
virtual void | SetEnabledArray (vtkDataArray *enabledArray) |
void | MapScalarsThroughTable2 (void *input, unsigned char *output, int inputDataType, int numberOfValues, int inputIncrement, int outputIncrement) |
virtual void | DisableColor (unsigned char r, unsigned char g, unsigned char b, unsigned char *rd, unsigned char *gd, unsigned char *bd) |
Static Public Member Functions | |
static vtkLookupTableWithEnabling * | New () |
static int | IsTypeOf (const char *type) |
static vtkLookupTableWithEnabling * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkLookupTableWithEnabling (int sze=256, int ext=256) | |
~vtkLookupTableWithEnabling () | |
Protected Attributes | |
vtkDataArray * | EnabledArray |
vtkLookupTableWithEnabling::vtkLookupTableWithEnabling | ( | int | sze = 256 , |
|
int | ext = 256 | |||
) | [protected] |
vtkLookupTableWithEnabling::~vtkLookupTableWithEnabling | ( | ) | [protected] |
static vtkLookupTableWithEnabling* vtkLookupTableWithEnabling::New | ( | ) | [static] |
Construct with range=[0,1]; and hsv ranges set up for rainbow color table (from red to blue).
Reimplemented from vtkLookupTable.
virtual const char* vtkLookupTableWithEnabling::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkLookupTable.
static int vtkLookupTableWithEnabling::IsTypeOf | ( | const char * | name | ) | [static] |
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 vtkLookupTable.
virtual int vtkLookupTableWithEnabling::IsA | ( | const char * | name | ) | [virtual] |
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 vtkLookupTable.
static vtkLookupTableWithEnabling* vtkLookupTableWithEnabling::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkLookupTable.
void vtkLookupTableWithEnabling::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
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 vtkLookupTable.
virtual vtkDataArray* vtkLookupTableWithEnabling::GetEnabledArray | ( | ) | [virtual] |
This must be set before MapScalars() is called. Indices of this array must map directly to those in the scalars array passed to MapScalars(). Values of 0 in the array indicate the color should be desaturatated.
virtual void vtkLookupTableWithEnabling::SetEnabledArray | ( | vtkDataArray * | enabledArray | ) | [virtual] |
This must be set before MapScalars() is called. Indices of this array must map directly to those in the scalars array passed to MapScalars(). Values of 0 in the array indicate the color should be desaturatated.
void vtkLookupTableWithEnabling::MapScalarsThroughTable2 | ( | void * | input, | |
unsigned char * | output, | |||
int | inputDataType, | |||
int | numberOfValues, | |||
int | inputIncrement, | |||
int | outputIncrement | |||
) | [virtual] |
Map a set of scalars through the lookup table.
Reimplemented from vtkLookupTable.
virtual void vtkLookupTableWithEnabling::DisableColor | ( | unsigned char | r, | |
unsigned char | g, | |||
unsigned char | b, | |||
unsigned char * | rd, | |||
unsigned char * | gd, | |||
unsigned char * | bd | |||
) | [virtual] |
A convenience method for taking a color and desaturating it.
vtkDataArray* vtkLookupTableWithEnabling::EnabledArray [protected] |
Definition at line 76 of file vtkLookupTableWithEnabling.h.