#include <Camera.h>
List of all members.
Public Member Functions |
| | Camera (float zNear, float zFar, float fovyAngle, float aspect) |
| | Camera (float left, float right, float bottom, float top, float near, float far) |
| | ~Camera () |
| mat4 | getViewingMatrix () const |
| void | setViewingMatrix (mat4 matrix) |
| mat4 | getProjectionMatrix () |
| const vec3 | getPosition () const |
| void | lookAt (vec3 position, vec3 upVector, vec3 lookAtVector) |
| void | perspective (float zNear, float zFar, float fovy, float aspect) |
| void | orthogonal (float left, float right, float bottom, float top, float near, float far) |
| void | setScreenWidth (float width) |
| float | getScreenWidth () |
| void | setScreenHeight (float height) |
| float | getScreenHeight () |
| void | setNearplane (float near) |
| void | setFarplane (float far) |
| void | updateOrthogonalView () |
| void | updatePerspectiveView () |
| void | setZoomFactor (float zoom) |
| float | getZoomFactor () |
| void | zoomIn () |
| void | zoomOut () |
Constructor & Destructor Documentation
| Camera::Camera |
( |
float |
zNear, |
|
|
float |
zFar, |
|
|
float |
fovyAngle, |
|
|
float |
aspect |
|
) |
| |
The constructor for a perspective camera.
| Camera::Camera |
( |
float |
left, |
|
|
float |
right, |
|
|
float |
bottom, |
|
|
float |
top, |
|
|
float |
near, |
|
|
float |
far |
|
) |
| |
The constructor for a orthogonal camera.
Member Function Documentation
| const glm::vec3 Camera::getPosition |
( |
| ) |
const |
Returns the Position of the Camera.
| mat4 Camera::getProjectionMatrix |
( |
| ) |
|
Returns the Projectionmatrix.
| float Camera::getScreenHeight |
( |
| ) |
|
Returns the screen height.
- Returns:
- The height of the screen.
| float Camera::getScreenWidth |
( |
| ) |
|
Returns the screen width.
- Returns:
- The width of the screen.
| mat4 Camera::getViewingMatrix |
( |
| ) |
const |
Returns the Viewingmatrix.
| float Camera::getZoomFactor |
( |
| ) |
|
Returns the zoomFactor of the camera.
| void Camera::lookAt |
( |
vec3 |
position, |
|
|
vec3 |
upVector, |
|
|
vec3 |
lookAtVector |
|
) |
| |
Builds a look at view matrix.
| void Camera::orthogonal |
( |
float |
left, |
|
|
float |
right, |
|
|
float |
bottom, |
|
|
float |
top, |
|
|
float |
near, |
|
|
float |
far |
|
) |
| |
| void Camera::perspective |
( |
float |
zNear, |
|
|
float |
zFar, |
|
|
float |
fovy, |
|
|
float |
aspect |
|
) |
| |
| void Camera::setFarplane |
( |
float |
far | ) |
|
Sets the farplane.
- Parameters:
-
| void Camera::setNearplane |
( |
float |
near | ) |
|
Sets the nearplane.
- Parameters:
-
| void Camera::setScreenHeight |
( |
float |
height | ) |
|
Sets the screen height.
- Parameters:
-
| height | The height of the screen. |
| void Camera::setScreenWidth |
( |
float |
width | ) |
|
Sets the screen width.
- Parameters:
-
| width | The width of the screen. |
| void Camera::setViewingMatrix |
( |
mat4 |
matrix | ) |
|
| void Camera::setZoomFactor |
( |
float |
zoom | ) |
|
Sets the zoomFactor to the given value.
- Parameters:
-
| void Camera::updateOrthogonalView |
( |
| ) |
|
Updates the orthogonal view of the camera depending on the current screenWidth, screenHeight, nearplane, farplane and zoom factor.
| void Camera::updatePerspectiveView |
( |
| ) |
|
Updates the perspective view of the camera depending on the current screenWidth, screenHeight, nearplane, farplane, fovy and zoom factor.
The documentation for this class was generated from the following files:
- J:/Caro/C++_Coding/HierarchicalEdgeBundle/HierarchicalEdgeBundle/header/Camera.h
- J:/Caro/C++_Coding/HierarchicalEdgeBundle/HierarchicalEdgeBundle/src/Camera.cpp