vtkPVTrackballZoom.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
18 #ifndef vtkPVTrackballZoom_h
19 #define vtkPVTrackballZoom_h
20 
21 #include "vtkCameraManipulator.h"
22 #include "vtkPVVTKExtensionsInteractionStyleModule.h" // needed for export macro
23 
25 {
26 public:
27  static vtkPVTrackballZoom* New();
29  void PrintSelf(ostream& os, vtkIndent indent) override;
30 
32 
36  void OnMouseMove(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi) override;
37  void OnButtonDown(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi) override;
38  void OnButtonUp(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi) override;
40 
45  vtkSetMacro(UseDollyForPerspectiveProjection, bool);
46  vtkGetMacro(UseDollyForPerspectiveProjection, bool);
47  vtkBooleanMacro(UseDollyForPerspectiveProjection, bool);
48 
49 protected:
51  ~vtkPVTrackballZoom() override;
52 
54  double ZoomScale;
55 
56  vtkPVTrackballZoom(const vtkPVTrackballZoom&) = delete;
57  void operator=(const vtkPVTrackballZoom&) = delete;
58 };
59 
60 #endif
Abstraction of style away from button.
void PrintSelf(ostream &os, vtkIndent indent) override
#define VTKPVVTKEXTENSIONSINTERACTIONSTYLE_EXPORT
static vtkCameraManipulator * New()
virtual void OnMouseMove(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *iren)
virtual void OnButtonUp(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *iren)
Zooms camera with vertical mouse movement.
virtual void OnButtonDown(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *iren)