Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

vtkWindowLevelLookupTable Class Reference

map scalar values into colors or colors to scalars; generate color table. More...

#include <vtkWindowLevelLookupTable.h>

Inheritance diagram for vtkWindowLevelLookupTable:

Inheritance graph
[legend]
Collaboration diagram for vtkWindowLevelLookupTable:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
void Build ()
virtual void SetWindow (float)
virtual float GetWindow ()
virtual void SetLevel (float)
virtual float GetLevel ()
virtual void SetInverseVideo (int)
virtual int GetInverseVideo ()
virtual void InverseVideoOn ()
virtual void InverseVideoOff ()
virtual void SetMinimumColor (unsigned char, unsigned char, unsigned char, unsigned char)
virtual void SetMinimumColor (unsigned char[4])
virtual unsigned char * GetMinimumColor ()
virtual void GetMinimumColor (unsigned char data[4])
virtual void SetMaximumColor (unsigned char, unsigned char, unsigned char, unsigned char)
virtual void SetMaximumColor (unsigned char[4])
virtual unsigned char * GetMaximumColor ()
virtual void GetMaximumColor (unsigned char data[4])

Static Public Methods

vtkWindowLevelLookupTable * New ()
int IsTypeOf (const char *type)
vtkWindowLevelLookupTable * SafeDownCast (vtkObject *o)

Protected Methods

 vtkWindowLevelLookupTable (int sze=256, int ext=256)
 ~vtkWindowLevelLookupTable ()
 vtkWindowLevelLookupTable (const vtkWindowLevelLookupTable &)
void operator= (const vtkWindowLevelLookupTable &)
int MapScalarToIndex (float scalar)

Protected Attributes

float Window
float Level
int InverseVideo
unsigned char MinimumColor [4]
unsigned char MaximumColor [4]

Detailed Description

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

D% V%

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 linear greyscale ramp. The Level is the center of the ramp. The Window is the width of the ramp.

Warning:
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
Examples:
vtkWindowLevelLookupTable (examples)

Definition at line 70 of file vtkWindowLevelLookupTable.h.


Constructor & Destructor Documentation

vtkWindowLevelLookupTable::vtkWindowLevelLookupTable int    sze = 256,
int    ext = 256
[protected]
 

vtkWindowLevelLookupTable::~vtkWindowLevelLookupTable   [inline, protected]
 

Definition at line 108 of file vtkWindowLevelLookupTable.h.

vtkWindowLevelLookupTable::vtkWindowLevelLookupTable const vtkWindowLevelLookupTable &    [inline, protected]
 

Definition at line 109 of file vtkWindowLevelLookupTable.h.


Member Function Documentation

vtkWindowLevelLookupTable* vtkWindowLevelLookupTable::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* vtkWindowLevelLookupTable::GetClassName   [virtual]
 

Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkLookupTable.

int vtkWindowLevelLookupTable::IsTypeOf const char *    type [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 vtkWindowLevelLookupTable::IsA const char *    type [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.

vtkWindowLevelLookupTable* vtkWindowLevelLookupTable::SafeDownCast vtkObject   o [static]
 

Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkLookupTable.

void vtkWindowLevelLookupTable::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.

void vtkWindowLevelLookupTable::Build   [virtual]
 

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

Reimplemented from vtkLookupTable.

virtual void vtkWindowLevelLookupTable::SetWindow float    [virtual]
 

Set the Window for the lookup table. Window is the width of the lookup table ramp.

virtual float vtkWindowLevelLookupTable::GetWindow   [virtual]
 

virtual void vtkWindowLevelLookupTable::SetLevel float    [virtual]
 

Set the Level for the lookup table. Level is the center of the ramp of the lookup table.

virtual float vtkWindowLevelLookupTable::GetLevel   [virtual]
 

virtual void vtkWindowLevelLookupTable::SetInverseVideo int    [virtual]
 

Set inverse video on or off.

virtual int vtkWindowLevelLookupTable::GetInverseVideo   [virtual]
 

virtual void vtkWindowLevelLookupTable::InverseVideoOn   [virtual]
 

virtual void vtkWindowLevelLookupTable::InverseVideoOff   [virtual]
 

virtual void vtkWindowLevelLookupTable::SetMinimumColor unsigned    char,
unsigned    char,
unsigned    char,
unsigned    char
[virtual]
 

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

virtual void vtkWindowLevelLookupTable::SetMinimumColor unsigned    char[4] [virtual]
 

virtual unsigned char* vtkWindowLevelLookupTable::GetMinimumColor   [virtual]
 

virtual void vtkWindowLevelLookupTable::GetMinimumColor unsigned char    data[4] [virtual]
 

virtual void vtkWindowLevelLookupTable::SetMaximumColor unsigned    char,
unsigned    char,
unsigned    char,
unsigned    char
[virtual]
 

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

virtual void vtkWindowLevelLookupTable::SetMaximumColor unsigned    char[4] [virtual]
 

virtual unsigned char* vtkWindowLevelLookupTable::GetMaximumColor   [virtual]
 

virtual void vtkWindowLevelLookupTable::GetMaximumColor unsigned char    data[4] [virtual]
 

void vtkWindowLevelLookupTable::operator= const vtkWindowLevelLookupTable &    [inline, protected]
 

Definition at line 110 of file vtkWindowLevelLookupTable.h.

int vtkWindowLevelLookupTable::MapScalarToIndex float    scalar [protected]
 


Member Data Documentation

float vtkWindowLevelLookupTable::Window [protected]
 

Definition at line 112 of file vtkWindowLevelLookupTable.h.

float vtkWindowLevelLookupTable::Level [protected]
 

Definition at line 113 of file vtkWindowLevelLookupTable.h.

int vtkWindowLevelLookupTable::InverseVideo [protected]
 

Definition at line 115 of file vtkWindowLevelLookupTable.h.

unsigned char vtkWindowLevelLookupTable::MinimumColor[4] [protected]
 

Definition at line 116 of file vtkWindowLevelLookupTable.h.

unsigned char vtkWindowLevelLookupTable::MaximumColor[4] [protected]
 

Definition at line 117 of file vtkWindowLevelLookupTable.h.


The documentation for this class was generated from the following file:
Generated on Wed Nov 21 13:03:22 2001 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001