Section: Visualization Toolkit Common Classes
To create an instance of class vtkWindowLevelLookupTable, simply invoke its constructor as follows
obj = vtkWindowLevelLookupTable
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)
- @deprecated For backwards compatibility: specify the color using
integers in the range [0,255].
obj.SetMinimumColor (char rgba[4])
- @deprecated For backwards compatibility: specify the color using
integers in the range [0,255].
obj.GetMinimumColor (char rgba[4])
- @deprecated For backwards compatibility: specify the color using
integers in the range [0,255].
obj.SetMaximumColor (int r, int g, int b, int a)
- @deprecated For backwards compatibility: specify the color using
integers in the range [0,255].
obj.SetMaximumColor (char rgba[4])
- @deprecated For backwards compatibility: specify the color using
integers in the range [0,255].
obj.GetMaximumColor (char rgba[4])
- @deprecated For backwards compatibility: specify the color using
integers in the range [0,255].