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
35
36#ifndef vtkInteractorStyleUser_h
37#define vtkInteractorStyleUser_h
38
39#include "vtkInteractionStyleModule.h" // For export macro
40#include "vtkInteractorStyle.h"
41
42// new motion flag
43#define VTKIS_USERINTERACTION 8
44
45class VTKINTERACTIONSTYLE_EXPORT vtkInteractorStyleUser : public vtkInteractorStyle
46{
47public:
50 void PrintSelf(ostream& os, vtkIndent indent) override;
51
53
59 vtkGetVector2Macro(LastPos, int);
61
63
68 vtkGetVector2Macro(OldPos, int);
70
72
76 vtkGetMacro(ShiftKey, int);
77 vtkGetMacro(CtrlKey, int);
79
81
84 vtkGetMacro(Char, int);
86
88
92 vtkGetStringMacro(KeySym);
94
96
100 vtkGetMacro(Button, int);
102
104
107 void OnMouseMove() override;
108 void OnLeftButtonDown() override;
109 void OnLeftButtonUp() override;
110 void OnMiddleButtonDown() override;
111 void OnMiddleButtonUp() override;
112 void OnRightButtonDown() override;
113 void OnRightButtonUp() override;
114 void OnMouseWheelForward() override;
115 void OnMouseWheelBackward() override;
117
119
122 void OnChar() override;
123 void OnKeyPress() override;
124 void OnKeyRelease() override;
126
128
131 void OnExpose() override;
132 void OnConfigure() override;
133 void OnEnter() override;
134 void OnLeave() override;
136
137 void OnTimer() override;
138
139protected:
142
143 int LastPos[2];
144 int OldPos[2];
145
148 int Char;
149 char* KeySym;
151
152private:
154 void operator=(const vtkInteractorStyleUser&) = delete;
155};
156
157#endif
a simple class to control print indentation
Definition vtkIndent.h:34
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.