Section: Visualization Toolkit Widget Classes
By default, the widget responds to the following events: <pre> Selecting the center point, horizontal separator, and verticel separator: LeftButtonPressEvent - move the separators LeftButtonReleaseEvent - release the separators MouseMoveEvent - move the separators </pre> Selecting the center point allows you to move the horizontal and vertical separators simultaneously. Otherwise only horizontal or vertical motion is possible/
Note that the event bindings described above can be changed using this class's vtkWidgetEventTranslator. This class translates VTK events into the vtkRectilinearWipeWidget's widget events: <pre> vtkWidgetEvent::Select -- some part of the widget has been selected vtkWidgetEvent::EndSelect -- the selection process has completed vtkWidgetEvent::Move -- a request for motion has been invoked </pre>
In turn, when these widget events are processed, the vtkRectilinearWipeWidget invokes the following VTK events (which observers can listen for): <pre> vtkCommand::StartInteractionEvent (on vtkWidgetEvent::Select) vtkCommand::EndInteractionEvent (on vtkWidgetEvent::EndSelect) vtkCommand::InteractionEvent (on vtkWidgetEvent::Move) </pre>
To create an instance of class vtkRectilinearWipeWidget, simply invoke its constructor as follows
obj = vtkRectilinearWipeWidget
obj
is an instance of the vtkRectilinearWipeWidget class.
string = obj.GetClassName ()
- Standard macros.
int = obj.IsA (string name)
- Standard macros.
vtkRectilinearWipeWidget = obj.NewInstance ()
- Standard macros.
vtkRectilinearWipeWidget = obj.SafeDownCast (vtkObject o)
- Standard macros.
obj.SetRepresentation (vtkRectilinearWipeRepresentation r)
- Create the default widget representation if one is not set.
obj.CreateDefaultRepresentation ()
- Create the default widget representation if one is not set.