VTK  9.6.20260327
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
24#include <memory> // for std::unique_ptr
25
26VTK_ABI_NAMESPACE_BEGIN
27class VTKINTERACTIONSTYLE_EXPORT vtkTrackballPan : public vtkCameraManipulator
28{
29public:
32 void PrintSelf(ostream& os, vtkIndent indent) override;
33
35
38 void StartInteraction() override{};
39 void EndInteraction() override{};
41
43
50
52
56 void OnMouseMove(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* iren) override;
57 void OnButtonDown(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* iren) override;
58 void OnButtonUp(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* iren) override;
60
61protected:
63 ~vtkTrackballPan() override;
64
65private:
66 vtkTrackballPan(const vtkTrackballPan&) = delete;
67 void operator=(const vtkTrackballPan&) = delete;
68
69 class vtkInternals;
70 std::unique_ptr<vtkInternals> Internals;
71};
72VTK_ABI_NAMESPACE_END
73#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
Overriden to detect if the 'x' or 'y' keys are pressed to constrain the panning to a particular axis.
void OnKeyDown(vtkRenderWindowInteractor *) override
Overriden 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.