Section: Visualization Toolkit Graphics Classes
An alternative method of transformation is to use vtkActor's methods to scale, rotate, and translate objects. The difference between the two methods is that vtkActor's transformation simply effects where objects are rendered (via the graphics pipeline), whereas vtkTransformPolyDataFilter actually modifies point coordinates in the visualization pipeline. This is necessary for some objects (e.g., vtkProbeFilter) that require point coordinates as input.
To create an instance of class vtkTransformPolyDataFilter, simply invoke its constructor as follows
obj = vtkTransformPolyDataFilter
obj
is an instance of the vtkTransformPolyDataFilter class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkTransformPolyDataFilter = obj.NewInstance ()
vtkTransformPolyDataFilter = obj.SafeDownCast (vtkObject o)
long = obj.GetMTime ()
- Return the MTime also considering the transform.
obj.SetTransform (vtkAbstractTransform )
- Specify the transform object used to transform points.
vtkAbstractTransform = obj.GetTransform ()
- Specify the transform object used to transform points.