VTK
|
A lookup table that allows for an optional array to be provided that specifies which scalars to "enable" and which to "disable". More...
#include <vtkLookupTableWithEnabling.h>
Public Types | |
typedef vtkLookupTable | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkLookupTableWithEnabling * | NewInstance () const |
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 (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkLookupTableWithEnabling (int sze=256, int ext=256) | |
~vtkLookupTableWithEnabling () | |
Protected Attributes | |
vtkDataArray * | EnabledArray |
A lookup table that allows for an optional array to be provided that specifies which scalars to "enable" and which to "disable".
vtkLookupTableWithEnabling "disables" or "grays out" output colors based on whether the given value in EnabledArray is "0" or not.
Definition at line 43 of file vtkLookupTableWithEnabling.h.
Reimplemented from vtkLookupTable.
Definition at line 48 of file vtkLookupTableWithEnabling.h.
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.
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 | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkLookupTable.
virtual vtkObjectBase* vtkLookupTableWithEnabling::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkLookupTable.
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 77 of file vtkLookupTableWithEnabling.h.