vtkWindowLevelLookupTable Class Reference
#include <vtkWindowLevelLookupTable.h>
Inheritance diagram for vtkWindowLevelLookupTable:
[legend]Collaboration diagram for vtkWindowLevelLookupTable:
[legend]List of all members.
Detailed Description
map scalar values into colors or colors to scalars; generate color table
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
Definition at line 40 of file vtkWindowLevelLookupTable.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) |
void | Build () |
void | SetWindow (double window) |
virtual double | GetWindow () |
void | SetLevel (double level) |
virtual double | GetLevel () |
void | SetInverseVideo (int iv) |
virtual int | GetInverseVideo () |
virtual void | InverseVideoOn () |
virtual void | InverseVideoOff () |
virtual void | SetMinimumTableValue (double, double, double, double) |
virtual void | SetMinimumTableValue (double[4]) |
virtual double * | GetMinimumTableValue () |
virtual void | GetMinimumTableValue (double &, double &, double &, double &) |
virtual void | GetMinimumTableValue (double[4]) |
virtual void | SetMaximumTableValue (double, double, double, double) |
virtual void | SetMaximumTableValue (double[4]) |
virtual double * | GetMaximumTableValue () |
virtual void | GetMaximumTableValue (double &, double &, double &, double &) |
virtual void | GetMaximumTableValue (double[4]) |
void | SetMinimumColor (int r, int g, int b, int a) |
void | SetMinimumColor (const unsigned char rgba[4]) |
void | GetMinimumColor (unsigned char rgba[4]) |
unsigned char * | GetMinimumColor () |
void | SetMaximumColor (int r, int g, int b, int a) |
void | SetMaximumColor (const unsigned char rgba[4]) |
void | GetMaximumColor (unsigned char rgba[4]) |
unsigned char * | GetMaximumColor () |
Static Public Member Functions |
static vtkWindowLevelLookupTable * | New () |
static int | IsTypeOf (const char *type) |
static vtkWindowLevelLookupTable * | SafeDownCast (vtkObject *o) |
Protected Member Functions |
| vtkWindowLevelLookupTable (int sze=256, int ext=256) |
| ~vtkWindowLevelLookupTable () |
Protected Attributes |
double | Window |
double | Level |
int | InverseVideo |
double | MaximumTableValue [4] |
double | MinimumTableValue [4] |
unsigned char | MinimumColor [4] |
unsigned char | MaximumColor [4] |
Member Typedef Documentation
Constructor & Destructor Documentation
vtkWindowLevelLookupTable::vtkWindowLevelLookupTable |
( |
int |
sze = 256 , |
|
|
int |
ext = 256 |
|
) |
[protected] |
|
vtkWindowLevelLookupTable::~vtkWindowLevelLookupTable |
( |
|
) |
[inline, 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. |
virtual const char* vtkWindowLevelLookupTable::GetClassName |
( |
|
) |
[virtual] |
|
static 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 vtkTypeRevisionMacro 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 vtkTypeRevisionMacro 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 as a linear ramp between MinimumTableValue and MaximumTableValue.
Reimplemented from vtkLookupTable. |
void vtkWindowLevelLookupTable::SetWindow |
( |
double |
window |
) |
[inline] |
|
virtual double vtkWindowLevelLookupTable::GetWindow |
( |
|
) |
[virtual] |
|
void vtkWindowLevelLookupTable::SetLevel |
( |
double |
level |
) |
[inline] |
|
virtual double vtkWindowLevelLookupTable::GetLevel |
( |
|
) |
[virtual] |
|
void vtkWindowLevelLookupTable::SetInverseVideo |
( |
int |
iv |
) |
|
|
|
Set inverse video on or off. You can achieve the same effect by switching the MinimumTableValue and the MaximumTableValue. |
virtual int vtkWindowLevelLookupTable::GetInverseVideo |
( |
|
) |
[virtual] |
|
virtual void vtkWindowLevelLookupTable::InverseVideoOn |
( |
|
) |
[virtual] |
|
virtual void vtkWindowLevelLookupTable::InverseVideoOff |
( |
|
) |
[virtual] |
|
virtual void vtkWindowLevelLookupTable::SetMinimumTableValue |
( |
double |
, |
|
|
double |
, |
|
|
double |
, |
|
|
double |
|
|
) |
[virtual] |
|
|
Set the minimum table value. All lookup table entries below the start of the ramp will be set to this color. After you change this value, you must re-build the lookup table. |
virtual void vtkWindowLevelLookupTable::SetMinimumTableValue |
( |
double |
[4] |
) |
[virtual] |
|
virtual double* vtkWindowLevelLookupTable::GetMinimumTableValue |
( |
|
) |
[virtual] |
|
virtual void vtkWindowLevelLookupTable::GetMinimumTableValue |
( |
double & |
, |
|
|
double & |
, |
|
|
double & |
, |
|
|
double & |
|
|
) |
[virtual] |
|
virtual void vtkWindowLevelLookupTable::GetMinimumTableValue |
( |
double |
[4] |
) |
[virtual] |
|
virtual void vtkWindowLevelLookupTable::SetMaximumTableValue |
( |
double |
, |
|
|
double |
, |
|
|
double |
, |
|
|
double |
|
|
) |
[virtual] |
|
|
Set the maximum table value. All lookup table entries above the end of the ramp will be set to this color. After you change this value, you must re-build the lookup table. |
virtual void vtkWindowLevelLookupTable::SetMaximumTableValue |
( |
double |
[4] |
) |
[virtual] |
|
virtual double* vtkWindowLevelLookupTable::GetMaximumTableValue |
( |
|
) |
[virtual] |
|
virtual void vtkWindowLevelLookupTable::GetMaximumTableValue |
( |
double & |
, |
|
|
double & |
, |
|
|
double & |
, |
|
|
double & |
|
|
) |
[virtual] |
|
virtual void vtkWindowLevelLookupTable::GetMaximumTableValue |
( |
double |
[4] |
) |
[virtual] |
|
void vtkWindowLevelLookupTable::SetMinimumColor |
( |
int |
r, |
|
|
int |
g, |
|
|
int |
b, |
|
|
int |
a |
|
) |
[inline] |
|
void vtkWindowLevelLookupTable::SetMinimumColor |
( |
const unsigned char |
rgba[4] |
) |
[inline] |
|
void vtkWindowLevelLookupTable::GetMinimumColor |
( |
unsigned char |
rgba[4] |
) |
[inline] |
|
unsigned char* vtkWindowLevelLookupTable::GetMinimumColor |
( |
|
) |
[inline] |
|
void vtkWindowLevelLookupTable::SetMaximumColor |
( |
int |
r, |
|
|
int |
g, |
|
|
int |
b, |
|
|
int |
a |
|
) |
[inline] |
|
void vtkWindowLevelLookupTable::SetMaximumColor |
( |
const unsigned char |
rgba[4] |
) |
[inline] |
|
void vtkWindowLevelLookupTable::GetMaximumColor |
( |
unsigned char |
rgba[4] |
) |
[inline] |
|
unsigned char* vtkWindowLevelLookupTable::GetMaximumColor |
( |
|
) |
[inline] |
|
Member Data Documentation
The documentation for this class was generated from the following file: