vtkLookupTableWithEnabling Class Reference

#include <vtkLookupTableWithEnabling.h>

Inheritance diagram for vtkLookupTableWithEnabling:

Inheritance graph
[legend]
Collaboration diagram for vtkLookupTableWithEnabling:

Collaboration graph
[legend]

List of all members.


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 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 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 (vtkObject *o)

Protected Member Functions

 vtkLookupTableWithEnabling (int sze=256, int ext=256)
 ~vtkLookupTableWithEnabling ()

Protected Attributes

vtkDataArrayEnabledArray

Member Typedef Documentation

Reimplemented from vtkLookupTable.

Definition at line 47 of file vtkLookupTableWithEnabling.h.


Constructor & Destructor Documentation

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

vtkLookupTableWithEnabling::~vtkLookupTableWithEnabling (  )  [protected]


Member Function Documentation

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.


Member Data Documentation

Definition at line 76 of file vtkLookupTableWithEnabling.h.


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

Generated on Wed Aug 24 11:46:27 2011 for VTK by  doxygen 1.5.6