Section: Visualization Toolkit Rendering Classes
To simplify coding, an implementation of vtkPolyDataPainter is allowed to support only certain types of poly data or certain types of primitives.
To create an instance of class vtkPolyDataPainter, simply invoke its constructor as follows
obj = vtkPolyDataPainter
obj
is an instance of the vtkPolyDataPainter class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkPolyDataPainter = obj.NewInstance ()
vtkPolyDataPainter = obj.SafeDownCast (vtkObject o)
vtkPolyData = obj.GetInputAsPolyData ()
- Get/set the poly data to render.
vtkPolyData = obj.GetOutputAsPolyData ()
- Get the output polydata from this Painter. The default
implementation forwards the input polydata as the output.
obj.Render (vtkRenderer renderer, vtkActor actor, long typeflags, bool forceCompileOnly)
- Overridden to stop the render call if input polydata is not set,
since PolyDataPainter cannot paint without any polydata input.