VTK
|
map scalar values into colors or colors to scalars; generate color table More...
#include <vtkWindowLevelLookupTable.h>
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.
Definition at line 41 of file vtkWindowLevelLookupTable.h.
Reimplemented from vtkLookupTable.
Definition at line 45 of file vtkWindowLevelLookupTable.h.
vtkWindowLevelLookupTable::vtkWindowLevelLookupTable | ( | int | sze = 256 , |
int | ext = 256 |
||
) | [protected] |
vtkWindowLevelLookupTable::~vtkWindowLevelLookupTable | ( | ) | [inline, protected] |
Definition at line 99 of file vtkWindowLevelLookupTable.h.
static 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.
static int vtkWindowLevelLookupTable::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 vtkWindowLevelLookupTable::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 vtkWindowLevelLookupTable* vtkWindowLevelLookupTable::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkLookupTable.
virtual vtkObjectBase* vtkWindowLevelLookupTable::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkLookupTable.
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] |
Set the window for the lookup table. The window is the difference between TableRange[0] and TableRange[1].
Definition at line 55 of file vtkWindowLevelLookupTable.h.
virtual double vtkWindowLevelLookupTable::GetWindow | ( | ) | [virtual] |
Set the window for the lookup table. The window is the difference between TableRange[0] and TableRange[1].
void vtkWindowLevelLookupTable::SetLevel | ( | double | level | ) | [inline] |
Set the Level for the lookup table. The level is the average of TableRange[0] and TableRange[1].
Definition at line 66 of file vtkWindowLevelLookupTable.h.
virtual double vtkWindowLevelLookupTable::GetLevel | ( | ) | [virtual] |
Set the Level for the lookup table. The level is the average of TableRange[0] and TableRange[1].
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] |
Set inverse video on or off. You can achieve the same effect by switching the MinimumTableValue and the MaximumTableValue.
virtual void vtkWindowLevelLookupTable::InverseVideoOn | ( | ) | [virtual] |
Set inverse video on or off. You can achieve the same effect by switching the MinimumTableValue and the MaximumTableValue.
virtual void vtkWindowLevelLookupTable::InverseVideoOff | ( | ) | [virtual] |
Set inverse video on or off. You can achieve the same effect by switching the MinimumTableValue and the MaximumTableValue.
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] |
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 double* vtkWindowLevelLookupTable::GetMinimumTableValue | ( | ) | [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::GetMinimumTableValue | ( | 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::GetMinimumTableValue | ( | double | [4] | ) | [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::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] |
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 double* vtkWindowLevelLookupTable::GetMaximumTableValue | ( | ) | [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::GetMaximumTableValue | ( | 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::GetMaximumTableValue | ( | double | [4] | ) | [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.
double vtkWindowLevelLookupTable::Window [protected] |
Definition at line 99 of file vtkWindowLevelLookupTable.h.
double vtkWindowLevelLookupTable::Level [protected] |
Definition at line 102 of file vtkWindowLevelLookupTable.h.
int vtkWindowLevelLookupTable::InverseVideo [protected] |
Definition at line 103 of file vtkWindowLevelLookupTable.h.
double vtkWindowLevelLookupTable::MaximumTableValue[4] [protected] |
Definition at line 104 of file vtkWindowLevelLookupTable.h.
double vtkWindowLevelLookupTable::MinimumTableValue[4] [protected] |
Definition at line 105 of file vtkWindowLevelLookupTable.h.