ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
vtkPVTrackballZoom.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include "qPCL.h" // needed for export macro
11 #include "vtkCameraManipulator.h"
12 
14 public:
17  void PrintSelf(ostream& os, vtkIndent indent) override;
18 
20 
24  void OnMouseMove(int x,
25  int y,
26  vtkRenderer* ren,
27  vtkRenderWindowInteractor* rwi) override;
28  void OnButtonDown(int x,
29  int y,
30  vtkRenderer* ren,
31  vtkRenderWindowInteractor* rwi) override;
32  void OnButtonUp(int x,
33  int y,
34  vtkRenderer* ren,
35  vtkRenderWindowInteractor* rwi) override;
37 
42  vtkSetMacro(UseDollyForPerspectiveProjection, bool);
43  vtkGetMacro(UseDollyForPerspectiveProjection, bool);
44  vtkBooleanMacro(UseDollyForPerspectiveProjection, bool);
45 
46 protected:
48  ~vtkPVTrackballZoom() override;
49 
51  double ZoomScale;
52 
54  void operator=(const vtkPVTrackballZoom&) = delete;
55 };
virtual void OnButtonUp(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *iren)
virtual void OnMouseMove(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *iren)
virtual void OnButtonDown(int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *iren)
void PrintSelf(ostream &os, vtkIndent indent) override
vtkPVTrackballZoom(const vtkPVTrackballZoom &)=delete
vtkSetMacro(UseDollyForPerspectiveProjection, bool)
static vtkPVTrackballZoom * New()
vtkBooleanMacro(UseDollyForPerspectiveProjection, bool)
vtkTypeMacro(vtkPVTrackballZoom, vtkCameraManipulator)
vtkGetMacro(UseDollyForPerspectiveProjection, bool)
void operator=(const vtkPVTrackballZoom &)=delete
normal_z y
normal_z x
#define QPCL_ENGINE_LIB_API
Definition: qPCL.h:15