VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
home
boeckb
code
depot
group-kitware
vtk
build-release
Utilities
Doxygen
dox
Rendering
Context2D
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
31
class
vtkRenderWindowInteractor
;
32
33
class
VTKRENDERINGCONTEXT2D_EXPORT
vtkContextKeyEvent
34
{
35
public
:
36
vtkContextKeyEvent
();
37
~
vtkContextKeyEvent
();
38
40
void
SetInteractor(
vtkRenderWindowInteractor
*interactor);
41
44
vtkRenderWindowInteractor
* GetInteractor()
const
;
45
47
void
SetPosition
(
const
vtkVector2i
&
position
) { this->Position =
position
; }
48
50
vtkVector2i
GetPosition
()
const
{
return
this->Position; }
51
52
char
GetKeyCode()
const
;
53
54
protected
:
55
vtkWeakPointer<vtkRenderWindowInteractor>
Interactor
;
56
vtkVector2i
Position
;
57
};
58
59
#endif // vtkContextKeyEvent_h
60
// VTK-HeaderTest-Exclude: vtkContextKeyEvent.h
vtkContextKeyEvent
data structure to represent key events.
Definition:
vtkContextKeyEvent.h:33
vtkContextKeyEvent::GetPosition
vtkVector2i GetPosition() const
Definition:
vtkContextKeyEvent.h:50
vtkRenderWindowInteractor
platform-independent render window interaction including picking and frame rate control.
Definition:
vtkRenderWindowInteractor.h:79
vtkContextKeyEvent::SetPosition
void SetPosition(const vtkVector2i &position)
Definition:
vtkContextKeyEvent.h:47
VTKRENDERINGCONTEXT2D_EXPORT
#define VTKRENDERINGCONTEXT2D_EXPORT
Definition:
vtkRenderingContext2DModule.h:15
vtkWeakPointer< vtkRenderWindowInteractor >
vtkVector2i
Definition:
vtkVector.h:265
vtkVector.h
vtkWeakPointer.h
vtkRenderingContext2DModule.h
vtkContextKeyEvent::Interactor
vtkWeakPointer< vtkRenderWindowInteractor > Interactor
Definition:
vtkContextKeyEvent.h:55
vtkContextKeyEvent::Position
vtkVector2i Position
Definition:
vtkContextKeyEvent.h:56
vtkX3D::position
Definition:
vtkX3D.h:261
Generated by
1.8.9.1