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.
- Examples:
- vtkContextMouseEvent (Examples)
- Tests:
- vtkContextMouseEvent (Tests)
Definition at line 29 of file vtkContextMouseEvent.h.
◆ anonymous enum
Enumeration of mouse buttons.
| Enumerator |
|---|
| NO_BUTTON | |
| LEFT_BUTTON | |
| MIDDLE_BUTTON | |
| RIGHT_BUTTON | |
Definition at line 35 of file vtkContextMouseEvent.h.
◆ anonymous enum
Enumeration of modifier keys.
| Enumerator |
|---|
| NO_MODIFIER | |
| ALT_MODIFIER | |
| SHIFT_MODIFIER | |
| CONTROL_MODIFIER | |
Definition at line 46 of file vtkContextMouseEvent.h.
◆ vtkContextMouseEvent()
| vtkContextMouseEvent::vtkContextMouseEvent |
( |
| ) |
|
|
default |
◆ SetInteractor()
◆ GetInteractor()
Get the interactor for the mouse event.
This can be null, and is provided only for convenience.
Definition at line 65 of file vtkContextMouseEvent.h.
◆ SetPos()
| void vtkContextMouseEvent::SetPos |
( |
const vtkVector2f & | pos | ) |
|
|
inline |
◆ GetPos()
◆ SetScenePos()
| void vtkContextMouseEvent::SetScenePos |
( |
const vtkVector2f & | pos | ) |
|
|
inline |
◆ GetScenePos()
| vtkVector2f vtkContextMouseEvent::GetScenePos |
( |
| ) |
const |
|
inline |
◆ SetScreenPos()
| void vtkContextMouseEvent::SetScreenPos |
( |
const vtkVector2i & | pos | ) |
|
|
inline |
◆ GetScreenPos()
| vtkVector2i vtkContextMouseEvent::GetScreenPos |
( |
| ) |
const |
|
inline |
◆ SetLastPos()
| void vtkContextMouseEvent::SetLastPos |
( |
const vtkVector2f & | pos | ) |
|
|
inline |
◆ GetLastPos()
◆ SetLastScenePos()
| void vtkContextMouseEvent::SetLastScenePos |
( |
const vtkVector2f & | pos | ) |
|
|
inline |
◆ GetLastScenePos()
| vtkVector2f vtkContextMouseEvent::GetLastScenePos |
( |
| ) |
const |
|
inline |
◆ SetLastScreenPos()
| void vtkContextMouseEvent::SetLastScreenPos |
( |
const vtkVector2i & | pos | ) |
|
|
inline |
◆ GetLastScreenPos()
| vtkVector2i vtkContextMouseEvent::GetLastScreenPos |
( |
| ) |
const |
|
inline |
◆ SetButton()
| 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 107 of file vtkContextMouseEvent.h.
◆ GetButton()
| int vtkContextMouseEvent::GetButton |
( |
| ) |
const |
|
inline |
◆ GetModifiers()
| 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.
◆ Pos
◆ ScenePos
◆ ScreenPos
◆ Button
| int vtkContextMouseEvent::Button |
|
protected |
`Pos' at the previous mouse event.
*/ vtkVector2f LastPos;
/** `ScenePos'at the previous mouse event. */ vtkVector2f LastScenePos;
/** `ScreenPos' at the previous mouse event. */ vtkVector2i LastScreenPos;
/** Mouse button that caused the event, using the anonymous enumeration.
Definition at line 150 of file vtkContextMouseEvent.h.
◆ Interactor
The documentation for this class was generated from the following file: