Section: Visualization Toolkit Widget Classes
To create an instance of class vtkTextWidget, simply invoke its constructor as follows
obj = vtkTextWidget
obj is an instance of the vtkTextWidget class.
string = obj.GetClassName () - Standard VTK methods.
int = obj.IsA (string name) - Standard VTK methods.
vtkTextWidget = obj.NewInstance () - Standard VTK methods.
vtkTextWidget = obj.SafeDownCast (vtkObject o) - Standard VTK methods.
obj.SetRepresentation (vtkTextRepresentation r) - Specify a vtkTextActor to manage. This is a convenient, alternative
method to specify the representation for the widget (i.e., used instead
of SetRepresentation()). It internally creates a vtkTextRepresentation
and then invokes vtkTextRepresentation::SetTextActor().
obj.SetTextActor (vtkTextActor textActor) - Specify a vtkTextActor to manage. This is a convenient, alternative
method to specify the representation for the widget (i.e., used instead
of SetRepresentation()). It internally creates a vtkTextRepresentation
and then invokes vtkTextRepresentation::SetTextActor().
vtkTextActor = obj.GetTextActor () - Specify a vtkTextActor to manage. This is a convenient, alternative
method to specify the representation for the widget (i.e., used instead
of SetRepresentation()). It internally creates a vtkTextRepresentation
and then invokes vtkTextRepresentation::SetTextActor().
obj.CreateDefaultRepresentation () - Create the default widget representation if one is not set.