vtk
Class vtkTextureMapToPlane

java.lang.Object
  extended byvtk.vtkObjectBase
      extended byvtk.vtkObject
          extended byvtk.vtkProcessObject
              extended byvtk.vtkSource
                  extended byvtk.vtkDataSetSource
                      extended byvtk.vtkDataSetToDataSetFilter
                          extended byvtk.vtkTextureMapToPlane
All Implemented Interfaces:
java.io.Serializable

public class vtkTextureMapToPlane
extends vtkDataSetToDataSetFilter
implements java.io.Serializable

vtkTextureMapToPlane - generate texture coordinates by mapping points to plane. vtkTextureMapToPlane is a filter that generates 2D texture coordinates by mapping input dataset points onto a plane. The plane can either be user specified or generated automatically. (A least squares method is used to generate the plane automatically.) There are two ways you can specify the plane. The first is to provide a plane normal. In this case the points are projected to a plane, and the points are then mapped into the user specified s-t coordinate range. For more control, you can specify a plane with three points: an origin and two points defining the two axes of the plane. (This is compatible with the vtkPlaneSource.) Using the second method, the SRange and TRange vectors are ignored, since the presumption is that the user does not want to scale the texture coordinates; and you can adjust the origin and axes points to achieve the texture coordinate scaling you need. Note also that using the three point method the axes do not have to be orthogonal. JavaBean wrapper for vtkTextureMapToPlane object.

Author:
vtk2jbean Automatic JavaBean wrapper for VTK.
See Also:
vtkTextureMapToBox, vtkPlaneSource, vtkTextureMapToCylinder, vtkTextureMapToSphere, Serialized Form

Field Summary
protected  java.beans.PropertyChangeSupport changes
           
 
Fields inherited from class vtk.vtkObjectBase
vtkId
 
Constructor Summary
  vtkTextureMapToPlane()
           
protected vtkTextureMapToPlane(int dmy)
           
 
Method Summary
 void automaticPlaneGenerationOff()
          Turn on/off automatic plane generation.
 void automaticPlaneGenerationOn()
          Turn on/off automatic plane generation.
 int getAutomaticPlaneGeneration()
          Turn on/off automatic plane generation.
 java.lang.String getClassName()
          Return the class name as a string.
 double[] getNormal()
          Specify plane normal.
 double[] getOrigin()
          Specify a point defining the origin of the plane.
 double[] getPoint1()
          Specify a point defining the first axis of the plane.
 double[] getPoint2()
          Specify a point defining the second axis of the plane.
 double[] getSRange()
          Specify s-coordinate range for texture s-t coordinate pair.
 vtkTextureMapToPlane getThisTextureMapToPlane()
           
 double[] getTRange()
          Specify t-coordinate range for texture s-t coordinate pair.
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 void setAutomaticPlaneGeneration(int id0)
          Turn on/off automatic plane generation.
 void setNormal(double[] id0)
          Specify plane normal.
 void setNormal(double id0, double id1, double id2)
          Specify plane normal.
 void setOrigin(double[] id0)
          Specify a point defining the origin of the plane.
 void setOrigin(double id0, double id1, double id2)
          Specify a point defining the origin of the plane.
 void setPoint1(double[] id0)
          Specify a point defining the first axis of the plane.
 void setPoint1(double id0, double id1, double id2)
          Specify a point defining the first axis of the plane.
 void setPoint2(double[] id0)
          Specify a point defining the second axis of the plane.
 void setPoint2(double id0, double id1, double id2)
          Specify a point defining the second axis of the plane.
 void setSRange(double[] id0)
          Specify s-coordinate range for texture s-t coordinate pair.
 void setSRange(double id0, double id1)
          Specify s-coordinate range for texture s-t coordinate pair.
 void setTRange(double[] id0)
          Specify t-coordinate range for texture s-t coordinate pair.
 void setTRange(double id0, double id1)
          Specify t-coordinate range for texture s-t coordinate pair.
protected  void VTKCastInit()
           
 void VTKInit()
           
 
Methods inherited from class vtk.vtkDataSetToDataSetFilter
computeInputUpdateExtents, getInput, getOutput, getOutput, getPolyDataOutput, getRectilinearGridOutput, getStructuredGridOutput, getStructuredPointsOutput, getThisDataSetToDataSetFilter, getUnstructuredGridOutput, setInput
 
Methods inherited from class vtk.vtkDataSetSource
getThisDataSetSource, setOutput
 
Methods inherited from class vtk.vtkSource
getNumberOfOutputs, getOutputIndex, getReleaseDataFlag, getThisSource, inRegisterLoop, propagateUpdateExtent, releaseDataFlagOff, releaseDataFlagOn, setReleaseDataFlag, triggerAsynchronousUpdate, unRegister, unRegisterAllOutputs, update, updateData, updateInformation, updateWholeExtent
 
Methods inherited from class vtk.vtkProcessObject
abortExecuteOff, abortExecuteOn, getAbortExecute, getErrorCode, getNumberOfInputs, getProgress, getProgressMaxValue, getProgressMinValue, getProgressText, getThisProcessObject, removeAllInputs, setAbortExecute, setProgress, setProgressText, squeezeInputArray, updateProgress
 
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
 
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

vtkTextureMapToPlane

public vtkTextureMapToPlane()

vtkTextureMapToPlane

protected vtkTextureMapToPlane(int dmy)
Method Detail

getThisTextureMapToPlane

public vtkTextureMapToPlane getThisTextureMapToPlane()

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 vtkDataSetToDataSetFilter

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 vtkDataSetToDataSetFilter

setOrigin

public void setOrigin(double id0,
                      double id1,
                      double id2)
Specify a point defining the origin of the plane. Used in conjunction with the Point1 and Point2 ivars to specify a map plane.


setOrigin

public void setOrigin(double[] id0)
Specify a point defining the origin of the plane. Used in conjunction with the Point1 and Point2 ivars to specify a map plane.


getOrigin

public double[] getOrigin()
Specify a point defining the origin of the plane. Used in conjunction with the Point1 and Point2 ivars to specify a map plane.


setPoint1

public void setPoint1(double id0,
                      double id1,
                      double id2)
Specify a point defining the first axis of the plane.


setPoint1

public void setPoint1(double[] id0)
Specify a point defining the first axis of the plane.


getPoint1

public double[] getPoint1()
Specify a point defining the first axis of the plane.


setPoint2

public void setPoint2(double id0,
                      double id1,
                      double id2)
Specify a point defining the second axis of the plane.


setPoint2

public void setPoint2(double[] id0)
Specify a point defining the second axis of the plane.


getPoint2

public double[] getPoint2()
Specify a point defining the second axis of the plane.


setNormal

public void setNormal(double id0,
                      double id1,
                      double id2)
Specify plane normal. An alternative way to specify a map plane. Using this method, the object will scale the resulting texture coordinate between the SRange and TRange specified.


setNormal

public void setNormal(double[] id0)
Specify plane normal. An alternative way to specify a map plane. Using this method, the object will scale the resulting texture coordinate between the SRange and TRange specified.


getNormal

public double[] getNormal()
Specify plane normal. An alternative way to specify a map plane. Using this method, the object will scale the resulting texture coordinate between the SRange and TRange specified.


setSRange

public void setSRange(double id0,
                      double id1)
Specify s-coordinate range for texture s-t coordinate pair.


setSRange

public void setSRange(double[] id0)
Specify s-coordinate range for texture s-t coordinate pair.


getSRange

public double[] getSRange()
Specify s-coordinate range for texture s-t coordinate pair.


setTRange

public void setTRange(double id0,
                      double id1)
Specify t-coordinate range for texture s-t coordinate pair.


setTRange

public void setTRange(double[] id0)
Specify t-coordinate range for texture s-t coordinate pair.


getTRange

public double[] getTRange()
Specify t-coordinate range for texture s-t coordinate pair.


setAutomaticPlaneGeneration

public void setAutomaticPlaneGeneration(int id0)
Turn on/off automatic plane generation.


getAutomaticPlaneGeneration

public int getAutomaticPlaneGeneration()
Turn on/off automatic plane generation.


automaticPlaneGenerationOn

public void automaticPlaneGenerationOn()
Turn on/off automatic plane generation.


automaticPlaneGenerationOff

public void automaticPlaneGenerationOff()
Turn on/off automatic plane generation.


VTKInit

public void VTKInit()
Overrides:
VTKInit in class vtkObject

VTKCastInit

protected void VTKCastInit()
Overrides:
VTKCastInit in class vtkDataSetToDataSetFilter


Copyright © 2004 Sydney ViSLAB. All Rights Reserved.