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

#include <RotationInteractorLogic.h>

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

Public Member Functions

 RotationInteractorLogic (visualization::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::MatrixInteractorLogic
virtual ~MatrixInteractorLogic ()
 
void SetViewSize (int width, int height)
 
const geometry::AxisAlignedBoundingBoxGetBoundingBox () const
 
virtual void SetBoundingBox (const geometry::AxisAlignedBoundingBox &bounds)
 
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 (int 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::MatrixInteractorLogic
void SetMatrix (const Camera::Transform &matrix)
 
double CalcRotateRadians (int dx, int dy)
 
double CalcRotateZRadians (int dx, int dy)
 
float CalcDollyDist (int dy, DragType drag_type)
 

Protected Attributes

double min_far_plane_
 
visualization::Cameracamera_
 
- Protected Attributes inherited from open3d::visualization::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::MatrixInteractorLogic
enum  DragType { DragType::MOUSE, DragType::WHEEL, DragType::TWO_FINGER }
 

Constructor & Destructor Documentation

◆ RotationInteractorLogic()

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

◆ ~RotationInteractorLogic()

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

Member Function Documentation

◆ CalcPanVectorWorld()

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

◆ EndMouseDrag()

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

◆ Pan()

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

◆ SetCenterOfRotation()

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

◆ StartMouseDrag()

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

◆ UpdateCameraFarPlane()

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

◆ UpdateMouseDragUI()

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

Field Documentation

◆ camera_

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

◆ min_far_plane_

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

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