10 #include <utils/Entity.h>
22 namespace visualization {
50 void LookAt(
const Eigen::Vector3f& center,
51 const Eigen::Vector3f& eye,
52 const Eigen::Vector3f& up)
override;
56 const Eigen::Vector3f& left,
57 const Eigen::Vector3f& up)
override;
59 double GetNear()
const override;
60 double GetFar()
const override;
80 float view_height)
const override;
82 Eigen::Vector2f
GetNDC(
const Eigen::Vector3f& pt)
const override;
83 double GetViewZ(
float z_buffer)
const override;
90 filament::Camera* camera_ =
nullptr;
91 utils::Entity camera_entity_;
92 filament::Engine& engine_;
Eigen::Transform< float, 3, Eigen::Projective > ProjectionMatrix
Definition: Camera.h:26
FovType
Definition: Camera.h:23
Eigen::Transform< float, 3, Eigen::Affine > Transform
Definition: Camera.h:25
Projection
Definition: Camera.h:24
Definition: FilamentCamera.h:25
~FilamentCamera()
Definition: FilamentCamera.cpp:71
double GetFar() const override
Definition: FilamentCamera.cpp:199
ProjectionMatrix GetProjectionMatrix() const override
Definition: FilamentCamera.cpp:271
double GetFieldOfView() const override
only valid if fov was passed to SetProjection()
Definition: FilamentCamera.cpp:201
Transform GetCullingProjectionMatrix() const override
Definition: FilamentCamera.cpp:281
Transform GetViewMatrix() const override
Definition: FilamentCamera.cpp:266
filament::Camera * GetNativeCamera() const
Definition: FilamentCamera.h:87
Eigen::Vector3f Unproject(float x, float y, float z, float view_width, float view_height) const override
Definition: FilamentCamera.cpp:330
double GetViewZ(float z_buffer) const override
Definition: FilamentCamera.cpp:299
Eigen::Vector3f GetUpVector() const override
Definition: FilamentCamera.cpp:256
void SetProjection(double fov, double aspect, double near, double far, FovType fov_type) override
Definition: FilamentCamera.cpp:104
Eigen::Vector3f GetForwardVector() const override
Definition: FilamentCamera.cpp:246
void SetModelMatrix(const Transform &view) override
Definition: FilamentCamera.cpp:325
FilamentCamera(filament::Engine &engine)
Definition: FilamentCamera.cpp:64
Eigen::Vector2f GetNDC(const Eigen::Vector3f &pt) const override
Definition: FilamentCamera.cpp:287
Eigen::Vector3f GetPosition() const override
Definition: FilamentCamera.cpp:241
void CopyFrom(const Camera *camera) override
Definition: FilamentCamera.cpp:77
Eigen::Vector3f GetLeftVector() const override
Definition: FilamentCamera.cpp:251
const ProjectionInfo & GetProjection() const override
Definition: FilamentCamera.cpp:308
Transform GetModelMatrix() const override
Definition: FilamentCamera.cpp:261
double GetNear() const override
Definition: FilamentCamera.cpp:197
FovType GetFieldOfViewType() const override
only valid if fov was passed to SetProjection()
Definition: FilamentCamera.cpp:217
void LookAt(const Eigen::Vector3f ¢er, const Eigen::Vector3f &eye, const Eigen::Vector3f &up) override
Definition: FilamentCamera.cpp:227
Definition: FilamentEngine.h:12
Definition: PinholeCameraIntrinsic.cpp:16