Open3D (C++ API)
0.18.0+252c867
|
#include <MatrixInteractorLogic.h>
Public Types | |
enum class | DragType { MOUSE , WHEEL , TWO_FINGER } |
Public Member Functions | |
virtual | ~MatrixInteractorLogic () |
void | SetViewSize (int width, int height) |
int | GetViewWidth () const |
int | GetViewHeight () const |
const geometry::AxisAlignedBoundingBox & | GetBoundingBox () const |
virtual void | SetBoundingBox (const geometry::AxisAlignedBoundingBox &bounds) |
Eigen::Vector3f | GetCenterOfRotation () const |
void | SetMouseDownInfo (const Camera::Transform &matrix, const Eigen::Vector3f ¢er_of_rotation) |
const Camera::Transform & | GetMatrix () const |
virtual void | Rotate (int dx, int dy) |
virtual void | RotateWorld (int dx, int dy, const Eigen::Vector3f &x_axis, const Eigen::Vector3f &y_axis) |
virtual void | RotateZ (int dx, int dy) |
Rotates about the forward axis of the matrix. More... | |
virtual void | RotateZWorld (int dx, int dy, const Eigen::Vector3f &forward) |
virtual void | Dolly (float dy, DragType drag_type) |
virtual void | Dolly (float z_dist, Camera::Transform matrix) |
Protected Member Functions | |
void | SetMatrix (const Camera::Transform &matrix) |
float | CalcRotateRadians (int dx, int dy) |
float | CalcRotateZRadians (int dx, int dy) |
float | CalcDollyDist (float dy, DragType drag_type, const Camera::Transform &matrix) |
Protected Attributes | |
int | view_width_ = 1 |
int | view_height_ = 1 |
double | model_size_ = 20.0 |
geometry::AxisAlignedBoundingBox | model_bounds_ |
Eigen::Vector3f | center_of_rotation_ |
Camera::Transform | matrix_at_mouse_down_ |
Eigen::Vector3f | center_of_rotation_at_mouse_down_ |
Base class for rotating and dollying (translating along forward axis). Could be used for a camera, or also something else, like a the direction of a directional light.
|
virtual |
|
protected |
|
protected |
|
protected |
|
virtual |
Moves the matrix along the forward axis. (This is one type of zoom.)
Reimplemented in open3d::visualization::rendering::CameraInteractorLogic, and open3d::visualization::rendering::ModelInteractorLogic.
|
virtual |
Reimplemented in open3d::visualization::rendering::CameraInteractorLogic.
const geometry::AxisAlignedBoundingBox & open3d::visualization::rendering::MatrixInteractorLogic::GetBoundingBox | ( | ) | const |
Eigen::Vector3f open3d::visualization::rendering::MatrixInteractorLogic::GetCenterOfRotation | ( | ) | const |
const Camera::Transform & open3d::visualization::rendering::MatrixInteractorLogic::GetMatrix | ( | ) | const |
int open3d::visualization::rendering::MatrixInteractorLogic::GetViewHeight | ( | ) | const |
int open3d::visualization::rendering::MatrixInteractorLogic::GetViewWidth | ( | ) | const |
|
virtual |
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 in open3d::visualization::rendering::ModelInteractorLogic, open3d::visualization::rendering::LightDirectionInteractorLogic, open3d::visualization::rendering::IBLRotationInteractorLogic, open3d::visualization::rendering::CameraSphereInteractorLogic, and open3d::visualization::rendering::CameraInteractorLogic.
|
virtual |
Same as Rotate() except that the dx-axis and the dy-axis are specified
|
virtual |
Rotates about the forward axis of the matrix.
Reimplemented in open3d::visualization::rendering::ModelInteractorLogic, open3d::visualization::rendering::IBLRotationInteractorLogic, and open3d::visualization::rendering::CameraInteractorLogic.
|
virtual |
|
virtual |
|
protected |
void open3d::visualization::rendering::MatrixInteractorLogic::SetMouseDownInfo | ( | const Camera::Transform & | matrix, |
const Eigen::Vector3f & | center_of_rotation | ||
) |
void open3d::visualization::rendering::MatrixInteractorLogic::SetViewSize | ( | int | width, |
int | height | ||
) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |