|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object vtk.vtkObjectBase vtk.vtkObject vtk.vtkAbstractTransform vtk.vtkHomogeneousTransform vtk.vtkPerspectiveTransform
vtkPerspectiveTransform - describes a 4x4 matrix transformation. A vtkPerspectiveTransform can be used to describe the full range of homogeneous transformations. It was designed in particular to describe a camera-view of a scene.
The order in which you set up the display coordinates (via AdjustZBuffer() and AdjustViewport()), the projection (via Perspective(), Frustum(), or Ortho()) and the camera view (via SetupCamera()) are important. If the transform is in PreMultiply mode, which is the default, set the Viewport and ZBuffer first, then the projection, and finally the camera view. Once the view is set up, the Translate and Rotate methods can be used to move the camera around in world coordinates. If the Oblique() or Stereo() methods are used, they should be called just before SetupCamera().
In PostMultiply mode, you must perform all transformations in the opposite order. This is necessary, for example, if you already have a perspective transformation set up but must adjust the viewport. Another example is if you have a view transformation, and wish to perform translations and rotations in the camera's coordinate system rather than in world coordinates.
The SetInput and Concatenate methods can be used to create a transformation pipeline with vtkPerspectiveTransform. See vtkTransform for more information on the transformation pipeline. JavaBean wrapper for vtkPerspectiveTransform object.
vtkGeneralTransform
,
vtkTransform
,
vtkMatrix4x4
,
Serialized FormField Summary | |
protected java.beans.PropertyChangeSupport |
changes
|
Fields inherited from class vtk.vtkObjectBase |
vtkId |
Constructor Summary | |
|
vtkPerspectiveTransform()
|
protected |
vtkPerspectiveTransform(int dmy)
|
Method Summary | |
void |
adjustViewport(double id0,
double id1,
double id2,
double id3,
double id4,
double id5,
double id6,
double id7)
Perform an adjustment to the viewport coordinates. |
void |
adjustZBuffer(double id0,
double id1,
double id2,
double id3)
Perform an adjustment to the Z-Buffer range that the near and far clipping planes map to. |
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(vtkHomogeneousTransform 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. |
void |
frustum(double id0,
double id1,
double id2,
double id3,
double id4,
double id5)
Create an perspective projection matrix and concatenate it by the current transformation. |
java.lang.String |
getClassName()
Return the class name as a string. |
vtkHomogeneousTransform |
getConcatenatedTransform(int id0)
|
vtkHomogeneousTransform |
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(). |
vtkPerspectiveTransform |
getThisPerspectiveTransform()
|
void |
identity()
Set this transformation to the identity transformation. |
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 a new transform of the same type -- you are responsible for deleting the transform when you are done with it. |
void |
ortho(double id0,
double id1,
double id2,
double id3,
double id4,
double id5)
Create an orthogonal projection matrix and concatenate it by the current transformation. |
void |
perspective(double id0,
double id1,
double id2,
double id3)
Create a perspective projection matrix by specifying the view angle (this angle is in the y direction), the aspect ratio, and the near and far clipping range. |
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(vtkHomogeneousTransform id0)
Set the input for this transformation. |
void |
setMatrix(double[] id0)
Set the current matrix directly. |
void |
setMatrix(vtkMatrix4x4 id0)
Set the current matrix directly. |
void |
setupCamera(double[] id0,
double[] id1,
double[] id2)
Set a view transformation matrix for the camera (this matrix does not contain any perspective) and concatenate it with the current transformation. |
void |
setupCamera(double id0,
double id1,
double id2,
double id3,
double id4,
double id5,
double id6,
double id7,
double id8)
|
void |
shear(double id0,
double id1,
double id2)
Create a shear transformation about a plane at distance z from the camera. |
void |
stereo(double id0,
double id1)
Create a stereo shear matrix and concatenate it with the current 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.vtkHomogeneousTransform |
getHomogeneousInverse, getMatrix, getMatrix, getThisHomogeneousTransform, internalTransformPoint, transformPoints, transformPointsNormalsVectors |
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 |
protected java.beans.PropertyChangeSupport changes
Constructor Detail |
public vtkPerspectiveTransform()
protected vtkPerspectiveTransform(int dmy)
Method Detail |
public vtkPerspectiveTransform getThisPerspectiveTransform()
public java.lang.String getClassName()
vtkObjectBase
getClassName
in class vtkHomogeneousTransform
public int isA(java.lang.String id0)
vtkObjectBase
isA
in class vtkHomogeneousTransform
public void identity()
identity
in class vtkAbstractTransform
public void inverse()
inverse
in class vtkAbstractTransform
public void adjustViewport(double id0, double id1, double id2, double id3, double id4, double id5, double id6, double id7)
public void adjustZBuffer(double id0, double id1, double id2, double id3)
public void ortho(double id0, double id1, double id2, double id3, double id4, double id5)
public void frustum(double id0, double id1, double id2, double id3, double id4, double id5)
public void perspective(double id0, double id1, double id2, double id3)
public void shear(double id0, double id1, double id2)
public void stereo(double id0, double id1)
public void setupCamera(double[] id0, double[] id1, double[] id2)
public void setupCamera(double id0, double id1, double id2, double id3, double id4, double id5, double id6, double id7, double id8)
public void translate(double id0, double id1, double id2)
public void translate(double[] id0)
public void rotateWXYZ(double id0, double id1, double id2, double id3)
public void rotateWXYZ(double id0, double[] id1)
public void rotateX(double id0)
public void rotateY(double id0)
public void rotateZ(double id0)
public void scale(double id0, double id1, double id2)
public void scale(double[] id0)
public void setMatrix(vtkMatrix4x4 id0)
public void setMatrix(double[] id0)
public void concatenate(vtkMatrix4x4 id0)
public void concatenate(double[] id0)
public void concatenate(vtkHomogeneousTransform id0)
public void preMultiply()
public void postMultiply()
public int getNumberOfConcatenatedTransforms()
public vtkHomogeneousTransform getConcatenatedTransform(int id0)
public void setInput(vtkHomogeneousTransform id0)
public vtkHomogeneousTransform getInput()
public int getInverseFlag()
public void push()
public void pop()
public vtkAbstractTransform makeTransform()
makeTransform
in class vtkAbstractTransform
public int circuitCheck(vtkAbstractTransform id0)
circuitCheck
in class vtkAbstractTransform
public int getMTime()
getMTime
in class vtkAbstractTransform
public void VTKInit()
VTKInit
in class vtkObject
protected void VTKCastInit()
VTKCastInit
in class vtkHomogeneousTransform
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |