Section: Visualization Toolkit Widget Classes
To create an instance of class vtkTextRepresentation, simply invoke its constructor as follows
obj = vtkTextRepresentation
obj is an instance of the vtkTextRepresentation class.
string = obj.GetClassName () - Standard VTK methods.
int = obj.IsA (string name) - Standard VTK methods.
vtkTextRepresentation = obj.NewInstance () - Standard VTK methods.
vtkTextRepresentation = obj.SafeDownCast (vtkObject o) - Standard VTK methods.
obj.SetTextActor (vtkTextActor textActor) - Specify the vtkTextActor to manage. If not specified, then one
is automatically created.
vtkTextActor = obj.GetTextActor () - Specify the vtkTextActor to manage. If not specified, then one
is automatically created.
obj.SetText (string text) - Get/Set the text string display by this representation.
string = obj.GetText () - Get/Set the text string display by this representation.
obj.BuildRepresentation () - Satisfy the superclasses API.
obj.GetSize (double size[2]) - These methods are necessary to make this representation behave as
a vtkProp.
obj.GetActors2D (vtkPropCollection ) - These methods are necessary to make this representation behave as
a vtkProp.
obj.ReleaseGraphicsResources (vtkWindow ) - These methods are necessary to make this representation behave as
a vtkProp.
int = obj.RenderOverlay (vtkViewport ) - These methods are necessary to make this representation behave as
a vtkProp.
int = obj.RenderOpaqueGeometry (vtkViewport ) - These methods are necessary to make this representation behave as
a vtkProp.
int = obj.RenderTranslucentPolygonalGeometry (vtkViewport ) - These methods are necessary to make this representation behave as
a vtkProp.
int = obj.HasTranslucentPolygonalGeometry () - These methods are necessary to make this representation behave as
a vtkProp.
obj.SetWindowLocation (int enumLocation) - Set the text position, by enumeration (
AnyLocation = 0,
LowerLeftCorner,
LowerRightCorner,
LowerCenter,
UpperLeftCorner,
UpperRightCorner,
UpperCenter)
related to the render window
int = obj.GetWindowLocation () - Set the text position, by enumeration (
AnyLocation = 0,
LowerLeftCorner,
LowerRightCorner,
LowerCenter,
UpperLeftCorner,
UpperRightCorner,
UpperCenter)
related to the render window
obj.SetPosition (double x, double y) - Set the text position, by overiding the same function of
vtkBorderRepresentation so that the Modified() will be called.
obj.SetPosition (double pos[2]) - Set the text position, by overiding the same function of
vtkBorderRepresentation so that the Modified() will be called.