vtk
Class vtkWindowLevelLookupTable

java.lang.Object
  extended byvtk.vtkObjectBase
      extended byvtk.vtkObject
          extended byvtk.vtkScalarsToColors
              extended byvtk.vtkLookupTable
                  extended byvtk.vtkWindowLevelLookupTable
All Implemented Interfaces:
java.io.Serializable

public class vtkWindowLevelLookupTable
extends vtkLookupTable
implements java.io.Serializable

vtkWindowLevelLookupTable - 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. JavaBean wrapper for vtkWindowLevelLookupTable object.

Author:
vtk2jbean Automatic JavaBean wrapper for VTK.
See Also:
Serialized Form

Field Summary
protected  java.beans.PropertyChangeSupport changes
           
 
Fields inherited from class vtk.vtkObjectBase
vtkId
 
Constructor Summary
  vtkWindowLevelLookupTable()
           
protected vtkWindowLevelLookupTable(int dmy)
           
 
Method Summary
 void build()
          Generate lookup table as a linear ramp between MinimumTableValue and MaximumTableValue.
 java.lang.String getClassName()
          Return the class name as a string.
 int getInverseVideo()
          Set inverse video on or off.
 double getLevel()
          Set the Level for the lookup table.
 double[] getMaximumTableValue()
          Set the maximum table value.
 double[] getMinimumTableValue()
          Set the minimum table value.
 vtkWindowLevelLookupTable getThisWindowLevelLookupTable()
           
 double getWindow()
          Set the window for the lookup table.
 void inverseVideoOff()
          Set inverse video on or off.
 void inverseVideoOn()
          Set inverse video on or off.
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 void setInverseVideo(int id0)
          Set inverse video on or off.
 void setLevel(double id0)
          Set the Level for the lookup table.
 void setMaximumColor(int id0, int id1, int id2, int id3)
          For backwards compatibility: specify the color using integers in the range [0,255].
 void setMaximumTableValue(double[] id0)
          Set the maximum table value.
 void setMaximumTableValue(double id0, double id1, double id2, double id3)
          Set the maximum table value.
 void setMinimumColor(int id0, int id1, int id2, int id3)
          For backwards compatibility: specify the color using integers in the range [0,255].
 void setMinimumTableValue(double[] id0)
          Set the minimum table value.
 void setMinimumTableValue(double id0, double id1, double id2, double id3)
          Set the minimum table value.
 void setWindow(double id0)
          Set the window for the lookup table.
protected  void VTKCastInit()
           
 void VTKInit()
           
 
Methods inherited from class vtk.vtkLookupTable
allocate, deepCopy, forceBuild, getAlphaRange, getColor, getColor, getHueRange, getIndex, getNumberOfColors, getNumberOfColorsMaxValue, getNumberOfColorsMinValue, getNumberOfTableValues, getOpacity, getRamp, getSaturationRange, getScale, getTableRange, getTableValue, getTableValue, getThisLookupTable, getValueRange, setAlphaRange, setAlphaRange, setHueRange, setHueRange, setNumberOfColors, setNumberOfTableValues, setRamp, setRampToLinear, setRampToSCurve, setRampToSQRT, setRange, setRange, setSaturationRange, setSaturationRange, setScale, setScaleToLinear, setScaleToLog10, setTableRange, setTableRange, setTableValue, setTableValue, setValueRange, setValueRange
 
Methods inherited from class vtk.vtkScalarsToColors
convertUnsignedCharToRGBA, getAlpha, getLuminance, getThisScalarsToColors, getVectorComponent, getVectorMode, mapScalars, setAlpha, setVectorComponent, setVectorMode, setVectorModeToComponent, setVectorModeToMagnitude
 
Methods inherited from class vtk.vtkObject
AddObserver, breakOnError, debugOff, debugOn, getDebug, getGlobalWarningDisplay, getMTime, getThisObject, globalWarningDisplayOff, globalWarningDisplayOn, hasObserver, hasObserver, invokeEvent, invokeEvent, modified, Print, PrintRevisions, register, removeObserver, removeObservers, removeObservers, setDebug, setGlobalWarningDisplay, unRegister
 
Methods inherited from class vtk.vtkObjectBase
addPropertyChangeListener, finalize, getReferenceCount, getThisObjectBase, isTypeOf, removePropertyChangeListener, setReferenceCount, VTKDelete
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

changes

protected java.beans.PropertyChangeSupport changes
Constructor Detail

vtkWindowLevelLookupTable

public vtkWindowLevelLookupTable()

vtkWindowLevelLookupTable

protected vtkWindowLevelLookupTable(int dmy)
Method Detail

getThisWindowLevelLookupTable

public vtkWindowLevelLookupTable getThisWindowLevelLookupTable()

getClassName

public java.lang.String getClassName()
Description copied from class: vtkObjectBase
Return the class name as a string. This method is defined in all subclasses of vtkObjectBase with the vtkTypeRevisionMacro found in vtkSetGet.h.

Overrides:
getClassName in class vtkLookupTable

isA

public int isA(java.lang.String id0)
Description copied from class: vtkObjectBase
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.

Overrides:
isA in class vtkLookupTable

build

public void build()
Generate lookup table as a linear ramp between MinimumTableValue and MaximumTableValue.

Overrides:
build in class vtkLookupTable

setWindow

public void setWindow(double id0)
Set the window for the lookup table. The window is the difference between TableRange[0] and TableRange[1].


getWindow

public double getWindow()
Set the window for the lookup table. The window is the difference between TableRange[0] and TableRange[1].


setLevel

public void setLevel(double id0)
Set the Level for the lookup table. The level is the average of TableRange[0] and TableRange[1].


getLevel

public double getLevel()
Set the Level for the lookup table. The level is the average of TableRange[0] and TableRange[1].


setInverseVideo

public void setInverseVideo(int id0)
Set inverse video on or off. You can achieve the same effect by switching the MinimumTableValue and the MaximumTableValue.


getInverseVideo

public int getInverseVideo()
Set inverse video on or off. You can achieve the same effect by switching the MinimumTableValue and the MaximumTableValue.


inverseVideoOn

public void inverseVideoOn()
Set inverse video on or off. You can achieve the same effect by switching the MinimumTableValue and the MaximumTableValue.


inverseVideoOff

public void inverseVideoOff()
Set inverse video on or off. You can achieve the same effect by switching the MinimumTableValue and the MaximumTableValue.


setMinimumTableValue

public void setMinimumTableValue(double id0,
                                 double id1,
                                 double id2,
                                 double id3)
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.


setMinimumTableValue

public void setMinimumTableValue(double[] id0)
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.


getMinimumTableValue

public double[] 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.


setMaximumTableValue

public void setMaximumTableValue(double id0,
                                 double id1,
                                 double id2,
                                 double id3)
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.


setMaximumTableValue

public void setMaximumTableValue(double[] id0)
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.


getMaximumTableValue

public double[] 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.


setMinimumColor

public void setMinimumColor(int id0,
                            int id1,
                            int id2,
                            int id3)
For backwards compatibility: specify the color using integers in the range [0,255]. Deprecated: use SetMinimumTableValue() instead.


setMaximumColor

public void setMaximumColor(int id0,
                            int id1,
                            int id2,
                            int id3)
For backwards compatibility: specify the color using integers in the range [0,255]. Deprecated: use SetMaximumTableValue() instead.


VTKInit

public void VTKInit()
Overrides:
VTKInit in class vtkLookupTable

VTKCastInit

protected void VTKCastInit()
Overrides:
VTKCastInit in class vtkLookupTable


Copyright © 2004 Sydney ViSLAB. All Rights Reserved.