VTK  9.2.6
vtkInteractorStyleTrackballCamera.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkInteractorStyleTrackballCamera.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=========================================================================*/
150#ifndef vtkInteractorStyleTrackballCamera_h
151#define vtkInteractorStyleTrackballCamera_h
152
153#include "vtkInteractionStyleModule.h" // For export macro
154#include "vtkInteractorStyle.h"
155
156class VTKINTERACTIONSTYLE_EXPORT vtkInteractorStyleTrackballCamera : public vtkInteractorStyle
157{
158public:
161 void PrintSelf(ostream& os, vtkIndent indent) override;
162
164
168 void OnMouseMove() override;
169 void OnLeftButtonDown() override;
170 void OnLeftButtonUp() override;
171 void OnMiddleButtonDown() override;
172 void OnMiddleButtonUp() override;
173 void OnRightButtonDown() override;
174 void OnRightButtonUp() override;
175 void OnMouseWheelForward() override;
176 void OnMouseWheelBackward() override;
178
179 // These methods for the different interactions in different modes
180 // are overridden in subclasses to perform the correct motion. Since
181 // they are called by OnTimer, they do not have mouse coord parameters
182 // (use interactor's GetEventPosition and GetLastEventPosition)
183 void Rotate() override;
184 void Spin() override;
185 void Pan() override;
186 void Dolly() override;
187 void EnvironmentRotate() override;
188
190
193 vtkSetMacro(MotionFactor, double);
194 vtkGetMacro(MotionFactor, double);
196
197protected:
200
202
203 virtual void Dolly(double factor);
204
205private:
207 void operator=(const vtkInteractorStyleTrackballCamera&) = delete;
208};
209
210#endif
a simple class to control print indentation
Definition: vtkIndent.h:119
interactive manipulation of the camera
void OnRightButtonUp() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
virtual void Dolly(double factor)
static vtkInteractorStyleTrackballCamera * New()
void OnLeftButtonDown() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void OnMouseWheelForward() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void OnMiddleButtonUp() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void OnMouseMove() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void Rotate() override
These methods for the different interactions in different modes are overridden in subclasses to perfo...
void OnMouseWheelBackward() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void OnRightButtonDown() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void OnLeftButtonUp() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void OnMiddleButtonDown() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
provide event-driven interface to the rendering window (defines trackball mode)