VTK
|
data structure to represent key events. More...
#include <vtkContextKeyEvent.h>
Public Member Functions | |
vtkContextKeyEvent () | |
~vtkContextKeyEvent () | |
void | SetInteractor (vtkRenderWindowInteractor *interactor) |
vtkRenderWindowInteractor * | GetInteractor () const |
void | SetPosition (const vtkVector2i &position) |
vtkVector2i | GetPosition () const |
char | GetKeyCode () const |
Protected Attributes | |
vtkWeakPointer < vtkRenderWindowInteractor > | Interactor |
vtkVector2i | Position |
data structure to represent key events.
Provides a convenient data structure to represent key events in the vtkContextScene. Passed to vtkAbstractContextItem objects.
Definition at line 33 of file vtkContextKeyEvent.h.
void vtkContextKeyEvent::SetInteractor | ( | vtkRenderWindowInteractor * | interactor | ) |
Set the interactor for the key event.
Get the interactor for the key event. This can be null, and is provided only for convenience.
void vtkContextKeyEvent::SetPosition | ( | const vtkVector2i & | position | ) | [inline] |
Set the position of the mouse when the key was pressed.
Definition at line 47 of file vtkContextKeyEvent.h.
vtkVector2i vtkContextKeyEvent::GetPosition | ( | ) | const [inline] |
Get the position of the mouse when the key was pressed.
Definition at line 50 of file vtkContextKeyEvent.h.
char vtkContextKeyEvent::GetKeyCode | ( | ) | const |
Definition at line 55 of file vtkContextKeyEvent.h.
vtkVector2i vtkContextKeyEvent::Position [protected] |
Definition at line 56 of file vtkContextKeyEvent.h.