Go to the documentation of this file.
17 class COpenGLViewport;
48 template <
class POSEORPOINT>
53 m_pointingZ = p.is3DPoseOrPoint() ? p.m_coords[2] : 0;
float getProjectiveFOVdeg() const
Field-of-View in degs, only when projectiveModel=true (default=30 deg).
void setAzimuthDegrees(float ang)
void setPointingAt(const POSEORPOINT &p)
void setProjectiveModel(bool v=true)
Enable/Disable projective mode (vs.
#define DEFINE_SERIALIZABLE(class_name, NS)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
void setProjectiveFOVdeg(float ang)
Vertical field-of-View in degs, only when projectiveModel=true (default=30 deg).
float getZoomDistance() const
The base class of 3D objects that can be directly rendered through OpenGL.
float m_projectiveFOVdeg
Field-of-View in degs, only when projectiveModel=true (default=30 deg).
bool m_6DOFMode
If set to true, camera pose is used when rendering the viewport.
void setPointingAt(float x, float y, float z)
void freeOpenGLResources() override
Free opengl buffers.
void render(const RenderContext &rc) const override
Render does nothing here.
float getPointingAtX() const
float getPointingAtZ() const
void renderUpdateBuffers() const override
Render does nothing here.
~CCamera() override=default
void set6DOFMode(bool v)
Set 6DOFMode, if enabled camera is set according to its pose (default=false).
A camera: if added to a scene, the viewpoint defined by this camera will be used instead of the camer...
float d2f(const double d)
shortcut for static_cast<float>(double)
void setZoomDistance(float z)
Context for calls to render()
void setPointingAt(const mrpt::math::TPoint3D &p)
float getPointingAtY() const
void setOrthogonal(bool v=true)
Enable/Disable orthogonal mode (vs.
void setElevationDegrees(float ang)
bool m_projectiveModel
If set to true (default), camera model is projective, otherwise, it's orthogonal.
A viewport within a COpenGLScene, containing a set of OpenGL objects to render.
bool isProjective() const
float getAzimuthDegrees() const
bool isOrthogonal() const
The namespace for 3D scene representation and rendering.
void getBoundingBox(mrpt::math::TPoint3D &bb_min, mrpt::math::TPoint3D &bb_max) const override
In this class, returns a fixed box (max,max,max), (-max,-max,-max).
float getElevationDegrees() const
Page generated by Doxygen 1.8.17 for MRPT 2.0.4 at Sat Jun 27 14:00:59 UTC 2020 | |