|
VTK
|
data structure to represent mouse events. More...
#include <vtkContextMouseEvent.h>

Public Types | |
| enum | { NO_BUTTON = 0, LEFT_BUTTON = 1, MIDDLE_BUTTON = 2, RIGHT_BUTTON = 4 } |
| enum | { NO_MODIFIER = 0, ALT_MODIFIER = 1, SHIFT_MODIFIER = 2, CONTROL_MODIFIER = 4 } |
Public Member Functions | |
| vtkContextMouseEvent () | |
| ~vtkContextMouseEvent () | |
| int | GetModifiers () const |
| void | SetInteractor (vtkRenderWindowInteractor *interactor) |
| vtkRenderWindowInteractor * | GetInteractor () const |
| void | SetPos (const vtkVector2f &pos) |
| vtkVector2f | GetPos () const |
| void | SetScenePos (const vtkVector2f &pos) |
| vtkVector2f | GetScenePos () const |
| void | SetScreenPos (const vtkVector2i &pos) |
| vtkVector2i | GetScreenPos () const |
| void | SetLastPos (const vtkVector2f &pos) |
| vtkVector2f | GetLastPos () const |
| void | SetLastScenePos (const vtkVector2f &pos) |
| vtkVector2f | GetLastScenePos () const |
| void | SetLastScreenPos (const vtkVector2i &pos) |
| vtkVector2i | GetLastScreenPos () const |
| void | SetButton (int button) |
| int | GetButton () const |
Public Attributes | |
| vtkVector2f | Pos |
| vtkVector2f | ScenePos |
| vtkVector2i | ScreenPos |
| vtkVector2f | LastPos |
| vtkVector2f | LastScenePos |
| vtkVector2i | LastScreenPos |
| int | Button |
Protected Attributes | |
| vtkRenderWindowInteractor * | Interactor |
data structure to represent mouse events.
Provides a convenient data structure to represent mouse events in the vtkContextScene. Passed to vtkAbstractContextItem objects.
Definition at line 34 of file vtkContextMouseEvent.h.
| anonymous enum |
Enumeration of mouse buttons.
Definition at line 39 of file vtkContextMouseEvent.h.
| anonymous enum |
Enumeration of modifier keys.
Definition at line 49 of file vtkContextMouseEvent.h.
|
inline |
Definition at line 57 of file vtkContextMouseEvent.h.
|
inline |
Definition at line 61 of file vtkContextMouseEvent.h.
|
inline |
Set the interactor for the mouse event.
Definition at line 67 of file vtkContextMouseEvent.h.
|
inline |
Get the interactor for the mouse event. This can be null, and is provided only for convenience.
Definition at line 76 of file vtkContextMouseEvent.h.
|
inline |
Set/get the position of the mouse in the item's coordinates.
Definition at line 84 of file vtkContextMouseEvent.h.
|
inline |
Set/get the position of the mouse in the item's coordinates.
Definition at line 85 of file vtkContextMouseEvent.h.
|
inline |
Set/get the position of the mouse in scene coordinates.
Definition at line 90 of file vtkContextMouseEvent.h.
|
inline |
Set/get the position of the mouse in scene coordinates.
Definition at line 91 of file vtkContextMouseEvent.h.
|
inline |
Set/get the position of the mouse in screen coordinates.
Definition at line 96 of file vtkContextMouseEvent.h.
|
inline |
Set/get the position of the mouse in screen coordinates.
Definition at line 97 of file vtkContextMouseEvent.h.
|
inline |
Set/get the position of the mouse in the item's coordinates.
Definition at line 102 of file vtkContextMouseEvent.h.
|
inline |
Set/get the position of the mouse in the item's coordinates.
Definition at line 103 of file vtkContextMouseEvent.h.
|
inline |
Set/get the position of the mouse in scene coordinates.
Definition at line 108 of file vtkContextMouseEvent.h.
|
inline |
Set/get the position of the mouse in scene coordinates.
Definition at line 109 of file vtkContextMouseEvent.h.
|
inline |
Set/get the position of the mouse in screen coordinates.
Definition at line 114 of file vtkContextMouseEvent.h.
|
inline |
Set/get the position of the mouse in screen coordinates.
Definition at line 115 of file vtkContextMouseEvent.h.
|
inline |
Set/get the mouse button that caused the event, with possible values being NO_BUTTON, LEFT_BUTTON, MIDDLE_BUTTON and RIGHT_BUTTON.
Definition at line 121 of file vtkContextMouseEvent.h.
|
inline |
Set/get the mouse button that caused the event, with possible values being NO_BUTTON, LEFT_BUTTON, MIDDLE_BUTTON and RIGHT_BUTTON.
Definition at line 122 of file vtkContextMouseEvent.h.
| int vtkContextMouseEvent::GetModifiers | ( | ) | const |
Return the modifier keys, if any, ORed together. Valid modifier enum values are NO_MODIFIER, ALT_MODIFIER, SHIFT_MODIFIER and/or CONTROL_MODIFIER.
| vtkVector2f vtkContextMouseEvent::Pos |
Position of the mouse in item coordinate system.
Definition at line 136 of file vtkContextMouseEvent.h.
| vtkVector2f vtkContextMouseEvent::ScenePos |
Position of the mouse the scene coordinate system.
Definition at line 139 of file vtkContextMouseEvent.h.
| vtkVector2i vtkContextMouseEvent::ScreenPos |
Position of the mouse in screen coordinates
Definition at line 142 of file vtkContextMouseEvent.h.
| vtkVector2f vtkContextMouseEvent::LastPos |
`Pos' at the previous mouse event.
Definition at line 145 of file vtkContextMouseEvent.h.
| vtkVector2f vtkContextMouseEvent::LastScenePos |
`ScenePos'at the previous mouse event.
Definition at line 148 of file vtkContextMouseEvent.h.
| vtkVector2i vtkContextMouseEvent::LastScreenPos |
`ScreenPos' at the previous mouse event.
Definition at line 151 of file vtkContextMouseEvent.h.
| int vtkContextMouseEvent::Button |
Mouse button that caused the event, using the anonymous enumeration.
Definition at line 154 of file vtkContextMouseEvent.h.
|
protected |
Definition at line 157 of file vtkContextMouseEvent.h.
1.8.1.2