#include <vtkInteractorStyleUser.h>
Inheritance diagram for vtkInteractorStyleUser:
The most common way to customize user interaction is to write a subclass of vtkInteractorStyle: vtkInteractorStyleUser allows you to customize the interaction to without subclassing vtkInteractorStyle. This is particularly useful for setting up custom interaction modes in scripting languages such as Tcl and Python. This class allows you to hook into the MouseMove, ButtonPress/Release, KeyPress/Release, etc. events. If you want to hook into just a single mouse button, but leave the interaction modes for the others unchanged, you must use e.g. SetMiddleButtonPressMethod() instead of the more general SetButtonPressMethod().
Definition at line 46 of file vtkInteractorStyleUser.h.
Public Types | |
typedef vtkInteractorStyle | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | OnTimer () |
virtual int * | GetLastPos () |
virtual void | GetLastPos (int &, int &) |
virtual void | GetLastPos (int[2]) |
virtual int * | GetOldPos () |
virtual void | GetOldPos (int &, int &) |
virtual void | GetOldPos (int[2]) |
virtual int | GetShiftKey () |
virtual int | GetCtrlKey () |
virtual int | GetChar () |
virtual char * | GetKeySym () |
virtual int | GetButton () |
virtual void | OnMouseMove () |
virtual void | OnLeftButtonDown () |
virtual void | OnLeftButtonUp () |
virtual void | OnMiddleButtonDown () |
virtual void | OnMiddleButtonUp () |
virtual void | OnRightButtonDown () |
virtual void | OnRightButtonUp () |
virtual void | OnChar () |
virtual void | OnKeyPress () |
virtual void | OnKeyRelease () |
virtual void | OnExpose () |
virtual void | OnConfigure () |
virtual void | OnEnter () |
virtual void | OnLeave () |
Static Public Member Functions | |
vtkInteractorStyleUser * | New () |
int | IsTypeOf (const char *type) |
vtkInteractorStyleUser * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkInteractorStyleUser () | |
~vtkInteractorStyleUser () | |
Protected Attributes | |
int | LastPos [2] |
int | OldPos [2] |
int | ShiftKey |
int | CtrlKey |
int | Char |
char * | KeySym |
int | Button |
|
Reimplemented from vtkInteractorStyle. Definition at line 50 of file vtkInteractorStyleUser.h. |
|
|
|
|
|
This class must be supplied with a vtkRenderWindowInteractor wrapper or parent. This class should not normally be instantiated by application programmers. Reimplemented from vtkInteractorStyle.
|
|
Reimplemented from vtkInteractorStyle.
|
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkInteractorStyle.
|
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkInteractorStyle.
|
|
Reimplemented from vtkInteractorStyle.
|
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from vtkInteractorStyle.
|
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
Test whether modifiers were held down when mouse button or key was pressed |
|
Test whether modifiers were held down when mouse button or key was pressed |
|
Get the character for a Char event. |
|
Get the KeySym (in the same format as Tk KeySyms) for a KeyPress or KeyRelease method. |
|
Get the mouse button that was last pressed inside the window (returns zero when the button is released). |
|
Generic event bindings Reimplemented from vtkInteractorStyle.
|
|
Generic event bindings Reimplemented from vtkInteractorStyle.
|
|
Generic event bindings Reimplemented from vtkInteractorStyle.
|
|
Generic event bindings Reimplemented from vtkInteractorStyle.
|
|
Generic event bindings Reimplemented from vtkInteractorStyle.
|
|
Generic event bindings Reimplemented from vtkInteractorStyle.
|
|
Generic event bindings Reimplemented from vtkInteractorStyle.
|
|
Keyboard functions Reimplemented from vtkInteractorStyle.
|
|
Keyboard functions Reimplemented from vtkInteractorStyle.
|
|
Keyboard functions Reimplemented from vtkInteractorStyle.
|
|
These are more esoteric events, but are useful in some cases. Reimplemented from vtkInteractorStyle.
|
|
These are more esoteric events, but are useful in some cases. Reimplemented from vtkInteractorStyle.
|
|
These are more esoteric events, but are useful in some cases. Reimplemented from vtkInteractorStyle.
|
|
These are more esoteric events, but are useful in some cases. Reimplemented from vtkInteractorStyle.
|
|
OnTimer calls Rotate, Rotate etc which should be overridden by style subclasses. Reimplemented from vtkInteractorStyle.
|
|
Definition at line 125 of file vtkInteractorStyleUser.h. |
|
Definition at line 126 of file vtkInteractorStyleUser.h. |
|
Definition at line 128 of file vtkInteractorStyleUser.h. |
|
Definition at line 129 of file vtkInteractorStyleUser.h. |
|
Definition at line 130 of file vtkInteractorStyleUser.h. |
|
Definition at line 131 of file vtkInteractorStyleUser.h. |
|
Definition at line 132 of file vtkInteractorStyleUser.h. |