VTK: Interaction/Style/vtkInteractorStyleJoystickCamera.h Source File

| VTK 9.3.1

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
27 #ifndef vtkInteractorStyleJoystickCamera_h
28 #define vtkInteractorStyleJoystickCamera_h
29
30 #include "vtkInteractionStyleModule.h" // For export macro
31 #include "vtkInteractorStyle.h"
32
33 VTK_ABI_NAMESPACE_BEGIN
34 class VTKINTERACTIONSTYLE_EXPORT vtkInteractorStyleJoystickCamera : public vtkInteractorStyle
35 {
36 public:
37 static vtkInteractorStyleJoystickCamera* New();
38 vtkTypeMacro(vtkInteractorStyleJoystickCamera, vtkInteractorStyle);
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
42
46 void OnMouseMove() override;
47 void OnLeftButtonDown() override;
48 void OnLeftButtonUp() override;
49 void OnMiddleButtonDown() override;
50 void OnMiddleButtonUp() override;
51 void OnRightButtonDown() override;
52 void OnRightButtonUp() override;
53 void OnMouseWheelForward() override;
54 void OnMouseWheelBackward() override;
56
57 // These methods for the different interactions in different modes
58 // are overridden in subclasses to perform the correct motion. Since
59 // they are called by OnTimer, they do not have mouse coord parameters
60 // (use interactor's GetEventPosition and GetLastEventPosition)
61 void Rotate() override;
62 void Spin() override;
63 void Pan() override;
64 void Dolly() override;
65
66 protected:
67 vtkInteractorStyleJoystickCamera();
68 ~vtkInteractorStyleJoystickCamera() override;
69
70 virtual void Dolly(double factor);
71
72 private:
73 vtkInteractorStyleJoystickCamera(const vtkInteractorStyleJoystickCamera&) = delete;
74 void operator=(const vtkInteractorStyleJoystickCamera&) = delete;
75 };
76
77 VTK_ABI_NAMESPACE_END
78 #endif
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInteractorStyleJoystickCamera
interactive manipulation of the camera
Definition: vtkInteractorStyleJoystickCamera.h:35
vtkInteractorStyleJoystickCamera::Dolly
virtual void Dolly(double factor)
vtkInteractorStyleJoystickCamera::OnMouseMove
void OnMouseMove() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
vtkInteractorStyleJoystickCamera::OnMouseWheelBackward
void OnMouseWheelBackward() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
vtkInteractorStyleJoystickCamera::OnRightButtonDown
void OnRightButtonDown() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
vtkInteractorStyleJoystickCamera::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInteractorStyleJoystickCamera::New
static vtkInteractorStyleJoystickCamera * New()
vtkInteractorStyleJoystickCamera::OnLeftButtonUp
void OnLeftButtonUp() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
vtkInteractorStyleJoystickCamera::Pan
void Pan() override
vtkInteractorStyleJoystickCamera::OnMouseWheelForward
void OnMouseWheelForward() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
vtkInteractorStyleJoystickCamera::OnLeftButtonDown
void OnLeftButtonDown() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
vtkInteractorStyleJoystickCamera::~vtkInteractorStyleJoystickCamera
~vtkInteractorStyleJoystickCamera() override
vtkInteractorStyleJoystickCamera::Spin
void Spin() override
vtkInteractorStyleJoystickCamera::Dolly
void Dolly() override
vtkInteractorStyleJoystickCamera::vtkInteractorStyleJoystickCamera
vtkInteractorStyleJoystickCamera()
vtkInteractorStyleJoystickCamera::OnRightButtonUp
void OnRightButtonUp() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
vtkInteractorStyleJoystickCamera::OnMiddleButtonUp
void OnMiddleButtonUp() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
vtkInteractorStyleJoystickCamera::OnMiddleButtonDown
void OnMiddleButtonDown() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
vtkInteractorStyleJoystickCamera::Rotate
void Rotate() override
These methods for the different interactions in different modes are overridden in subclasses to perfo...
vtkInteractorStyle
provide event-driven interface to the rendering window (defines trackball mode)
Definition: vtkInteractorStyle.h:148
vtkInteractorStyle.h