VTK  9.1.0
vtkInteractorStyleJoystickCamera.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkInteractorStyleJoystickCamera.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=========================================================================*/
36#ifndef vtkInteractorStyleJoystickCamera_h
37#define vtkInteractorStyleJoystickCamera_h
38
39#include "vtkInteractionStyleModule.h" // For export macro
40#include "vtkInteractorStyle.h"
41
42class VTKINTERACTIONSTYLE_EXPORT vtkInteractorStyleJoystickCamera : public vtkInteractorStyle
43{
44public:
47 void PrintSelf(ostream& os, vtkIndent indent) override;
48
50
54 void OnMouseMove() override;
55 void OnLeftButtonDown() override;
56 void OnLeftButtonUp() override;
57 void OnMiddleButtonDown() override;
58 void OnMiddleButtonUp() override;
59 void OnRightButtonDown() override;
60 void OnRightButtonUp() override;
61 void OnMouseWheelForward() override;
62 void OnMouseWheelBackward() override;
64
65 // These methods for the different interactions in different modes
66 // are overridden in subclasses to perform the correct motion. Since
67 // they are called by OnTimer, they do not have mouse coord parameters
68 // (use interactor's GetEventPosition and GetLastEventPosition)
69 void Rotate() override;
70 void Spin() override;
71 void Pan() override;
72 void Dolly() override;
73
74protected:
77
78 virtual void Dolly(double factor);
79
80private:
82 void operator=(const vtkInteractorStyleJoystickCamera&) = delete;
83};
84
85#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
interactive manipulation of the camera
virtual void Dolly(double factor)
void OnMouseMove() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
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 PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void OnLeftButtonUp() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void OnMouseWheelForward() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void OnLeftButtonDown() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
static vtkInteractorStyleJoystickCamera * New()
void OnRightButtonUp() 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 OnMiddleButtonDown() 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...
provide event-driven interface to the rendering window (defines trackball mode)