VTK  9.5.2
vtkInteractorStyleJoystickCamera.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
23
24#ifndef vtkInteractorStyleJoystickCamera_h
25#define vtkInteractorStyleJoystickCamera_h
26
27#include "vtkInteractionStyleModule.h" // For export macro
28#include "vtkInteractorStyle.h"
29#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
30
31VTK_ABI_NAMESPACE_BEGIN
32class VTKINTERACTIONSTYLE_EXPORT VTK_MARSHALAUTO vtkInteractorStyleJoystickCamera
33 : public vtkInteractorStyle
34{
35public:
38 void PrintSelf(ostream& os, vtkIndent indent) override;
39
41
45 void OnMouseMove() override;
46 void OnLeftButtonDown() override;
47 void OnLeftButtonUp() override;
48 void OnMiddleButtonDown() override;
49 void OnMiddleButtonUp() override;
50 void OnRightButtonDown() override;
51 void OnRightButtonUp() override;
52 void OnMouseWheelForward() override;
53 void OnMouseWheelBackward() override;
55
56 // These methods for the different interactions in different modes
57 // are overridden in subclasses to perform the correct motion. Since
58 // they are called by OnTimer, they do not have mouse coord parameters
59 // (use interactor's GetEventPosition and GetLastEventPosition)
60 void Rotate() override;
61 void Spin() override;
62 void Pan() override;
63 void Dolly() override;
64
65protected:
68
69 virtual void Dolly(double factor);
70
71private:
73 void operator=(const vtkInteractorStyleJoystickCamera&) = delete;
74};
75
76VTK_ABI_NAMESPACE_END
77#endif
a simple class to control print indentation
Definition vtkIndent.h:29
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...
#define VTK_MARSHALAUTO