Section: Visualization Toolkit Widget Classes
To create an instance of class vtkScalarBarWidget, simply invoke its constructor as follows
obj = vtkScalarBarWidget
obj is an instance of the vtkScalarBarWidget class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkScalarBarWidget = obj.NewInstance ()
vtkScalarBarWidget = obj.SafeDownCast (vtkObject o)
obj.SetRepresentation (vtkScalarBarRepresentation rep) - Specify an instance of vtkWidgetRepresentation used to represent this
widget in the scene. Note that the representation is a subclass of vtkProp
so it can be added to the renderer independent of the widget.
vtkScalarBarRepresentation = obj.GetScalarBarRepresentation () - Get the ScalarBar used by this Widget. One is created automatically.
obj.SetScalarBarActor (vtkScalarBarActor actor) - Get the ScalarBar used by this Widget. One is created automatically.
vtkScalarBarActor = obj.GetScalarBarActor () - Get the ScalarBar used by this Widget. One is created automatically.
obj.SetRepositionable (int ) - Can the widget be moved. On by default. If off, the widget cannot be moved
around.
TODO: This functionality should probably be moved to the superclass.
int = obj.GetRepositionable () - Can the widget be moved. On by default. If off, the widget cannot be moved
around.
TODO: This functionality should probably be moved to the superclass.
obj.RepositionableOn () - Can the widget be moved. On by default. If off, the widget cannot be moved
around.
TODO: This functionality should probably be moved to the superclass.
obj.RepositionableOff () - Can the widget be moved. On by default. If off, the widget cannot be moved
around.
TODO: This functionality should probably be moved to the superclass.
obj.CreateDefaultRepresentation () - Create the default widget representation if one is not set.