vtk
Class vtkGeneralTransform

java.lang.Object
  extended byvtk.vtkObjectBase
      extended byvtk.vtkObject
          extended byvtk.vtkAbstractTransform
              extended byvtk.vtkGeneralTransform
All Implemented Interfaces:
java.io.Serializable

public class vtkGeneralTransform
extends vtkAbstractTransform
implements java.io.Serializable

vtkGeneralTransform - allows operations on any transforms. vtkGeneralTransform is like vtkTransform and vtkPerspectiveTransform, but it will work with any vtkAbstractTransform as input. It is not as efficient as the other two, however, because arbitrary transformations cannot be concatenated by matrix multiplication. Transform concatenation is simulated by passing each input point through each transform in turn. JavaBean wrapper for vtkGeneralTransform object.

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

Field Summary
protected  java.beans.PropertyChangeSupport changes
           
 
Fields inherited from class vtk.vtkObjectBase
vtkId
 
Constructor Summary
  vtkGeneralTransform()
           
protected vtkGeneralTransform(int dmy)
           
 
Method Summary
 int circuitCheck(vtkAbstractTransform id0)
          Check for self-reference.
 void concatenate(double[] id0)
          Concatenates the matrix with the current transformation according to PreMultiply or PostMultiply semantics.
 void concatenate(vtkAbstractTransform id0)
          Concatenate the specified transform with the current transformation according to PreMultiply or PostMultiply semantics.
 void concatenate(vtkMatrix4x4 id0)
          Concatenates the matrix with the current transformation according to PreMultiply or PostMultiply semantics.
 java.lang.String getClassName()
          Return the class name as a string.
 vtkAbstractTransform getConcatenatedTransform(int id0)
           
 vtkAbstractTransform getInput()
          Set the input for this transformation.
 int getInverseFlag()
          Get the inverse flag of the transformation.
 int getMTime()
          Override GetMTime to account for input and concatenation.
 int getNumberOfConcatenatedTransforms()
          Get the total number of transformations that are linked into this one via Concatenate() operations or via SetInput().
 vtkGeneralTransform getThisGeneralTransform()
           
 void identity()
          Set this transformation to the identity transformation.
 void internalTransformPoint(double[] id0, double[] id1)
          This will calculate the transformation without calling Update.
 void inverse()
          Invert the transformation.
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 vtkAbstractTransform makeTransform()
          Make another transform of the same type.
 void pop()
          Deletes the transformation on the top of the stack and sets the top to the next transformation on the stack.
 void postMultiply()
          Sets the internal state of the transform to PostMultiply.
 void preMultiply()
          Sets the internal state of the transform to PreMultiply.
 void push()
          Pushes the current transformation onto the transformation stack.
 void rotateWXYZ(double id0, double[] id1)
          Create a rotation matrix and concatenate it with the current transformation according to PreMultiply or PostMultiply semantics.
 void rotateWXYZ(double id0, double id1, double id2, double id3)
          Create a rotation matrix and concatenate it with the current transformation according to PreMultiply or PostMultiply semantics.
 void rotateX(double id0)
          Create a rotation matrix about the X, Y, or Z axis and concatenate it with the current transformation according to PreMultiply or PostMultiply semantics.
 void rotateY(double id0)
          Create a rotation matrix about the X, Y, or Z axis and concatenate it with the current transformation according to PreMultiply or PostMultiply semantics.
 void rotateZ(double id0)
          Create a rotation matrix about the X, Y, or Z axis and concatenate it with the current transformation according to PreMultiply or PostMultiply semantics.
 void scale(double[] id0)
          Create a scale matrix (i.e. set the diagonal elements to x, y, z) and concatenate it with the current transformation according to PreMultiply or PostMultiply semantics.
 void scale(double id0, double id1, double id2)
          Create a scale matrix (i.e. set the diagonal elements to x, y, z) and concatenate it with the current transformation according to PreMultiply or PostMultiply semantics.
 void setInput(vtkAbstractTransform id0)
          Set the input for this transformation.
 void translate(double[] id0)
          Create a translation matrix and concatenate it with the current transformation according to PreMultiply or PostMultiply semantics.
 void translate(double id0, double id1, double id2)
          Create a translation matrix and concatenate it with the current transformation according to PreMultiply or PostMultiply semantics.
protected  void VTKCastInit()
           
 void VTKInit()
           
 
Methods inherited from class vtk.vtkAbstractTransform
deepCopy, getInverse, getThisAbstractTransform, setInverse, transformDoubleNormalAtPoint, transformDoublePoint, transformDoublePoint, transformDoubleVectorAtPoint, transformFloatNormalAtPoint, transformFloatPoint, transformFloatPoint, transformFloatVectorAtPoint, transformNormalAtPoint, transformNormalAtPoint, transformPoint, transformPoint, transformPoint, transformPoints, transformPointsNormalsVectors, transformVectorAtPoint, transformVectorAtPoint, unRegister, update
 
Methods inherited from class vtk.vtkObject
AddObserver, breakOnError, debugOff, debugOn, getDebug, getGlobalWarningDisplay, 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

vtkGeneralTransform

public vtkGeneralTransform()

vtkGeneralTransform

protected vtkGeneralTransform(int dmy)
Method Detail

getThisGeneralTransform

public vtkGeneralTransform getThisGeneralTransform()

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 vtkAbstractTransform

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 vtkAbstractTransform

identity

public void identity()
Set this transformation to the identity transformation. If the transform has an Input, then the transformation will be reset so that it is the same as the Input.

Overrides:
identity in class vtkAbstractTransform

inverse

public void inverse()
Invert the transformation. This will also set a flag so that the transformation will use the inverse of its Input, if an Input has been set.

Overrides:
inverse in class vtkAbstractTransform

translate

public void translate(double id0,
                      double id1,
                      double id2)
Create a translation matrix and concatenate it with the current transformation according to PreMultiply or PostMultiply semantics.


translate

public void translate(double[] id0)
Create a translation matrix and concatenate it with the current transformation according to PreMultiply or PostMultiply semantics.


rotateWXYZ

public void rotateWXYZ(double id0,
                       double id1,
                       double id2,
                       double id3)
Create a rotation matrix and concatenate it with the current transformation according to PreMultiply or PostMultiply semantics. The angle is in degrees, and (x,y,z) specifies the axis that the rotation will be performed around.


rotateWXYZ

public void rotateWXYZ(double id0,
                       double[] id1)
Create a rotation matrix and concatenate it with the current transformation according to PreMultiply or PostMultiply semantics. The angle is in degrees, and (x,y,z) specifies the axis that the rotation will be performed around.


rotateX

public void rotateX(double id0)
Create a rotation matrix about the X, Y, or Z axis and concatenate it with the current transformation according to PreMultiply or PostMultiply semantics. The angle is expressed in degrees.


rotateY

public void rotateY(double id0)
Create a rotation matrix about the X, Y, or Z axis and concatenate it with the current transformation according to PreMultiply or PostMultiply semantics. The angle is expressed in degrees.


rotateZ

public void rotateZ(double id0)
Create a rotation matrix about the X, Y, or Z axis and concatenate it with the current transformation according to PreMultiply or PostMultiply semantics. The angle is expressed in degrees.


scale

public void scale(double id0,
                  double id1,
                  double id2)
Create a scale matrix (i.e. set the diagonal elements to x, y, z) and concatenate it with the current transformation according to PreMultiply or PostMultiply semantics.


scale

public void scale(double[] id0)
Create a scale matrix (i.e. set the diagonal elements to x, y, z) and concatenate it with the current transformation according to PreMultiply or PostMultiply semantics.


concatenate

public void concatenate(vtkMatrix4x4 id0)
Concatenates the matrix with the current transformation according to PreMultiply or PostMultiply semantics.


concatenate

public void concatenate(double[] id0)
Concatenates the matrix with the current transformation according to PreMultiply or PostMultiply semantics.


concatenate

public void concatenate(vtkAbstractTransform id0)
Concatenate the specified transform with the current transformation according to PreMultiply or PostMultiply semantics. The concatenation is pipelined, meaning that if any of the transformations are changed, even after Concatenate() is called, those changes will be reflected when you call TransformPoint().


preMultiply

public void preMultiply()
Sets the internal state of the transform to PreMultiply. All subsequent operations will occur before those already represented in the current transformation. In homogeneous matrix notation, M = M*A where M is the current transformation matrix and A is the applied matrix. The default is PreMultiply.


postMultiply

public void postMultiply()
Sets the internal state of the transform to PostMultiply. All subsequent operations will occur after those already represented in the current transformation. In homogeneous matrix notation, M = A*M where M is the current transformation matrix and A is the applied matrix. The default is PreMultiply.


getNumberOfConcatenatedTransforms

public int getNumberOfConcatenatedTransforms()
Get the total number of transformations that are linked into this one via Concatenate() operations or via SetInput().


getConcatenatedTransform

public vtkAbstractTransform getConcatenatedTransform(int id0)

setInput

public void setInput(vtkAbstractTransform id0)
Set the input for this transformation. This will be used as the base transformation if it is set. This method allows you to build a transform pipeline: if the input is modified, then this transformation will automatically update accordingly. Note that the InverseFlag, controlled via Inverse(), determines whether this transformation will use the Input or the inverse of the Input.


getInput

public vtkAbstractTransform getInput()
Set the input for this transformation. This will be used as the base transformation if it is set. This method allows you to build a transform pipeline: if the input is modified, then this transformation will automatically update accordingly. Note that the InverseFlag, controlled via Inverse(), determines whether this transformation will use the Input or the inverse of the Input.


getInverseFlag

public int getInverseFlag()
Get the inverse flag of the transformation. This controls whether it is the Input or the inverse of the Input that is used as the base transformation. The InverseFlag is flipped every time Inverse() is called. The InverseFlag is off when a transform is first created.


push

public void push()
Pushes the current transformation onto the transformation stack.


pop

public void pop()
Deletes the transformation on the top of the stack and sets the top to the next transformation on the stack.


internalTransformPoint

public void internalTransformPoint(double[] id0,
                                   double[] id1)
This will calculate the transformation without calling Update. Meant for use only within other VTK classes.

Overrides:
internalTransformPoint in class vtkAbstractTransform

circuitCheck

public int circuitCheck(vtkAbstractTransform id0)
Check for self-reference. Will return true if concatenating with the specified transform, setting it to be our inverse, or setting it to be our input will create a circular reference. CircuitCheck is automatically called by SetInput(), SetInverse(), and Concatenate(vtkXTransform *). Avoid using this function, it is experimental.

Overrides:
circuitCheck in class vtkAbstractTransform

makeTransform

public vtkAbstractTransform makeTransform()
Make another transform of the same type.

Overrides:
makeTransform in class vtkAbstractTransform

getMTime

public int getMTime()
Override GetMTime to account for input and concatenation.

Overrides:
getMTime in class vtkAbstractTransform

VTKInit

public void VTKInit()
Overrides:
VTKInit in class vtkObject

VTKCastInit

protected void VTKCastInit()
Overrides:
VTKCastInit in class vtkAbstractTransform


Copyright © 2004 Sydney ViSLAB. All Rights Reserved.