VTK  9.4.20251007
vtkInteractorStyleTrackballActor.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
28#ifndef vtkInteractorStyleTrackballActor_h
29#define vtkInteractorStyleTrackballActor_h
30
31#include "vtkInteractionStyleModule.h" // For export macro
32#include "vtkInteractorStyle.h"
33#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
34
35VTK_ABI_NAMESPACE_BEGIN
36class vtkCellPicker;
37
38class VTKINTERACTIONSTYLE_EXPORT VTK_MARSHALAUTO vtkInteractorStyleTrackballActor
39 : public vtkInteractorStyle
40{
41public:
44 void PrintSelf(ostream& os, vtkIndent indent) override;
45
47
51 void OnMouseMove() override;
52 void OnLeftButtonDown() override;
53 void OnLeftButtonUp() override;
54 void OnMiddleButtonDown() override;
55 void OnMiddleButtonUp() override;
56 void OnRightButtonDown() override;
57 void OnRightButtonUp() override;
59
60 // These methods for the different interactions in different modes
61 // are overridden in subclasses to perform the correct motion. Since
62 // they might be called from OnTimer, they do not have mouse coord parameters
63 // (use interactor's GetEventPosition and GetLastEventPosition)
64 void Rotate() override;
65 void Spin() override;
66 void Pan() override;
67 void Dolly() override;
68 void UniformScale() override;
69
70protected:
73
74 void FindPickedActor(int x, int y);
75
77 vtkProp3D* prop3D, double* boxCenter, int NumRotation, double** rotate, double* scale);
78
80
83
84private:
86 void operator=(const vtkInteractorStyleTrackballActor&) = delete;
87};
88
89VTK_ABI_NAMESPACE_END
90#endif
ray-cast cell picker for all kinds of Prop3Ds
a simple class to control print indentation
Definition vtkIndent.h:29
void OnMiddleButtonUp() 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 FindPickedActor(int x, int y)
void OnRightButtonDown() override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void OnRightButtonUp() 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.
void OnLeftButtonUp() 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...
static vtkInteractorStyleTrackballActor * New()
void Prop3DTransform(vtkProp3D *prop3D, double *boxCenter, int NumRotation, double **rotate, double *scale)
void OnMouseMove() 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.
represents an 3D object for placement in a rendered scene
Definition vtkProp3D.h:40
#define VTK_MARSHALAUTO