| 
    VTK
    9.5.20251103
    
   | 
 
data structure to represent key events. More...
#include <vtkContextKeyEvent.h>
Public Member Functions | |
| vtkContextKeyEvent () | |
| void | SetInteractor (vtkRenderWindowInteractor *interactor) | 
| Set the interactor for the key event.   | |
| vtkRenderWindowInteractor * | GetInteractor () const | 
| Get the interactor for the key event.   | |
| void | SetPosition (const vtkVector2i &position) | 
| Set the position of the mouse when the key was pressed.   | |
| vtkVector2i | GetPosition () const | 
| Get the position of the mouse when the key was pressed.   | |
| 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 23 of file vtkContextKeyEvent.h.
| vtkContextKeyEvent::vtkContextKeyEvent | ( | ) | 
| void vtkContextKeyEvent::SetInteractor | ( | vtkRenderWindowInteractor * | interactor | ) | 
Set the interactor for the key event.
| vtkRenderWindowInteractor * vtkContextKeyEvent::GetInteractor | ( | ) | const | 
Get the interactor for the key event.
This can be null, and is provided only for convenience.
      
  | 
  inline | 
Set the position of the mouse when the key was pressed.
Definition at line 42 of file vtkContextKeyEvent.h.
      
  | 
  inline | 
Get the position of the mouse when the key was pressed.
Definition at line 47 of file vtkContextKeyEvent.h.
| char vtkContextKeyEvent::GetKeyCode | ( | ) | const | 
      
  | 
  protected | 
Definition at line 52 of file vtkContextKeyEvent.h.
      
  | 
  protected | 
Definition at line 53 of file vtkContextKeyEvent.h.