VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
vtkInteractorStyleUser.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkInteractorStyleUser.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
38
#ifndef __vtkInteractorStyleUser_h
39
#define __vtkInteractorStyleUser_h
40
41
#include "
vtkInteractorStyle.h
"
42
43
// new motion flag
44
#define VTKIS_USERINTERACTION 8
45
46
class
VTK_RENDERING_EXPORT
vtkInteractorStyleUser
:
public
vtkInteractorStyle
47
{
48
public
:
49
static
vtkInteractorStyleUser
*
New
();
50
vtkTypeMacro(
vtkInteractorStyleUser
,
vtkInteractorStyle
);
51
void
PrintSelf
(ostream& os,
vtkIndent
indent);
52
54
58
vtkGetVector2Macro(LastPos,
int
);
60
62
65
vtkGetVector2Macro(OldPos,
int
);
67
69
71
vtkGetMacro(ShiftKey,
int
);
72
vtkGetMacro(CtrlKey,
int
);
74
76
77
vtkGetMacro(Char,
int
);
79
81
83
vtkGetStringMacro(KeySym);
85
87
89
vtkGetMacro(Button,
int
);
91
93
94
virtual
void
OnMouseMove
();
95
virtual
void
OnLeftButtonDown
();
96
virtual
void
OnLeftButtonUp
();
97
virtual
void
OnMiddleButtonDown
();
98
virtual
void
OnMiddleButtonUp
();
99
virtual
void
OnRightButtonDown
();
100
virtual
void
OnRightButtonUp
();
102
104
105
virtual
void
OnChar
();
106
virtual
void
OnKeyPress
();
107
virtual
void
OnKeyRelease
();
109
111
112
virtual
void
OnExpose
();
113
virtual
void
OnConfigure
();
114
virtual
void
OnEnter
();
115
virtual
void
OnLeave
();
117
118
virtual
void
OnTimer
();
119
120
protected
:
121
122
vtkInteractorStyleUser
();
123
~
vtkInteractorStyleUser
();
124
125
int
LastPos[2];
126
int
OldPos[2];
127
128
int
ShiftKey
;
129
int
CtrlKey
;
130
int
Char
;
131
char
*
KeySym
;
132
int
Button
;
133
134
private
:
135
vtkInteractorStyleUser
(
const
vtkInteractorStyleUser
&);
// Not implemented.
136
void
operator=(
const
vtkInteractorStyleUser
&);
// Not implemented.
137
};
138
139
#endif
Generated on Wed May 30 2012 13:22:22 for VTK by
1.8.1