VTK  9.6.20260326
vtkTrackballZoom.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2// SPDX-License-Identifier: BSD-3-Clause
20
21#ifndef vtkTrackballZoom_h
22#define vtkTrackballZoom_h
23
25
26#include "vtkInteractionStyleModule.h" // needed for export macro
27
28VTK_ABI_NAMESPACE_BEGIN
29class VTKINTERACTIONSTYLE_EXPORT vtkTrackballZoom : public vtkCameraManipulator
30{
31public:
34 void PrintSelf(ostream& os, vtkIndent indent) override;
35
37
40 void StartInteraction() override{};
41 void EndInteraction() override{};
42 void OnKeyDown(vtkRenderWindowInteractor* vtkNotUsed(rwi)) override {}
43 void OnKeyUp(vtkRenderWindowInteractor* vtkNotUsed(rwi)) override {}
44 void OnButtonUp(int, int, vtkRenderer*, vtkRenderWindowInteractor*) override {}
46
48
52 void OnMouseMove(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi) override;
53 void OnButtonDown(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi) override;
55
60 vtkSetMacro(UseDollyForPerspectiveProjection, bool);
61 vtkGetMacro(UseDollyForPerspectiveProjection, bool);
62 vtkBooleanMacro(UseDollyForPerspectiveProjection, bool);
63
64protected:
67
68 // Subclass can access it
69 double ZoomScale = 0.0;
70
71private:
72 vtkTrackballZoom(const vtkTrackballZoom&) = delete;
73 void operator=(const vtkTrackballZoom&) = delete;
74
75 bool UseDollyForPerspectiveProjection = true;
76};
77VTK_ABI_NAMESPACE_END
78#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
static vtkTrackballZoom * New()
void OnButtonUp(int, int, vtkRenderer *, vtkRenderWindowInteractor *) override
Unimplemented methods from vtkCameraManipulator.
void OnButtonDown(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *rwi) override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
~vtkTrackballZoom() override
void OnKeyDown(vtkRenderWindowInteractor *rwi) override
Unimplemented methods from vtkCameraManipulator.
void OnMouseMove(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *rwi) override
Event bindings controlling the effects of pressing mouse buttons or moving the mouse.
void OnKeyUp(vtkRenderWindowInteractor *rwi) override
Unimplemented methods from vtkCameraManipulator.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void EndInteraction() override
Unimplemented methods from vtkCameraManipulator.
void StartInteraction() override
Unimplemented methods from vtkCameraManipulator.