VTK  9.7.20261007
vtkTrackballPan.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2// SPDX-License-Identifier: BSD-3-Clause
16
17#ifndef vtkTrackballPan_h
18#define vtkTrackballPan_h
19
21
22#include "vtkInteractionStyleModule.h" // needed for export macro
23#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
24
25#include <memory> // for std::unique_ptr
26
27VTK_ABI_NAMESPACE_BEGIN
28class VTKINTERACTIONSTYLE_EXPORT VTK_MARSHALAUTO vtkTrackballPan : public vtkCameraManipulator
29{
30public:
33 void PrintSelf(ostream& os, vtkIndent indent) override;
34
36
39 void StartInteraction() override {};
40 void EndInteraction() override {};
42
44
51
53
57 void OnMouseMove(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* iren) override;
58 void OnButtonDown(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* iren) override;
59 void OnButtonUp(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* iren) override;
61
62protected:
64 ~vtkTrackballPan() override;
65
66private:
67 vtkTrackballPan(const vtkTrackballPan&) = delete;
68 void operator=(const vtkTrackballPan&) = delete;
69
70 class vtkInternals;
71 std::unique_ptr<vtkInternals> Internals;
72};
73VTK_ABI_NAMESPACE_END
74#endif
a simple class to control print indentation
Definition vtkIndent.h:108
platform-independent render window interaction including picking and frame rate control.
abstract specification for renderers
void OnButtonUp(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *iren) override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
static vtkTrackballPan * New()
void EndInteraction() override
Unimplemented methods from vtkCameraManipulator.
void StartInteraction() override
Unimplemented methods from vtkCameraManipulator.
void OnButtonDown(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *iren) override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void OnKeyUp(vtkRenderWindowInteractor *) override
Overridden to detect if the 'x' or 'y' keys are pressed to constrain the panning to a particular axis...
void OnKeyDown(vtkRenderWindowInteractor *) override
Overridden to detect if the 'x' or 'y' keys are pressed to constrain the panning to a particular axis...
~vtkTrackballPan() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void OnMouseMove(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *iren) override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
#define VTK_MARSHALAUTO