VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Charts
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 "
vtkWeakPointer.h
"
// For vtkWeakPointer
28
#include "
vtkVector.h
"
// For vtkVector2i
29
30
class
vtkRenderWindowInteractor
;
31
32
class
vtkContextKeyEvent
33
{
34
public
:
35
vtkContextKeyEvent
();
36
~vtkContextKeyEvent
();
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
:
54
vtkWeakPointer<vtkRenderWindowInteractor>
Interactor
;
55
vtkVector2i
Position
;
56
};
57
58
#endif // __vtkContextKeyEvent_h
Generated on Tue Jan 8 2013 05:45:22 for VTK by
1.8.1.2