Documentation for vtkWindowLevelLookupTable

vtkWindowLevelLookupTable - map scalar values into colors or colors to scalars; generate color table

Super Class: vtkLookupTable

Description:

vtkWindowLevelLookupTable is an object that is used by mapper objects to map scalar values into rgba (red-green-blue-alpha transparency) color specification, or rgba into scalar values. The color table can be created by direct insertion of color values, or by specifying a window and level. Window / Level is used in medical imaging to specify a lienar greyscale ramp. The Level is the center of the ramp. The Window is the width of the ramp.

 

Caveats:

vtkWindowLevelLookupTable is a reference counted object. Therefore, you should always use operator "new" to construct new objects. This procedure will avoid memory problems (see text).

 

See Also:

vtkLogLookupTable

 

Methods:

void vtkWindowLevelLookupTable (int ,int )
static vtkWindowLevelLookupTable *New ()
const char *GetClassName ()
void PrintSelf (unknown & ,vtkIndent )
void Build ()
void SetWindow (float )
float GetWindow ()
void SetLevel (float )
float GetLevel ()
void SetInverseVideo (int )
int GetInverseVideo ()
void InverseVideoOn ()
void InverseVideoOff ()
void SetMinimumColor (unsigned char ,unsigned char ,unsigned char ,unsigned char )
void SetMinimumColor (unsigned char *)
unsigned char *GetMinimumColor ()
void SetMaximumColor (unsigned char ,unsigned char ,unsigned char ,unsigned char )
void SetMaximumColor (unsigned char *)
unsigned char *GetMaximumColor ()
int MapScalarToIndex (float )

 

Detailed Method Descriptions:

Generate lookup table from window and level. Table is built as a linear ramp, centered at Level and of width Window.

void Build ()

Set the Window for the lookuptable. Window is the width of the lookuptable ramp.

void SetWindow (float )
float GetWindow ()

Set the Level for the lookuptable. Level is the center of the ramp of the lookuptable. ramp.

void SetLevel (float )
float GetLevel ()

Set inverse video on or off.

void SetInverseVideo (int )
int GetInverseVideo ()
void InverseVideoOn ()
void InverseVideoOff ()

Set the Minimum color. All lookup table entries below the start of the ramp will be set to this color.

void SetMinimumColor (unsigned char ,unsigned char ,unsigned char ,unsigned char )
void SetMinimumColor (unsigned char *)
unsigned char *GetMinimumColor ()

Set the Maximum color. All lookup table entries above the end of the ramp will be set to this color.

void SetMaximumColor (unsigned char ,unsigned char ,unsigned char ,unsigned char )
void SetMaximumColor (unsigned char *)
unsigned char *GetMaximumColor ()