Open3D (C++ API)  0.17.0
CameraSphereInteractorLogic.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - Open3D: www.open3d.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2023 www.open3d.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
11 
12 namespace open3d {
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 open3d
Definition: CameraInteractorLogic.h:16
CameraInteractorLogic(Camera *c, double min_far_plane)
Definition: CameraInteractorLogic.cpp:14
Definition: CameraSphereInteractorLogic.h:16
CameraSphereInteractorLogic(Camera *c, double min_far_plane)
Definition: CameraSphereInteractorLogic.cpp:14
void StartMouseDrag() override
Definition: CameraSphereInteractorLogic.cpp:42
void Rotate(int dx, int dy) override
Definition: CameraSphereInteractorLogic.cpp:18
Definition: RotationInteractorLogic.h:16
Definition: PinholeCameraIntrinsic.cpp:16