Open3D (C++ API)
Public Member Functions
open3d::visualization::FilamentCamera Class Reference

#include <FilamentCamera.h>

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

Public Member Functions

 FilamentCamera (filament::Engine &engine)
 
 ~FilamentCamera ()
 
void SetProjection (double fov, double aspect, double near, double far, FovType fov_type) override
 
void SetProjection (Projection projection, double left, double right, double bottom, double top, double near, double far) override
 
double GetNear () const override
 
double GetFar () const override
 
double GetFieldOfView () const override
 only valid if fov was passed to SetProjection() More...
 
FovType GetFieldOfViewType () const override
 only valid if fov was passed to SetProjection() More...
 
void SetModelMatrix (const Transform &view) override
 
void SetModelMatrix (const Eigen::Vector3f &forward, const Eigen::Vector3f &left, const Eigen::Vector3f &up) override
 
void LookAt (const Eigen::Vector3f &center, const Eigen::Vector3f &eye, const Eigen::Vector3f &up) override
 
Eigen::Vector3f GetPosition () const override
 
Eigen::Vector3f GetForwardVector () const override
 
Eigen::Vector3f GetLeftVector () const override
 
Eigen::Vector3f GetUpVector () const override
 
Transform GetModelMatrix () const override
 
Transform GetViewMatrix () const override
 
Transform GetProjectionMatrix () const override
 
filament::CameraGetNativeCamera () const
 
- Public Member Functions inherited from open3d::visualization::Camera
virtual ~Camera ()=default
 

Additional Inherited Members

- Public Types inherited from open3d::visualization::Camera
enum  FovType { FovType::Vertical, FovType::Horizontal }
 
enum  Projection { Projection::Perspective, Projection::Ortho }
 
using Transform = Eigen::Transform< float, 3, Eigen::Affine >
 

Constructor & Destructor Documentation

◆ FilamentCamera()

open3d::visualization::FilamentCamera::FilamentCamera ( filament::Engine &  engine)
explicit

◆ ~FilamentCamera()

open3d::visualization::FilamentCamera::~FilamentCamera ( )

Member Function Documentation

◆ GetFar()

double open3d::visualization::FilamentCamera::GetFar ( ) const
overridevirtual

◆ GetFieldOfView()

double open3d::visualization::FilamentCamera::GetFieldOfView ( ) const
overridevirtual

only valid if fov was passed to SetProjection()

Implements open3d::visualization::Camera.

◆ GetFieldOfViewType()

Camera::FovType open3d::visualization::FilamentCamera::GetFieldOfViewType ( ) const
overridevirtual

only valid if fov was passed to SetProjection()

Implements open3d::visualization::Camera.

◆ GetForwardVector()

Eigen::Vector3f open3d::visualization::FilamentCamera::GetForwardVector ( ) const
overridevirtual

◆ GetLeftVector()

Eigen::Vector3f open3d::visualization::FilamentCamera::GetLeftVector ( ) const
overridevirtual

◆ GetModelMatrix()

FilamentCamera::Transform open3d::visualization::FilamentCamera::GetModelMatrix ( ) const
overridevirtual

◆ GetNativeCamera()

filament::Camera* open3d::visualization::FilamentCamera::GetNativeCamera ( ) const
inline

◆ GetNear()

double open3d::visualization::FilamentCamera::GetNear ( ) const
overridevirtual

◆ GetPosition()

Eigen::Vector3f open3d::visualization::FilamentCamera::GetPosition ( ) const
overridevirtual

◆ GetProjectionMatrix()

FilamentCamera::Transform open3d::visualization::FilamentCamera::GetProjectionMatrix ( ) const
overridevirtual

◆ GetUpVector()

Eigen::Vector3f open3d::visualization::FilamentCamera::GetUpVector ( ) const
overridevirtual

◆ GetViewMatrix()

FilamentCamera::Transform open3d::visualization::FilamentCamera::GetViewMatrix ( ) const
overridevirtual

◆ LookAt()

void open3d::visualization::FilamentCamera::LookAt ( const Eigen::Vector3f &  center,
const Eigen::Vector3f &  eye,
const Eigen::Vector3f &  up 
)
overridevirtual

◆ SetModelMatrix() [1/2]

void open3d::visualization::FilamentCamera::SetModelMatrix ( const Transform view)
overridevirtual

◆ SetModelMatrix() [2/2]

void open3d::visualization::FilamentCamera::SetModelMatrix ( const Eigen::Vector3f &  forward,
const Eigen::Vector3f &  left,
const Eigen::Vector3f &  up 
)
overridevirtual

◆ SetProjection() [1/2]

void open3d::visualization::FilamentCamera::SetProjection ( double  fov,
double  aspect,
double  near,
double  far,
FovType  fov_type 
)
overridevirtual

◆ SetProjection() [2/2]

void open3d::visualization::FilamentCamera::SetProjection ( Projection  projection,
double  left,
double  right,
double  bottom,
double  top,
double  near,
double  far 
)
overridevirtual

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

Implements open3d::visualization::Camera.


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