#include <camera.h>

Public Member Functions | |
| Camera () | |
| Camera (const Camera &other) | |
| float | getFarClipPlane () const |
| float | getNearClipPlane () const |
| glm::mat4 | GetProjectionMatrix () |
| glm::mat4 | GetViewMatrix () |
| Camera & | operator= (const Camera &) |
| void | SetFieldOfView (const float fov) |
| void | SetNearFarClipPlanes (const float near, const float far) |
| void | SetOrthoCropFactor (float value) |
| void | SetOrthoMode (bool enabled) |
| void | SetOrthoScale (float scale) |
| void | SetWindowSize (const float width, const float height) |
| ~Camera () | |
Static Public Member Functions | |
| static glm::mat4 | ProjectionMatrixForCameraIntrinsics (float width, float height, float fx, float fy, float cx, float cy, float near, float far) |
Protected Attributes | |
| float | aspect_ratio_ |
| float | far_clip_plane_ |
| float | field_of_view_ |
| float | height_ |
| float | near_clip_plane_ |
| bool | ortho_ |
| float | orthoCropFactor_ |
| float | orthoScale_ |
| float | width_ |
Definition at line 22 of file camera.cpp.
| tango_gl::Camera::Camera | ( | const Camera & | other | ) |
Definition at line 62 of file camera.cpp.
| float tango_gl::Camera::getFarClipPlane | ( | ) | const [inline] |
| float tango_gl::Camera::getNearClipPlane | ( | ) | const [inline] |
Definition at line 38 of file camera.cpp.
Definition at line 34 of file camera.cpp.
| glm::mat4 tango_gl::Camera::ProjectionMatrixForCameraIntrinsics | ( | float | width, |
| float | height, | ||
| float | fx, | ||
| float | fy, | ||
| float | cx, | ||
| float | cy, | ||
| float | near, | ||
| float | far | ||
| ) | [static] |
Create an OpenGL perspective matrix from window size, camera intrinsics, and clip settings.
| width | - The width of the camera image. |
| height | - The height of the camera image. |
| fx | - The x-axis focal length of the camera. |
| fy | - The y-axis focal length of the camera. |
| cx | - The x-coordinate principal point in pixels. |
| cy | - The y-coordinate principal point in pixels. |
| near | - The desired near z-clipping plane. |
| far | - The desired far z-clipping plane. |
Definition at line 65 of file camera.cpp.
| void tango_gl::Camera::SetFieldOfView | ( | const float | fov | ) |
Definition at line 52 of file camera.cpp.
| void tango_gl::Camera::SetNearFarClipPlanes | ( | const float | near, |
| const float | far | ||
| ) |
Definition at line 56 of file camera.cpp.
| void tango_gl::Camera::SetOrthoCropFactor | ( | float | value | ) | [inline] |
| void tango_gl::Camera::SetOrthoMode | ( | bool | enabled | ) | [inline] |
| void tango_gl::Camera::SetOrthoScale | ( | float | scale | ) | [inline] |
| void tango_gl::Camera::SetWindowSize | ( | const float | width, |
| const float | height | ||
| ) |
Definition at line 46 of file camera.cpp.
float tango_gl::Camera::aspect_ratio_ [protected] |
float tango_gl::Camera::far_clip_plane_ [protected] |
float tango_gl::Camera::field_of_view_ [protected] |
float tango_gl::Camera::height_ [protected] |
float tango_gl::Camera::near_clip_plane_ [protected] |
bool tango_gl::Camera::ortho_ [protected] |
float tango_gl::Camera::orthoCropFactor_ [protected] |
float tango_gl::Camera::orthoScale_ [protected] |
float tango_gl::Camera::width_ [protected] |