mrpt::opengl::CCamera Class Reference
A camera: if added to a scene, the viewpoint defined by this camera will be used instead of the camera parameters set in COpenGLViewport::m_camera.
More...
#include <mrpt/opengl/CCamera.h>
List of all members.
Detailed Description
A camera: if added to a scene, the viewpoint defined by this camera will be used instead of the camera parameters set in COpenGLViewport::m_camera.
A camera can be defined to provide a projective or orthogonal view of the world by setting the member CCamera::m_projectiveModel.
- See also:
- opengl::COpenGLScene
Definition at line 49 of file CCamera.h.
Constructor & Destructor Documentation
mrpt::opengl::CCamera::CCamera |
( |
|
) |
[private] |
virtual mrpt::opengl::CCamera::~CCamera |
( |
|
) |
[inline, private, virtual] |
Private, virtual destructor: only can be deleted from smart pointers.
Definition at line 100 of file CCamera.h.
Member Function Documentation
float mrpt::opengl::CCamera::getAzimuthDegrees |
( |
|
) |
const [inline] |
float mrpt::opengl::CCamera::getElevationDegrees |
( |
|
) |
const [inline] |
float mrpt::opengl::CCamera::getPointingAtX |
( |
|
) |
const [inline] |
float mrpt::opengl::CCamera::getPointingAtY |
( |
|
) |
const [inline] |
float mrpt::opengl::CCamera::getPointingAtZ |
( |
|
) |
const [inline] |
float mrpt::opengl::CCamera::getProjectiveFOVdeg |
( |
|
) |
const [inline] |
Field-of-View in degs, only when projectiveModel=true (default=30 deg).
Definition at line 87 of file CCamera.h.
float mrpt::opengl::CCamera::getZoomDistance |
( |
|
) |
const [inline] |
bool mrpt::opengl::CCamera::isOrthogonal |
( |
|
) |
const [inline] |
bool mrpt::opengl::CCamera::isProjective |
( |
|
) |
const [inline] |
void mrpt::opengl::CCamera::render |
( |
|
) |
const [inline, virtual] |
void mrpt::opengl::CCamera::setAzimuthDegrees |
( |
float |
ang |
) |
[inline] |
void mrpt::opengl::CCamera::setElevationDegrees |
( |
float |
ang |
) |
[inline] |
void mrpt::opengl::CCamera::setOrthogonal |
( |
bool |
v = true |
) |
[inline] |
Enable/Disable orthogonal mode (vs. projective).
Definition at line 81 of file CCamera.h.
void mrpt::opengl::CCamera::setPointingAt |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z | |
|
) |
| | [inline] |
void mrpt::opengl::CCamera::setProjectiveFOVdeg |
( |
float |
ang |
) |
[inline] |
Field-of-View in degs, only when projectiveModel=true (default=30 deg).
Definition at line 86 of file CCamera.h.
void mrpt::opengl::CCamera::setProjectiveModel |
( |
bool |
v = true |
) |
[inline] |
Enable/Disable projective mode (vs. orthogonal).
Definition at line 80 of file CCamera.h.
void mrpt::opengl::CCamera::setZoomDistance |
( |
float |
z |
) |
[inline] |
Friends And Related Function Documentation
Member Data Documentation
Field-of-View in degs, only when projectiveModel=true (default=30 deg).
Definition at line 61 of file CCamera.h.
If set to true (default), camera model is projective, otherwise, it's orthogonal.
Definition at line 60 of file CCamera.h.