VTK
|
provides customizable interaction routines More...
#include <vtkInteractorStyleUser.h>
Inherits vtkInteractorStyle.
Public Types | |
typedef vtkInteractorStyle | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkInteractorStyleUser * | NewInstance () const |
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 | |
static vtkInteractorStyleUser * | New () |
static int | IsTypeOf (const char *type) |
static vtkInteractorStyleUser * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkInteractorStyleUser () | |
~vtkInteractorStyleUser () | |
Protected Attributes | |
int | LastPos [2] |
int | OldPos [2] |
int | ShiftKey |
int | CtrlKey |
int | Char |
char * | KeySym |
int | Button |
provides customizable interaction routines
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 47 of file vtkInteractorStyleUser.h.
typedef vtkInteractorStyle vtkInteractorStyleUser::Superclass |
Definition at line 51 of file vtkInteractorStyleUser.h.
|
protected |
|
protected |
|
static |
|
static |
|
virtual |
|
static |
|
protectedvirtual |
vtkInteractorStyleUser* vtkInteractorStyleUser::NewInstance | ( | ) | const |
void vtkInteractorStyleUser::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
virtual |
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.
|
virtual |
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.
|
virtual |
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.
|
virtual |
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.
|
virtual |
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.
|
virtual |
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.
|
virtual |
Test whether modifiers were held down when mouse button or key was pressed
|
virtual |
Test whether modifiers were held down when mouse button or key was pressed
|
virtual |
Get the character for a Char event.
|
virtual |
Get the KeySym (in the same format as Tk KeySyms) for a KeyPress or KeyRelease method.
|
virtual |
Get the mouse button that was last pressed inside the window (returns zero when the button is released).
|
virtual |
Generic event bindings
|
virtual |
Generic event bindings
|
virtual |
Generic event bindings
|
virtual |
Generic event bindings
|
virtual |
Generic event bindings
|
virtual |
Generic event bindings
|
virtual |
Generic event bindings
|
virtual |
Keyboard functions
|
virtual |
Keyboard functions
|
virtual |
Keyboard functions
|
virtual |
These are more esoteric events, but are useful in some cases.
|
virtual |
These are more esoteric events, but are useful in some cases.
|
virtual |
These are more esoteric events, but are useful in some cases.
|
virtual |
These are more esoteric events, but are useful in some cases.
|
virtual |
|
protected |
Definition at line 126 of file vtkInteractorStyleUser.h.
|
protected |
Definition at line 127 of file vtkInteractorStyleUser.h.
|
protected |
Definition at line 129 of file vtkInteractorStyleUser.h.
|
protected |
Definition at line 130 of file vtkInteractorStyleUser.h.
|
protected |
Definition at line 131 of file vtkInteractorStyleUser.h.
|
protected |
Definition at line 132 of file vtkInteractorStyleUser.h.
|
protected |
Definition at line 133 of file vtkInteractorStyleUser.h.