GPU-Accelerated Coverage
0.1.0
Compute coverage tours for known environment with articulated objects on GPU
|
Orthographic projection camera. More...
#include <CameraOrtho.h>
Public Member Functions | |
CameraOrtho (const size_t id, const std::string &name, Node *const node, const float left, const float right, const float top, const float bottom, const float clipNear, const float clipFar) | |
Constructor. More... | |
virtual | ~CameraOrtho () |
Destructor. | |
virtual void | toDot (FILE *file) const |
Write Graphviz Dot node representing this camera to file for debugging. More... | |
![]() | |
AbstractCamera (const size_t id, const std::string &name, Node *const node) | |
Constructor. More... | |
virtual | ~AbstractCamera () |
Destructor. | |
virtual void | setViewProjection (const LocationsMVP &locationsMVP, std::vector< glm::mat4 > &view) const |
Forward the view and projection matrices to the given locations of a GLSL shader and additionally return the view matrices. More... | |
const glm::mat4x4 & | getProjectionMatrix () const |
Returns the 4x4 projection matrix of the camera. More... | |
const size_t & | getId () const |
Returns the unique ID of this camera. More... | |
const std::string & | getName () const |
Returns the name of this camera for logging. More... | |
Node * | getNode () const |
Returns the scene graph node that this camera is attached to. More... | |
Protected Attributes | |
const float | left |
Left clipping plane. | |
const float | right |
Right clipping plane. | |
const float | top |
Top clipping plane. | |
const float | bottom |
Bottom clipping plane. | |
const float | clipNear |
Distance of the near clipping plane. | |
const float | clipFar |
Distance of the far clipping plane. | |
![]() | |
const size_t | id |
Unique ID of the camera, see getId(). | |
const std::string | name |
Name of the camera for logging, see getName(). | |
Node *const | node |
Scene graph node assigned to this camera, see getNode(). | |
glm::mat4 | projectionMatrix |
Orthographic projection camera.
gpu_coverage::CameraOrtho::CameraOrtho | ( | const size_t | id, |
const std::string & | name, | ||
Node *const | node, | ||
const float | left, | ||
const float | right, | ||
const float | top, | ||
const float | bottom, | ||
const float | clipNear, | ||
const float | clipFar | ||
) |
Constructor.
[in] | id | Unique ID of this camera. |
[in] | name | Name of this camera for logging. |
[in] | node | Scene graph node where to attach this camera. |
[in] | left | Left clipping plane. |
[in] | right | Right clipping plane. |
[in] | top | Top clipping plane. |
[in] | bottom | Bottom clipping plane. |
[in] | clipNear | Distance of the near clipping plane. |
[in] | clipFar | Distance of the far clipping plane. |
|
virtual |
Write Graphviz Dot node representing this camera to file for debugging.
[in] | dot | Output Dot file. |
Implements gpu_coverage::AbstractCamera.