|
Avara3D 0.2.0
C++ API reference
|
Camera using a centered orthographic projection with a fixed vertical size. More...
#include <a3d/visual/camera/OrthographicCamera.h>
Public Member Functions | |
| OrthographicCamera () | |
| Creates an unnamed camera with a 0.1 near plane, 1000 far plane, and vertical size of 2. More... | |
| OrthographicCamera (float zNear, float zFar, float ySize) | |
| Creates an unnamed orthographic camera with the supplied clipping distances and vertical size. More... | |
| OrthographicCamera (const std::string &name, float zNear, float zFar, float ySize) | |
| Creates a named orthographic camera with the supplied clipping distances and vertical size. More... | |
| float | zNear () const |
| Returns the near clipping distance. More... | |
| void | zNear (float zNear) |
| Sets the near clipping distance. More... | |
| float | zFar () const |
| Returns the far clipping distance. More... | |
| void | zFar (float zFar) |
| Sets the far clipping distance. More... | |
| float | ySize () const |
| Returns the vertical size of the projection in scene units. More... | |
| void | ySize (float ySize) |
| Sets the vertical size of the projection in scene units. More... | |
Public Member Functions inherited from a3d::Camera | |
| Camera () | |
| Creates an unnamed Camera. More... | |
| Camera (const std::string &name) | |
Creates a Camera with name. More... | |
| const std::optional< std::string > & | name () const |
| Returns the optional camera name. More... | |
| void | name (const std::string &name) |
| Sets the camera name. More... | |
Camera using a centered orthographic projection with a fixed vertical size.
Definition at line 20 of file OrthographicCamera.h.
| a3d::OrthographicCamera::OrthographicCamera | ( | ) |
Creates an unnamed camera with a 0.1 near plane, 1000 far plane, and vertical size of 2.
| a3d::OrthographicCamera::OrthographicCamera | ( | float | zNear, |
| float | zFar, | ||
| float | ySize | ||
| ) |
Creates an unnamed orthographic camera with the supplied clipping distances and vertical size.
| a3d::OrthographicCamera::OrthographicCamera | ( | const std::string & | name, |
| float | zNear, | ||
| float | zFar, | ||
| float | ySize | ||
| ) |
Creates a named orthographic camera with the supplied clipping distances and vertical size.
| float a3d::OrthographicCamera::ySize | ( | ) | const |
Returns the vertical size of the projection in scene units.
| void a3d::OrthographicCamera::ySize | ( | float | ySize | ) |
Sets the vertical size of the projection in scene units.
| float a3d::OrthographicCamera::zFar | ( | ) | const |
Returns the far clipping distance.
| void a3d::OrthographicCamera::zFar | ( | float | zFar | ) |
Sets the far clipping distance.
| float a3d::OrthographicCamera::zNear | ( | ) | const |
Returns the near clipping distance.
| void a3d::OrthographicCamera::zNear | ( | float | zNear | ) |
Sets the near clipping distance.