VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkLookupTableWithEnabling Class Reference

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>

Inheritance diagram for vtkLookupTableWithEnabling:
Inheritance graph
[legend]
Collaboration diagram for vtkLookupTableWithEnabling:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkLookupTable Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkLookupTableWithEnablingNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual vtkDataArrayGetEnabledArray ()
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 vtkLookupTableWithEnablingNew ()
static int IsTypeOf (const char *type)
static vtkLookupTableWithEnablingSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkLookupTableWithEnabling (int sze=256, int ext=256)
 ~vtkLookupTableWithEnabling ()

Protected Attributes

vtkDataArrayEnabledArray

Detailed Description

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.

Warning:
You must set the EnabledArray before MapScalars() is called. Indices of EnabledArray must map directly to those of the array passed to MapScalars().
Tests:
vtkLookupTableWithEnabling (Tests)

Definition at line 43 of file vtkLookupTableWithEnabling.h.


Member Typedef Documentation

Reimplemented from vtkLookupTable.

Definition at line 48 of file vtkLookupTableWithEnabling.h.


Constructor & Destructor Documentation

vtkLookupTableWithEnabling::vtkLookupTableWithEnabling ( int  sze = 256,
int  ext = 256 
) [protected]

Member Function Documentation

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.

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.

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.


Member Data Documentation

Definition at line 77 of file vtkLookupTableWithEnabling.h.


The documentation for this class was generated from the following file: