14 namespace visualization {
34 const Eigen::Vector3f& center_of_rotation);
42 virtual void Rotate(
int dx,
int dy);
48 const Eigen::Vector3f& x_axis,
49 const Eigen::Vector3f& y_axis);
52 virtual void RotateZ(
int dx,
int dy);
54 virtual void RotateZWorld(
int dx,
int dy,
const Eigen::Vector3f& forward);
A bounding box that is aligned along the coordinate axes and defined by the min_bound and max_bound.
Definition: BoundingVolume.h:160
Eigen::Transform< float, 3, Eigen::Affine > Transform
Definition: Camera.h:25
Definition: MatrixInteractorLogic.h:20
virtual void RotateZ(int dx, int dy)
Rotates about the forward axis of the matrix.
Definition: MatrixInteractorLogic.cpp:135
double model_size_
Definition: MatrixInteractorLogic.h:69
const Camera::Transform & GetMatrix() const
Definition: MatrixInteractorLogic.cpp:54
virtual void RotateWorld(int dx, int dy, const Eigen::Vector3f &x_axis, const Eigen::Vector3f &y_axis)
Definition: MatrixInteractorLogic.cpp:103
float CalcRotateRadians(int dx, int dy)
Definition: MatrixInteractorLogic.cpp:130
Eigen::Vector3f center_of_rotation_at_mouse_down_
Definition: MatrixInteractorLogic.h:74
virtual void RotateZWorld(int dx, int dy, const Eigen::Vector3f &forward)
Definition: MatrixInteractorLogic.cpp:146
Camera::Transform matrix_at_mouse_down_
Definition: MatrixInteractorLogic.h:73
virtual void SetBoundingBox(const geometry::AxisAlignedBoundingBox &bounds)
Definition: MatrixInteractorLogic.cpp:30
const geometry::AxisAlignedBoundingBox & GetBoundingBox() const
Definition: MatrixInteractorLogic.cpp:25
float CalcDollyDist(float dy, DragType drag_type, const Camera::Transform &matrix)
Definition: MatrixInteractorLogic.cpp:191
int view_width_
Definition: MatrixInteractorLogic.h:67
geometry::AxisAlignedBoundingBox model_bounds_
Definition: MatrixInteractorLogic.h:70
virtual void Rotate(int dx, int dy)
Definition: MatrixInteractorLogic.cpp:58
DragType
Definition: MatrixInteractorLogic.h:56
int GetViewWidth() const
Definition: MatrixInteractorLogic.cpp:21
int view_height_
Definition: MatrixInteractorLogic.h:68
Eigen::Vector3f GetCenterOfRotation() const
Definition: MatrixInteractorLogic.cpp:36
Eigen::Vector3f center_of_rotation_
Definition: MatrixInteractorLogic.h:71
float CalcRotateZRadians(int dx, int dy)
Definition: MatrixInteractorLogic.cpp:159
int GetViewHeight() const
Definition: MatrixInteractorLogic.cpp:23
void SetMouseDownInfo(const Camera::Transform &matrix, const Eigen::Vector3f ¢er_of_rotation)
Definition: MatrixInteractorLogic.cpp:40
virtual ~MatrixInteractorLogic()
Definition: MatrixInteractorLogic.cpp:14
void SetMatrix(const Camera::Transform &matrix)
Definition: MatrixInteractorLogic.cpp:50
void SetViewSize(int width, int height)
Definition: MatrixInteractorLogic.cpp:16
virtual void Dolly(float dy, DragType drag_type)
Definition: MatrixInteractorLogic.cpp:165
Definition: PinholeCameraIntrinsic.cpp:16