Section: Visualization Toolkit Common Classes
To create an instance of class vtkHomogeneousTransform, simply invoke its constructor as follows
obj = vtkHomogeneousTransform
obj
is an instance of the vtkHomogeneousTransform class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkHomogeneousTransform = obj.NewInstance ()
vtkHomogeneousTransform = obj.SafeDownCast (vtkObject o)
obj.TransformPoints (vtkPoints inPts, vtkPoints outPts)
- Apply the transformation to a series of points, and append the
results to outPts.
obj.TransformPointsNormalsVectors (vtkPoints inPts, vtkPoints outPts, vtkDataArray inNms, vtkDataArray outNms, vtkDataArray inVrs, vtkDataArray outVrs)
- Apply the transformation to a combination of points, normals
and vectors.
obj.GetMatrix (vtkMatrix4x4 m)
- Get a copy of the internal transformation matrix. The
transform is Updated first, to guarantee that the matrix
is valid.
vtkMatrix4x4 = obj.GetMatrix ()
- Get a pointer to an internal vtkMatrix4x4 that represents
the transformation. An Update() is called on the transform
to ensure that the matrix is up-to-date when you get it.
You should not store the matrix pointer anywhere because it
might become stale.
vtkHomogeneousTransform = obj.GetHomogeneousInverse ()
- This will calculate the transformation without calling Update.
Meant for use only within other VTK classes.
obj.InternalTransformPoint (float in[3], float out[3])
- This will calculate the transformation without calling Update.
Meant for use only within other VTK classes.
obj.InternalTransformPoint (double in[3], double out[3])
- This will calculate the transformation without calling Update.
Meant for use only within other VTK classes.