VTK
|
data structure to represent mouse events. More...
#include <vtkContextMouseEvent.h>
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 39 of file vtkContextMouseEvent.h.
anonymous enum |
Enumeration of mouse buttons.
Definition at line 44 of file vtkContextMouseEvent.h.
anonymous enum |
Enumeration of modifier keys.
Definition at line 54 of file vtkContextMouseEvent.h.
vtkContextMouseEvent::vtkContextMouseEvent | ( | ) | [inline] |
Definition at line 62 of file vtkContextMouseEvent.h.
void vtkContextMouseEvent::SetInteractor | ( | vtkRenderWindowInteractor * | interactor | ) | [inline] |
Set the interactor for the mouse event.
Definition at line 68 of file vtkContextMouseEvent.h.
vtkRenderWindowInteractor* vtkContextMouseEvent::GetInteractor | ( | ) | const [inline] |
Get the interactor for the mouse event. This can be null, and is provided only for convenience.
Definition at line 77 of file vtkContextMouseEvent.h.
void vtkContextMouseEvent::SetPos | ( | const vtkVector2f & | pos | ) | [inline] |
Set/get the position of the mouse in the item's coordinates.
Definition at line 85 of file vtkContextMouseEvent.h.
vtkVector2f vtkContextMouseEvent::GetPos | ( | ) | const [inline] |
Set/get the position of the mouse in the item's coordinates.
Definition at line 86 of file vtkContextMouseEvent.h.
void vtkContextMouseEvent::SetScenePos | ( | const vtkVector2f & | pos | ) | [inline] |
Set/get the position of the mouse in scene coordinates.
Definition at line 91 of file vtkContextMouseEvent.h.
vtkVector2f vtkContextMouseEvent::GetScenePos | ( | ) | const [inline] |
Set/get the position of the mouse in scene coordinates.
Definition at line 92 of file vtkContextMouseEvent.h.
void vtkContextMouseEvent::SetScreenPos | ( | const vtkVector2i & | pos | ) | [inline] |
Set/get the position of the mouse in screen coordinates.
Definition at line 97 of file vtkContextMouseEvent.h.
vtkVector2i vtkContextMouseEvent::GetScreenPos | ( | ) | const [inline] |
Set/get the position of the mouse in screen coordinates.
Definition at line 98 of file vtkContextMouseEvent.h.
void vtkContextMouseEvent::SetLastPos | ( | const vtkVector2f & | pos | ) | [inline] |
Set/get the position of the mouse in the item's coordinates.
Definition at line 103 of file vtkContextMouseEvent.h.
vtkVector2f vtkContextMouseEvent::GetLastPos | ( | ) | const [inline] |
Set/get the position of the mouse in the item's coordinates.
Definition at line 104 of file vtkContextMouseEvent.h.
void vtkContextMouseEvent::SetLastScenePos | ( | const vtkVector2f & | pos | ) | [inline] |
Set/get the position of the mouse in scene coordinates.
Definition at line 109 of file vtkContextMouseEvent.h.
vtkVector2f vtkContextMouseEvent::GetLastScenePos | ( | ) | const [inline] |
Set/get the position of the mouse in scene coordinates.
Definition at line 110 of file vtkContextMouseEvent.h.
void vtkContextMouseEvent::SetLastScreenPos | ( | const vtkVector2i & | pos | ) | [inline] |
Set/get the position of the mouse in screen coordinates.
Definition at line 115 of file vtkContextMouseEvent.h.
vtkVector2i vtkContextMouseEvent::GetLastScreenPos | ( | ) | const [inline] |
Set/get the position of the mouse in screen coordinates.
Definition at line 116 of file vtkContextMouseEvent.h.
void vtkContextMouseEvent::SetButton | ( | int | button | ) | [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::GetButton | ( | ) | const [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 123 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.
Position of the mouse in item coordinate system.
Definition at line 137 of file vtkContextMouseEvent.h.
Position of the mouse the scene coordinate system.
Definition at line 140 of file vtkContextMouseEvent.h.
Position of the mouse in screen coordinates
Definition at line 143 of file vtkContextMouseEvent.h.
`Pos' at the previous mouse event.
Definition at line 146 of file vtkContextMouseEvent.h.
`ScenePos'at the previous mouse event.
Definition at line 149 of file vtkContextMouseEvent.h.
`ScreenPos' at the previous mouse event.
Definition at line 152 of file vtkContextMouseEvent.h.
Mouse button that caused the event, using the anonymous enumeration.
Definition at line 155 of file vtkContextMouseEvent.h.
Definition at line 158 of file vtkContextMouseEvent.h.