![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <CameraSphereInteractorLogic.h>


Public Member Functions | |
| CameraSphereInteractorLogic (Camera *c, double min_far_plane) | |
| void | Rotate (int dx, int dy) override |
| void | StartMouseDrag () override |
Public Member Functions inherited from cloudViewer::visualization::rendering::CameraInteractorLogic | |
| CameraInteractorLogic (Camera *c, double min_far_plane) | |
| void | SetBoundingBox (const ccBBox &bounds) override |
| void | RotateZ (int dx, int dy) override |
| Rotates about the forward axis of the matrix. More... | |
| void | Dolly (float dy, DragType type) override |
| void | Dolly (float z_dist, Camera::Transform matrix_in) override |
| void | Pan (int dx, int dy) override |
| void | Zoom (int dy, DragType drag_type) |
| Sets camera field of view. More... | |
| void | RotateLocal (float angle_rad, const Eigen::Vector3f &axis) |
| void | MoveLocal (const Eigen::Vector3f &v) |
| void | RotateFly (int dx, int dy) |
| void | ResetMouseDrag () |
| void | UpdateMouseDragUI () override |
| void | EndMouseDrag () override |
Public Member Functions inherited from cloudViewer::visualization::rendering::RotationInteractorLogic | |
| RotationInteractorLogic (Camera *camera, double min_far_plane) | |
| ~RotationInteractorLogic () | |
| virtual void | SetCenterOfRotation (const Eigen::Vector3f ¢er) |
Public Member Functions inherited from cloudViewer::visualization::rendering::MatrixInteractorLogic | |
| virtual | ~MatrixInteractorLogic () |
| void | SetViewSize (int width, int height) |
| int | GetViewWidth () const |
| int | GetViewHeight () const |
| const ccBBox & | GetBoundingBox () const |
| Eigen::Vector3f | GetCenterOfRotation () const |
| void | SetMouseDownInfo (const Camera::Transform &matrix, const Eigen::Vector3f ¢er_of_rotation) |
| const Camera::Transform & | GetMatrix () const |
| virtual void | RotateWorld (int dx, int dy, const Eigen::Vector3f &x_axis, const Eigen::Vector3f &y_axis) |
| virtual void | RotateZWorld (int dx, int dy, const Eigen::Vector3f &forward) |
Definition at line 16 of file CameraSphereInteractorLogic.h.
| cloudViewer::visualization::rendering::CameraSphereInteractorLogic::CameraSphereInteractorLogic | ( | Camera * | c, |
| double | min_far_plane | ||
| ) |
Definition at line 14 of file CameraSphereInteractorLogic.cpp.
|
overridevirtual |
Rotates about an axis defined by dx * matrixLeft, dy * matrixUp. dy is assumed to be in window-style coordinates, that is, going up produces a negative dy. The axis goes through the center of rotation.
Reimplemented from cloudViewer::visualization::rendering::CameraInteractorLogic.
Definition at line 18 of file CameraSphereInteractorLogic.cpp.
References cloudViewer::visualization::rendering::RotationInteractorLogic::camera_, cloudViewer::visualization::rendering::MatrixInteractorLogic::center_of_rotation_, dist(), M_PI, cloudViewer::visualization::rendering::MatrixInteractorLogic::SetMatrix(), cloudViewer::visualization::rendering::Camera::SetModelMatrix(), cloudViewer::visualization::rendering::MatrixInteractorLogic::view_height_, and cloudViewer::visualization::rendering::MatrixInteractorLogic::view_width_.
|
overridevirtual |
Reimplemented from cloudViewer::visualization::rendering::CameraInteractorLogic.
Definition at line 42 of file CameraSphereInteractorLogic.cpp.
References abs(), cloudViewer::visualization::rendering::RotationInteractorLogic::camera_, cloudViewer::visualization::rendering::MatrixInteractorLogic::center_of_rotation_, cloudViewer::visualization::rendering::Camera::GetModelMatrix(), M_PI, max(), min(), and cloudViewer::visualization::rendering::CameraInteractorLogic::StartMouseDrag().