Section: Visualization Toolkit Widget Classes
Note that this widget extends the behavior of its superclass vtkBorderWidget. The end point of the leader can be selected and moved around with an internal vtkHandleWidget.
To create an instance of class vtkCaptionWidget, simply invoke its constructor as follows
obj = vtkCaptionWidget
obj
is an instance of the vtkCaptionWidget class.
string = obj.GetClassName ()
- Standard VTK class methods.
int = obj.IsA (string name)
- Standard VTK class methods.
vtkCaptionWidget = obj.NewInstance ()
- Standard VTK class methods.
vtkCaptionWidget = obj.SafeDownCast (vtkObject o)
- Standard VTK class methods.
obj.SetEnabled (int enabling)
- Override superclasses' SetEnabled() method because the caption leader
has its own dedicated widget.
obj.SetRepresentation (vtkCaptionRepresentation r)
- Specify a vtkCaptionActor2D to manage. This is convenient, alternative
method to SetRepresentation(). It internally create a vtkCaptionRepresentation
and then invokes vtkCaptionRepresentation::SetCaptionActor2D().
obj.SetCaptionActor2D (vtkCaptionActor2D capActor)
- Specify a vtkCaptionActor2D to manage. This is convenient, alternative
method to SetRepresentation(). It internally create a vtkCaptionRepresentation
and then invokes vtkCaptionRepresentation::SetCaptionActor2D().
vtkCaptionActor2D = obj.GetCaptionActor2D ()
- Specify a vtkCaptionActor2D to manage. This is convenient, alternative
method to SetRepresentation(). It internally create a vtkCaptionRepresentation
and then invokes vtkCaptionRepresentation::SetCaptionActor2D().
obj.CreateDefaultRepresentation ()
- Create the default widget representation if one is not set.