Open3D (C++ API)
0.18.0+252c867
|
#include <FilamentCamera.h>
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 |
void | SetProjection (const Eigen::Matrix3d &intrinsics, double near, double far, double width, double height) override |
void | LookAt (const Eigen::Vector3f ¢er, const Eigen::Vector3f &eye, const Eigen::Vector3f &up) override |
void | SetModelMatrix (const Transform &view) override |
void | SetModelMatrix (const Eigen::Vector3f &forward, const Eigen::Vector3f &left, const Eigen::Vector3f &up) 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... | |
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 |
ProjectionMatrix | GetProjectionMatrix () const override |
Transform | GetCullingProjectionMatrix () const override |
const ProjectionInfo & | GetProjection () const override |
Eigen::Vector3f | Unproject (float x, float y, float z, float view_width, float view_height) const override |
Eigen::Vector2f | GetNDC (const Eigen::Vector3f &pt) const override |
double | GetViewZ (float z_buffer) const override |
void | CopyFrom (const Camera *camera) override |
filament::Camera * | GetNativeCamera () const |
Public Member Functions inherited from open3d::visualization::rendering::Camera | |
virtual | ~Camera ()=default |
virtual void | FromExtrinsics (const Eigen::Matrix4d &extrinsics) |
Additional Inherited Members | |
Public Types inherited from open3d::visualization::rendering::Camera | |
enum class | FovType { Vertical , Horizontal } |
enum class | Projection { Perspective , Ortho } |
using | Transform = Eigen::Transform< float, 3, Eigen::Affine > |
using | ProjectionMatrix = Eigen::Transform< float, 3, Eigen::Projective > |
Static Public Member Functions inherited from open3d::visualization::rendering::Camera | |
static void | SetupCameraAsPinholeCamera (rendering::Camera &camera, const Eigen::Matrix3d &intrinsic, const Eigen::Matrix4d &extrinsic, int intrinsic_width_px, int intrinsic_height_px, const geometry::AxisAlignedBoundingBox &scene_bounds) |
static float | CalcNearPlane () |
Returns a good value for the near plane. More... | |
static float | CalcFarPlane (const rendering::Camera &camera, const geometry::AxisAlignedBoundingBox &scene_bounds) |
|
explicit |
open3d::visualization::rendering::FilamentCamera::~FilamentCamera | ( | ) |
|
overridevirtual |
Implements open3d::visualization::rendering::Camera.
|
overridevirtual |
Implements open3d::visualization::rendering::Camera.
|
overridevirtual |
Implements open3d::visualization::rendering::Camera.
|
overridevirtual |
only valid if fov was passed to SetProjection()
Implements open3d::visualization::rendering::Camera.
|
overridevirtual |
only valid if fov was passed to SetProjection()
Implements open3d::visualization::rendering::Camera.
|
overridevirtual |
Implements open3d::visualization::rendering::Camera.
|
overridevirtual |
Implements open3d::visualization::rendering::Camera.
|
overridevirtual |
Implements open3d::visualization::rendering::Camera.
|
inline |
|
overridevirtual |
Implements open3d::visualization::rendering::Camera.
|
overridevirtual |
Implements open3d::visualization::rendering::Camera.
|
overridevirtual |
Implements open3d::visualization::rendering::Camera.
|
overridevirtual |
Implements open3d::visualization::rendering::Camera.
|
overridevirtual |
Implements open3d::visualization::rendering::Camera.
|
overridevirtual |
Implements open3d::visualization::rendering::Camera.
|
overridevirtual |
Implements open3d::visualization::rendering::Camera.
|
overridevirtual |
Returns the view space depth (i.e., distance from camera) for the given Z-buffer value
Implements open3d::visualization::rendering::Camera.
|
overridevirtual |
Implements open3d::visualization::rendering::Camera.
|
overridevirtual |
Implements open3d::visualization::rendering::Camera.
|
overridevirtual |
Implements open3d::visualization::rendering::Camera.
|
overridevirtual |
Implements open3d::visualization::rendering::Camera.
|
overridevirtual |
Implements open3d::visualization::rendering::Camera.
|
overridevirtual |
Sets the projection matrix from a frustum defined by six planes.
projection | type of Projection to use. |
left | distance in world units from the camera to the left plane, at the near plane. |
right | distance in world units from the camera to the right plane, at the near plane. |
bottom | distance in world units from the camera to the bottom plane, at the near plane. |
top | distance in world units from the camera to the top plane, at the near plane. |
near | distance in world units from the camera to the near plane. The near plane's |
far | distance in world units from the camera to the far plane. The far plane's |
Implements open3d::visualization::rendering::Camera.
|
overridevirtual |
Returns world space coordinates given an x,y position in screen coordinates relative to upper left, the screen dimensions, and z is the depth value (0.0 - 1.0)
Implements open3d::visualization::rendering::Camera.