Open3D (C++ API)  0.18.0+252c867
Public Member Functions | Protected Member Functions | Protected Attributes
open3d::visualization::rendering::RotationInteractorLogic Class Reference

#include <RotationInteractorLogic.h>

Inheritance diagram for open3d::visualization::rendering::RotationInteractorLogic:
open3d::visualization::rendering::MatrixInteractorLogic open3d::visualization::rendering::CameraInteractorLogic open3d::visualization::rendering::ModelInteractorLogic open3d::visualization::rendering::CameraSphereInteractorLogic

Public Member Functions

 RotationInteractorLogic (Camera *camera, double min_far_plane)
 
 ~RotationInteractorLogic ()
 
virtual void SetCenterOfRotation (const Eigen::Vector3f &center)
 
virtual void Pan (int dx, int dy)
 
virtual void StartMouseDrag ()
 
virtual void UpdateMouseDragUI ()
 
virtual void EndMouseDrag ()
 
- Public Member Functions inherited from open3d::visualization::rendering::MatrixInteractorLogic
virtual ~MatrixInteractorLogic ()
 
void SetViewSize (int width, int height)
 
int GetViewWidth () const
 
int GetViewHeight () const
 
const geometry::AxisAlignedBoundingBoxGetBoundingBox () const
 
virtual void SetBoundingBox (const geometry::AxisAlignedBoundingBox &bounds)
 
Eigen::Vector3f GetCenterOfRotation () const
 
void SetMouseDownInfo (const Camera::Transform &matrix, const Eigen::Vector3f &center_of_rotation)
 
const Camera::TransformGetMatrix () 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

Eigen::Vector3f CalcPanVectorWorld (int dx, int dy)
 
void UpdateCameraFarPlane ()
 
- Protected Member Functions inherited from open3d::visualization::rendering::MatrixInteractorLogic
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

double min_far_plane_
 
Cameracamera_
 
- Protected Attributes inherited from open3d::visualization::rendering::MatrixInteractorLogic
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_
 

Additional Inherited Members

- Public Types inherited from open3d::visualization::rendering::MatrixInteractorLogic
enum class  DragType { MOUSE , WHEEL , TWO_FINGER }
 

Constructor & Destructor Documentation

◆ RotationInteractorLogic()

open3d::visualization::rendering::RotationInteractorLogic::RotationInteractorLogic ( Camera camera,
double  min_far_plane 
)
explicit

◆ ~RotationInteractorLogic()

open3d::visualization::rendering::RotationInteractorLogic::~RotationInteractorLogic ( )

Member Function Documentation

◆ CalcPanVectorWorld()

Eigen::Vector3f open3d::visualization::rendering::RotationInteractorLogic::CalcPanVectorWorld ( int  dx,
int  dy 
)
protected

◆ EndMouseDrag()

void open3d::visualization::rendering::RotationInteractorLogic::EndMouseDrag ( )
virtual

◆ Pan()

void open3d::visualization::rendering::RotationInteractorLogic::Pan ( int  dx,
int  dy 
)
virtual

◆ SetCenterOfRotation()

void open3d::visualization::rendering::RotationInteractorLogic::SetCenterOfRotation ( const Eigen::Vector3f &  center)
virtual

◆ StartMouseDrag()

void open3d::visualization::rendering::RotationInteractorLogic::StartMouseDrag ( )
virtual

◆ UpdateCameraFarPlane()

void open3d::visualization::rendering::RotationInteractorLogic::UpdateCameraFarPlane ( )
protected

◆ UpdateMouseDragUI()

void open3d::visualization::rendering::RotationInteractorLogic::UpdateMouseDragUI ( )
virtual

Field Documentation

◆ camera_

Camera* open3d::visualization::rendering::RotationInteractorLogic::camera_
protected

◆ min_far_plane_

double open3d::visualization::rendering::RotationInteractorLogic::min_far_plane_
protected

The documentation for this class was generated from the following files: