Open3D (C++ API)
|
#include <CameraInteractorLogic.h>
Public Member Functions | |
CameraInteractorLogic (Camera *c, double min_far_plane) | |
void | SetBoundingBox (const geometry::AxisAlignedBoundingBox &bounds) override |
void | Rotate (int dx, int dy) override |
void | RotateZ (int dx, int dy) override |
Rotates about the forward axis of the matrix. More... | |
void | Dolly (int 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 | StartMouseDrag () override |
void | ResetMouseDrag () |
void | UpdateMouseDragUI () override |
void | EndMouseDrag () override |
Public Member Functions inherited from open3d::visualization::RotationInteractorLogic | |
RotationInteractorLogic (visualization::Camera *camera, double min_far_plane) | |
~RotationInteractorLogic () | |
virtual void | SetCenterOfRotation (const Eigen::Vector3f ¢er) |
Public Member Functions inherited from open3d::visualization::MatrixInteractorLogic | |
virtual | ~MatrixInteractorLogic () |
void | SetViewSize (int width, int height) |
const geometry::AxisAlignedBoundingBox & | GetBoundingBox () 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) |
open3d::visualization::CameraInteractorLogic::CameraInteractorLogic | ( | Camera * | c, |
double | min_far_plane | ||
) |
|
overridevirtual |
Moves the matrix along the forward axis. (This is one type of zoom.)
Reimplemented from open3d::visualization::MatrixInteractorLogic.
|
overridevirtual |
Reimplemented from open3d::visualization::MatrixInteractorLogic.
|
overridevirtual |
Reimplemented from open3d::visualization::RotationInteractorLogic.
void open3d::visualization::CameraInteractorLogic::MoveLocal | ( | const Eigen::Vector3f & | v | ) |
|
overridevirtual |
Reimplemented from open3d::visualization::RotationInteractorLogic.
void open3d::visualization::CameraInteractorLogic::ResetMouseDrag | ( | ) |
|
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 open3d::visualization::MatrixInteractorLogic.
void open3d::visualization::CameraInteractorLogic::RotateFly | ( | int | dx, |
int | dy | ||
) |
void open3d::visualization::CameraInteractorLogic::RotateLocal | ( | float | angle_rad, |
const Eigen::Vector3f & | axis | ||
) |
|
overridevirtual |
Rotates about the forward axis of the matrix.
Reimplemented from open3d::visualization::MatrixInteractorLogic.
|
overridevirtual |
Reimplemented from open3d::visualization::MatrixInteractorLogic.
|
overridevirtual |
Reimplemented from open3d::visualization::RotationInteractorLogic.
|
overridevirtual |
Reimplemented from open3d::visualization::RotationInteractorLogic.
void open3d::visualization::CameraInteractorLogic::Zoom | ( | int | dy, |
DragType | drag_type | ||
) |
Sets camera field of view.