Section: Visualization Toolkit Rendering Classes
To create an instance of class vtkXRenderWindowInteractor, simply invoke its constructor as follows
obj = vtkXRenderWindowInteractor
obj
is an instance of the vtkXRenderWindowInteractor class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkXRenderWindowInteractor = obj.NewInstance ()
vtkXRenderWindowInteractor = obj.SafeDownCast (vtkObject o)
obj.Initialize ()
- Initializes the event handlers without an XtAppContext. This is
good for when you don't have a user interface, but you still
want to have mouse interaction.
obj.TerminateApp ()
- Break the event loop on 'q','e' keypress. Want more ???
int = obj.GetBreakLoopFlag ()
- The BreakLoopFlag is checked in the Start() method.
Setting it to anything other than zero will cause
the interactor loop to terminate and return to the
calling function.
obj.SetBreakLoopFlag (int )
- The BreakLoopFlag is checked in the Start() method.
Setting it to anything other than zero will cause
the interactor loop to terminate and return to the
calling function.
obj.BreakLoopFlagOff ()
- The BreakLoopFlag is checked in the Start() method.
Setting it to anything other than zero will cause
the interactor loop to terminate and return to the
calling function.
obj.BreakLoopFlagOn ()
- The BreakLoopFlag is checked in the Start() method.
Setting it to anything other than zero will cause
the interactor loop to terminate and return to the
calling function.
obj.Enable ()
- Enable/Disable interactions. By default interactors are enabled when
initialized. Initialize() must be called prior to enabling/disabling
interaction. These methods are used when a window/widget is being
shared by multiple renderers and interactors. This allows a "modal"
display where one interactor is active when its data is to be displayed
and all other interactors associated with the widget are disabled
when their data is not displayed.
obj.Disable ()
- Enable/Disable interactions. By default interactors are enabled when
initialized. Initialize() must be called prior to enabling/disabling
interaction. These methods are used when a window/widget is being
shared by multiple renderers and interactors. This allows a "modal"
display where one interactor is active when its data is to be displayed
and all other interactors associated with the widget are disabled
when their data is not displayed.
obj.Start ()
- This will start up the X event loop and never return. If you
call this method it will loop processing X events until the
application is exited.
obj.UpdateSize (int , int )
- Update the Size data member and set the associated RenderWindow's
size.
obj.GetMousePosition (int x, int y)
- Re-defines virtual function to get mouse position by querying X-server.