vtk
Class vtkColorTransferFunction

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

public class vtkColorTransferFunction
extends vtkScalarsToColors
implements java.io.Serializable

vtkColorTransferFunction - Defines a transfer function for mapping a property to an RGB color value.. vtkColorTransferFunction encapsulates three vtkPiecewiseFunction instances to provide a full RGB transfer function. JavaBean wrapper for vtkColorTransferFunction 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
  vtkColorTransferFunction()
           
protected vtkColorTransferFunction(int dmy)
           
 
Method Summary
 int addHSVPoint(double id0, double id1, double id2, double id3)
          Add/Remove a point to/from the function defined in RGB or HSV Return the index of the point (0 based), or -1 on error.
 void addHSVSegment(double id0, double id1, double id2, double id3, double id4, double id5, double id6, double id7)
          Add two points to the function and remove all the points between them
 int addRGBPoint(double id0, double id1, double id2, double id3)
          Add/Remove a point to/from the function defined in RGB or HSV Return the index of the point (0 based), or -1 on error.
 void addRGBSegment(double id0, double id1, double id2, double id3, double id4, double id5, double id6, double id7)
          Add two points to the function and remove all the points between them
 void clampingOff()
          Sets and gets the clamping value for this transfer function.
 void clampingOn()
          Sets and gets the clamping value for this transfer function.
 void deepCopy(vtkColorTransferFunction id0)
           
 double getBlueValue(double id0)
          Get the color components individually.
 int getClamping()
          Sets and gets the clamping value for this transfer function.
 int getClampingMaxValue()
          Sets and gets the clamping value for this transfer function.
 int getClampingMinValue()
          Sets and gets the clamping value for this transfer function.
 java.lang.String getClassName()
          Return the class name as a string.
 double[] getColor(double id0)
          Returns an RGB color for the specified scalar value (from vtkScalarsToColors)
 void getColor(double id0, double[] id1)
          Returns an RGB color for the specified scalar value (from vtkScalarsToColors)
 int getColorSpace()
          How should we interpolate - in RGB, or HSV
 int getColorSpaceMaxValue()
          How should we interpolate - in RGB, or HSV
 int getColorSpaceMinValue()
          How should we interpolate - in RGB, or HSV
 double getGreenValue(double id0)
          Get the color components individually.
 double[] getRange()
          Returns min and max position of all function points.
 double getRedValue(double id0)
          Get the color components individually.
 int getSize()
          How many points are there defining this function?
 vtkColorTransferFunction getThisColorTransferFunction()
           
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 void removeAllPoints()
          Remove all points
 int removePoint(double id0)
          Add/Remove a point to/from the function defined in RGB or HSV Return the index of the point (0 based), or -1 on error.
 void setClamping(int id0)
          Sets and gets the clamping value for this transfer function.
 void setColorSpace(int id0)
          How should we interpolate - in RGB, or HSV
 void setColorSpaceToHSV()
          How should we interpolate - in RGB, or HSV
 void setColorSpaceToRGB()
          How should we interpolate - in RGB, or HSV
protected  void VTKCastInit()
           
 void VTKInit()
           
 
Methods inherited from class vtk.vtkScalarsToColors
build, convertUnsignedCharToRGBA, getAlpha, getLuminance, getOpacity, getThisScalarsToColors, getVectorComponent, getVectorMode, mapScalars, setAlpha, setRange, setRange, 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

vtkColorTransferFunction

public vtkColorTransferFunction()

vtkColorTransferFunction

protected vtkColorTransferFunction(int dmy)
Method Detail

getThisColorTransferFunction

public vtkColorTransferFunction getThisColorTransferFunction()

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 vtkScalarsToColors

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 vtkScalarsToColors

deepCopy

public void deepCopy(vtkColorTransferFunction id0)

getSize

public int getSize()
How many points are there defining this function?


addRGBPoint

public int addRGBPoint(double id0,
                       double id1,
                       double id2,
                       double id3)
Add/Remove a point to/from the function defined in RGB or HSV Return the index of the point (0 based), or -1 on error.


addHSVPoint

public int addHSVPoint(double id0,
                       double id1,
                       double id2,
                       double id3)
Add/Remove a point to/from the function defined in RGB or HSV Return the index of the point (0 based), or -1 on error.


removePoint

public int removePoint(double id0)
Add/Remove a point to/from the function defined in RGB or HSV Return the index of the point (0 based), or -1 on error.


addRGBSegment

public void addRGBSegment(double id0,
                          double id1,
                          double id2,
                          double id3,
                          double id4,
                          double id5,
                          double id6,
                          double id7)
Add two points to the function and remove all the points between them


addHSVSegment

public void addHSVSegment(double id0,
                          double id1,
                          double id2,
                          double id3,
                          double id4,
                          double id5,
                          double id6,
                          double id7)
Add two points to the function and remove all the points between them


removeAllPoints

public void removeAllPoints()
Remove all points


getColor

public double[] getColor(double id0)
Returns an RGB color for the specified scalar value (from vtkScalarsToColors)

Overrides:
getColor in class vtkScalarsToColors

getColor

public void getColor(double id0,
                     double[] id1)
Returns an RGB color for the specified scalar value (from vtkScalarsToColors)

Overrides:
getColor in class vtkScalarsToColors

getRedValue

public double getRedValue(double id0)
Get the color components individually.


getGreenValue

public double getGreenValue(double id0)
Get the color components individually.


getBlueValue

public double getBlueValue(double id0)
Get the color components individually.


getRange

public double[] getRange()
Returns min and max position of all function points.


setClamping

public void setClamping(int id0)
Sets and gets the clamping value for this transfer function.


getClampingMinValue

public int getClampingMinValue()
Sets and gets the clamping value for this transfer function.


getClampingMaxValue

public int getClampingMaxValue()
Sets and gets the clamping value for this transfer function.


getClamping

public int getClamping()
Sets and gets the clamping value for this transfer function.


clampingOn

public void clampingOn()
Sets and gets the clamping value for this transfer function.


clampingOff

public void clampingOff()
Sets and gets the clamping value for this transfer function.


setColorSpace

public void setColorSpace(int id0)
How should we interpolate - in RGB, or HSV


getColorSpaceMinValue

public int getColorSpaceMinValue()
How should we interpolate - in RGB, or HSV


getColorSpaceMaxValue

public int getColorSpaceMaxValue()
How should we interpolate - in RGB, or HSV


setColorSpaceToRGB

public void setColorSpaceToRGB()
How should we interpolate - in RGB, or HSV


setColorSpaceToHSV

public void setColorSpaceToHSV()
How should we interpolate - in RGB, or HSV


getColorSpace

public int getColorSpace()
How should we interpolate - in RGB, or HSV


VTKInit

public void VTKInit()
Overrides:
VTKInit in class vtkObject

VTKCastInit

protected void VTKCastInit()
Overrides:
VTKCastInit in class vtkScalarsToColors


Copyright © 2004 Sydney ViSLAB. All Rights Reserved.