VTK
vtkContextKeyEvent.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkContextScene.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
24 #ifndef vtkContextKeyEvent_h
25 #define vtkContextKeyEvent_h
26 
27 #include "vtkRenderingContext2DModule.h" // For export macro
28 #include "vtkWeakPointer.h" // For vtkWeakPointer
29 #include "vtkVector.h" // For vtkVector2i
30 
32 
34 {
35 public:
37 
39  void SetInteractor(vtkRenderWindowInteractor *interactor);
40 
43  vtkRenderWindowInteractor* GetInteractor() const;
44 
46  void SetPosition(const vtkVector2i& position) { this->Position = position; }
47 
49  vtkVector2i GetPosition() const { return this->Position; }
50 
51  char GetKeyCode() const;
52 
53 protected:
56 };
57 
58 #endif // vtkContextKeyEvent_h
59 // VTK-HeaderTest-Exclude: vtkContextKeyEvent.h
data structure to represent key events.
vtkVector2i GetPosition() const
platform-independent render window interaction including picking and frame rate control.
void SetPosition(const vtkVector2i &position)
#define VTKRENDERINGCONTEXT2D_EXPORT
vtkWeakPointer< vtkRenderWindowInteractor > Interactor