vtkPVTrackballZoom.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVTrackballZoom.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
30 #ifndef vtkPVTrackballZoom_h
31 #define vtkPVTrackballZoom_h
32 
33 #include "vtkCameraManipulator.h"
34 #include "vtkPVVTKExtensionsInteractionStyleModule.h" // needed for export macro
35 
37 {
38 public:
39  static vtkPVTrackballZoom* New();
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
44 
48  void OnMouseMove(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi) override;
49  void OnButtonDown(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi) override;
50  void OnButtonUp(int x, int y, vtkRenderer* ren, vtkRenderWindowInteractor* rwi) override;
52 
57  vtkSetMacro(UseDollyForPerspectiveProjection, bool);
58  vtkGetMacro(UseDollyForPerspectiveProjection, bool);
59  vtkBooleanMacro(UseDollyForPerspectiveProjection, bool);
60 
61 protected:
63  ~vtkPVTrackballZoom() override;
64 
66  double ZoomScale;
67 
68  vtkPVTrackballZoom(const vtkPVTrackballZoom&) = delete;
69  void operator=(const vtkPVTrackballZoom&) = delete;
70 };
71 
72 #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)