FreeMat

- Main Page
- Related Pages

vtkWindowLevelLookupTable

Section: Visualization Toolkit Common Classes

# Usage

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.

To create an instance of class vtkWindowLevelLookupTable, simply invoke its constructor as follows

      obj = vtkWindowLevelLookupTable

# Methods

The class vtkWindowLevelLookupTable has several methods that can be used. They are listed below. Note that the documentation is translated automatically from the VTK sources, and may not be completely intelligible. When in doubt, consult the VTK website. In the methods listed below, `obj` is an instance of the vtkWindowLevelLookupTable class.

- `string = obj.GetClassName ()`
- `int = obj.IsA (string name)`
- `vtkWindowLevelLookupTable = obj.NewInstance ()`
- `vtkWindowLevelLookupTable = obj.SafeDownCast (vtkObject o)`
- `obj.Build ()` - Generate lookup table as a linear ramp between MinimumTableValue and MaximumTableValue.
- `obj.SetWindow (double window)` - Set the window for the lookup table. The window is the difference between TableRange[0] and TableRange[1].
- `double = obj.GetWindow ()` - Set the window for the lookup table. The window is the difference between TableRange[0] and TableRange[1].
- `obj.SetLevel (double level)` - Set the Level for the lookup table. The level is the average of TableRange[0] and TableRange[1].
- `double = obj.GetLevel ()` - Set the Level for the lookup table. The level is the average of TableRange[0] and TableRange[1].
- `obj.SetInverseVideo (int iv)` - Set inverse video on or off. You can achieve the same effect by switching the MinimumTableValue and the MaximumTableValue.
- `int = obj.GetInverseVideo ()` - Set inverse video on or off. You can achieve the same effect by switching the MinimumTableValue and the MaximumTableValue.
- `obj.InverseVideoOn ()` - Set inverse video on or off. You can achieve the same effect by switching the MinimumTableValue and the MaximumTableValue.
- `obj.InverseVideoOff ()` - Set inverse video on or off. You can achieve the same effect by switching the MinimumTableValue and the MaximumTableValue.
- `obj.SetMinimumTableValue (double , double , double , double )` - 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.
- `obj.SetMinimumTableValue (double a[4])` - 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.
- `double = obj. GetMinimumTableValue ()` - 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.
- `obj.SetMaximumTableValue (double , double , double , double )` - 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.
- `obj.SetMaximumTableValue (double a[4])` - 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 = obj. GetMaximumTableValue ()` - 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.
- `obj.SetMinimumColor (int r, int g, int b, int a)` -