Open3D (C++ API)
Public Types | Public Member Functions
open3d::visualization::Camera Class Referenceabstract

#include <Camera.h>

Inheritance diagram for open3d::visualization::Camera:
open3d::visualization::FilamentCamera

Public Types

enum  FovType { FovType::Vertical, FovType::Horizontal }
 
enum  Projection { Projection::Perspective, Projection::Ortho }
 
using Transform = Eigen::Transform< float, 3, Eigen::Affine >
 

Public Member Functions

virtual ~Camera ()=default
 
virtual void SetProjection (double fov, double aspect, double near, double far, FovType fov_type)=0
 
virtual void SetProjection (Projection projection, double left, double right, double bottom, double top, double near, double far)=0
 
virtual double GetNear () const =0
 
virtual double GetFar () const =0
 
virtual double GetFieldOfView () const =0
 only valid if fov was passed to SetProjection() More...
 
virtual FovType GetFieldOfViewType () const =0
 only valid if fov was passed to SetProjection() More...
 
virtual void SetModelMatrix (const Transform &view)=0
 
virtual void SetModelMatrix (const Eigen::Vector3f &forward, const Eigen::Vector3f &left, const Eigen::Vector3f &up)=0
 
virtual void LookAt (const Eigen::Vector3f &center, const Eigen::Vector3f &eye, const Eigen::Vector3f &up)=0
 
virtual Eigen::Vector3f GetPosition () const =0
 
virtual Eigen::Vector3f GetForwardVector () const =0
 
virtual Eigen::Vector3f GetLeftVector () const =0
 
virtual Eigen::Vector3f GetUpVector () const =0
 
virtual Transform GetModelMatrix () const =0
 
virtual Transform GetViewMatrix () const =0
 
virtual Transform GetProjectionMatrix () const =0
 

Member Typedef Documentation

◆ Transform

using open3d::visualization::Camera::Transform = Eigen::Transform<float, 3, Eigen::Affine>

Member Enumeration Documentation

◆ FovType

Enumerator
Vertical 
Horizontal 

◆ Projection

Enumerator
Perspective 
Ortho 

Constructor & Destructor Documentation

◆ ~Camera()

virtual open3d::visualization::Camera::~Camera ( )
virtualdefault

Member Function Documentation

◆ GetFar()

virtual double open3d::visualization::Camera::GetFar ( ) const
pure virtual

◆ GetFieldOfView()

virtual double open3d::visualization::Camera::GetFieldOfView ( ) const
pure virtual

only valid if fov was passed to SetProjection()

Implemented in open3d::visualization::FilamentCamera.

◆ GetFieldOfViewType()

virtual FovType open3d::visualization::Camera::GetFieldOfViewType ( ) const
pure virtual

only valid if fov was passed to SetProjection()

Implemented in open3d::visualization::FilamentCamera.

◆ GetForwardVector()

virtual Eigen::Vector3f open3d::visualization::Camera::GetForwardVector ( ) const
pure virtual

◆ GetLeftVector()

virtual Eigen::Vector3f open3d::visualization::Camera::GetLeftVector ( ) const
pure virtual

◆ GetModelMatrix()

virtual Transform open3d::visualization::Camera::GetModelMatrix ( ) const
pure virtual

◆ GetNear()

virtual double open3d::visualization::Camera::GetNear ( ) const
pure virtual

◆ GetPosition()

virtual Eigen::Vector3f open3d::visualization::Camera::GetPosition ( ) const
pure virtual

◆ GetProjectionMatrix()

virtual Transform open3d::visualization::Camera::GetProjectionMatrix ( ) const
pure virtual

◆ GetUpVector()

virtual Eigen::Vector3f open3d::visualization::Camera::GetUpVector ( ) const
pure virtual

◆ GetViewMatrix()

virtual Transform open3d::visualization::Camera::GetViewMatrix ( ) const
pure virtual

◆ LookAt()

virtual void open3d::visualization::Camera::LookAt ( const Eigen::Vector3f &  center,
const Eigen::Vector3f &  eye,
const Eigen::Vector3f &  up 
)
pure virtual

◆ SetModelMatrix() [1/2]

virtual void open3d::visualization::Camera::SetModelMatrix ( const Transform view)
pure virtual

◆ SetModelMatrix() [2/2]

virtual void open3d::visualization::Camera::SetModelMatrix ( const Eigen::Vector3f &  forward,
const Eigen::Vector3f &  left,
const Eigen::Vector3f &  up 
)
pure virtual

◆ SetProjection() [1/2]

virtual void open3d::visualization::Camera::SetProjection ( double  fov,
double  aspect,
double  near,
double  far,
FovType  fov_type 
)
pure virtual

◆ SetProjection() [2/2]

virtual void open3d::visualization::Camera::SetProjection ( Projection  projection,
double  left,
double  right,
double  bottom,
double  top,
double  near,
double  far 
)
pure virtual

Sets the projection matrix from a frustum defined by six planes.

Parameters
projectiontype of Projection to use.
leftdistance in world units from the camera to the left plane, at the near plane.
rightdistance in world units from the camera to the right plane, at the near plane.
bottomdistance in world units from the camera to the bottom plane, at the near plane.
topdistance in world units from the camera to the top plane, at the near plane.
neardistance in world units from the camera to the near plane. The near plane's
fardistance in world units from the camera to the far plane. The far plane's

Implemented in open3d::visualization::FilamentCamera.


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