ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
CameraSphereInteractorLogic.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 
11 
12 namespace cloudViewer {
13 namespace visualization {
14 namespace rendering {
15 
18 
19 public:
20  CameraSphereInteractorLogic(Camera* c, double min_far_plane);
21 
22  void Rotate(int dx, int dy) override;
23 
24  void StartMouseDrag() override;
25 
26 private:
27  float r_at_mousedown_;
28  float theta_at_mousedown_;
29  float phi_at_mousedown_;
30 };
31 
32 } // namespace rendering
33 } // namespace visualization
34 } // namespace cloudViewer
Generic file read and write utility for python interface.