VTK  9.2.6
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
65#ifndef vtkInteractorStyleUser_h
66#define vtkInteractorStyleUser_h
67
68#include "vtkInteractionStyleModule.h" // For export macro
69#include "vtkInteractorStyle.h"
70
71// new motion flag
72#define VTKIS_USERINTERACTION 8
73
74class VTKINTERACTIONSTYLE_EXPORT vtkInteractorStyleUser : public vtkInteractorStyle
75{
76public:
79 void PrintSelf(ostream& os, vtkIndent indent) override;
80
82
88 vtkGetVector2Macro(LastPos, int);
90
92
97 vtkGetVector2Macro(OldPos, int);
99
101
105 vtkGetMacro(ShiftKey, int);
106 vtkGetMacro(CtrlKey, int);
108
110
113 vtkGetMacro(Char, int);
115
117
121 vtkGetStringMacro(KeySym);
123
125
129 vtkGetMacro(Button, int);
131
133
136 void OnMouseMove() override;
137 void OnLeftButtonDown() override;
138 void OnLeftButtonUp() override;
139 void OnMiddleButtonDown() override;
140 void OnMiddleButtonUp() override;
141 void OnRightButtonDown() override;
142 void OnRightButtonUp() override;
143 void OnMouseWheelForward() override;
144 void OnMouseWheelBackward() override;
146
148
151 void OnChar() override;
152 void OnKeyPress() override;
153 void OnKeyRelease() override;
155
157
160 void OnExpose() override;
161 void OnConfigure() override;
162 void OnEnter() override;
163 void OnLeave() override;
165
166 void OnTimer() override;
167
168protected:
171
172 int LastPos[2];
173 int OldPos[2];
174
177 int Char;
178 char* KeySym;
180
181private:
183 void operator=(const vtkInteractorStyleUser&) = delete;
184};
185
186#endif
a simple class to control print indentation
Definition: vtkIndent.h:119
provides customizable interaction routines
void OnRightButtonUp() override
Generic event bindings.
void OnLeave() override
These are more esoteric events, but are useful in some cases.
void OnMouseWheelForward() override
Generic event bindings.
void OnRightButtonDown() override
Generic event bindings.
void OnKeyRelease() override
Keyboard functions.
~vtkInteractorStyleUser() override
void OnMiddleButtonUp() override
Generic event bindings.
void OnEnter() override
These are more esoteric events, but are useful in some cases.
static vtkInteractorStyleUser * New()
void OnMouseWheelBackward() override
Generic event bindings.
void OnExpose() override
These are more esoteric events, but are useful in some cases.
void OnChar() override
Keyboard functions.
void OnTimer() override
OnTimer calls Rotate, Rotate etc which should be overridden by style subclasses.
void OnLeftButtonDown() override
Generic event bindings.
void OnConfigure() override
These are more esoteric events, but are useful in some cases.
void OnKeyPress() override
Keyboard functions.
void OnMouseMove() override
Generic event bindings.
void OnLeftButtonUp() override
Generic event bindings.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void OnMiddleButtonDown() override
Generic event bindings.
provide event-driven interface to the rendering window (defines trackball mode)