Section: Visualization Toolkit Rendering Classes
To create an instance of class vtkInteractorStyleUser, simply invoke its constructor as follows
obj = vtkInteractorStyleUser
obj
is an instance of the vtkInteractorStyleUser class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkInteractorStyleUser = obj.NewInstance ()
vtkInteractorStyleUser = obj.SafeDownCast (vtkObject o)
int = obj. GetLastPos ()
- Get the most recent mouse position during mouse motion.
In your user interaction method, you must use this to track
the mouse movement. Do not use GetEventPosition(), which records
the last position where a mouse button was pressed.
int = obj. GetOldPos ()
- Get the previous mouse position during mouse motion, or after
a key press. This can be used to calculate the relative
displacement of the mouse.
int = obj.GetShiftKey ()
- Test whether modifiers were held down when mouse button or key
was pressed
int = obj.GetCtrlKey ()
- Test whether modifiers were held down when mouse button or key
was pressed
int = obj.GetChar ()
- Get the character for a Char event.
string = obj.GetKeySym ()
- Get the KeySym (in the same format as Tk KeySyms) for a
KeyPress or KeyRelease method.
int = obj.GetButton ()
- Get the mouse button that was last pressed inside the window
(returns zero when the button is released).
obj.OnMouseMove ()
- Generic event bindings
obj.OnLeftButtonDown ()
- Generic event bindings
obj.OnLeftButtonUp ()
- Generic event bindings
obj.OnMiddleButtonDown ()
- Generic event bindings
obj.OnMiddleButtonUp ()
- Generic event bindings
obj.OnRightButtonDown ()
- Generic event bindings
obj.OnRightButtonUp ()
- Generic event bindings
obj.OnChar ()
- Keyboard functions
obj.OnKeyPress ()
- Keyboard functions
obj.OnKeyRelease ()
- Keyboard functions
obj.OnExpose ()
- These are more esoteric events, but are useful in some cases.
obj.OnConfigure ()
- These are more esoteric events, but are useful in some cases.
obj.OnEnter ()
- These are more esoteric events, but are useful in some cases.
obj.OnLeave ()
- These are more esoteric events, but are useful in some cases.
obj.OnTimer ()