Class to manage camera.
More...
#include <Camera.h>
|
| | Camera (float fov_=45.0f, float ratio_=16.0f/9, float nearPlane_=10.0f, float farPlane_=10000.0f) |
| | use as session name to disable ZEROEQ More...
|
| |
| | Camera (const std::string &session_, float fov_=45.0f, float ratio_=16.0f/9, float nearPlane_=10.0f, float farPlane_=10000.0f) |
| | Camera constructor. More...
|
| |
|
| ~Camera (void) |
| | Default destructor.
|
| |
| void | setZeqSession (const std::string &session_=std::string()) |
| | Method to start or change the camera zeqSession. More...
|
| |
| float | nearPlane (void) const |
| | Method to obtain the near plane distance. More...
|
| |
| void | nearPlane (float nearPlane_) |
| | Method to establish the near plane distance. More...
|
| |
| float | farPlane (void) const |
| | Method to obtain the far plane distance. More...
|
| |
| void | farPlane (float farPlane_) |
| | Method to establish the far plane distance. More...
|
| |
| float | fieldOfView (void) const |
| | Method to obtain the field of view angle value. More...
|
| |
| void | fieldOfView (float fov_) |
| | Method to establish field of view angle. More...
|
| |
| float * | projectionMatrix (void) |
| | Method to get the pointer to projection matrix of the camera vectorized in columns. More...
|
| |
| float * | viewMatrix (void) |
| | Method to get the pointer to view matrix of the camera vectorized in columns. More...
|
| |
| float * | projectionViewMatrix (void) |
| | Method to get the pointer to view-projection matrix of the camera vectorized in columns. More...
|
| |
|
|
static const std::string | NO_ZEROEQ |
| |
|
|
void | _setFov (float fov_) |
| |
|
void | _setRatio (float ratio_) |
| |
|
void | _setNearPlane (float nearPlane_) |
| |
|
void | _setFarPlane (float farPlane_) |
| |
|
void | _buildProjectionMatrix (void) |
| |
|
void | _setEnableZeqConnChanges (bool enableZeqConnChanges_) |
| |
|
|
class | AbstractCameraController |
| |
Class to manage camera.
This class manage the camera: allows synchronize the camera with other applications using of ZeroEQ
Definition at line 64 of file Camera.h.
| reto::Camera::Camera |
( |
float |
fov_ = 45.0f, |
|
|
float |
ratio_ = 16.0f/9, |
|
|
float |
nearPlane_ = 10.0f, |
|
|
float |
farPlane_ = 10000.0f |
|
) |
| |
use as session name to disable ZEROEQ
Camera constructor
- Parameters
-
| fov | camera field of view |
| ratio | camera ratio |
| nearPlane | camera near plane |
| farPlane | camera far plane |
| reto::Camera::Camera |
( |
const std::string & |
session_, |
|
|
float |
fov_ = 45.0f, |
|
|
float |
ratio_ = 16.0f/9, |
|
|
float |
nearPlane_ = 10.0f, |
|
|
float |
farPlane_ = 10000.0f |
|
) |
| |
Camera constructor.
- Parameters
-
| session | ZeroEq session to synchronize the camera with other applications |
| fov | camera field of view |
| ratio | camera ratio |
| nearPlane | camera near plane |
| farPlan | camera far plane |
| float reto::Camera::farPlane |
( |
void |
| ) |
const |
Method to obtain the far plane distance.
- Returns
- camera far plane distance.
| void reto::Camera::farPlane |
( |
float |
farPlane_ | ) |
|
Method to establish the far plane distance.
- Parameters
-
| farPlane_ | new value to be assigned as far plane distance. |
| float reto::Camera::fieldOfView |
( |
void |
| ) |
const |
Method to obtain the field of view angle value.
- Returns
- field of view angle.
| void reto::Camera::fieldOfView |
( |
float |
fov_ | ) |
|
Method to establish field of view angle.
- Parameters
-
| fov_ | new value to be assigned as field of view. |
| float reto::Camera::nearPlane |
( |
void |
| ) |
const |
Method to obtain the near plane distance.
- Returns
- camera near plane distance.
| void reto::Camera::nearPlane |
( |
float |
nearPlane_ | ) |
|
Method to establish the near plane distance.
- Parameters
-
| nearPlane_ | new value to be assigned as near plane distance. |
| float* reto::Camera::projectionMatrix |
( |
void |
| ) |
|
Method to get the pointer to projection matrix of the camera vectorized in columns.
- Returns
- pointer to float whit the column vectorized projection matrix of the camera
| float* reto::Camera::projectionViewMatrix |
( |
void |
| ) |
|
Method to get the pointer to view-projection matrix of the camera vectorized in columns.
- Returns
- pointer to float with the column vectorized view-projection matrix of the camera
| void reto::Camera::setZeqSession |
( |
const std::string & |
session_ = std::string() | ) |
|
Method to start or change the camera zeqSession.
- Parameters
-
| session | ZeroEq session to synchronize the camera with other applications |
| float* reto::Camera::viewMatrix |
( |
void |
| ) |
|
Method to get the pointer to view matrix of the camera vectorized in columns.
- Returns
- pointer to float with the column vectorized view matrix of the camera
The documentation for this class was generated from the following file: