Hierarchical Edge Bundle 1.0
Public Member Functions
Camera Class Reference

#include <Camera.h>

Collaboration diagram for Camera:
Collaboration graph
[legend]

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.

Here is the call graph for this function:

Camera::Camera ( float  left,
float  right,
float  bottom,
float  top,
float  near,
float  far 
)

The constructor for a orthogonal camera.

Here is the call graph for this function:

Camera::~Camera ( )

Destructor


Member Function Documentation

const glm::vec3 Camera::getPosition ( ) const

Returns the Position of the Camera.

Here is the call graph for this function:

Here is the caller graph for this function:

mat4 Camera::getProjectionMatrix ( )

Returns the Projectionmatrix.

Here is the caller graph for this function:

float Camera::getScreenHeight ( )

Returns the screen height.

Returns:
The height of the screen.

Here is the caller graph for this function:

float Camera::getScreenWidth ( )

Returns the screen width.

Returns:
The width of the screen.

Here is the caller graph for this function:

mat4 Camera::getViewingMatrix ( ) const

Returns the Viewingmatrix.

Here is the caller graph for this function:

float Camera::getZoomFactor ( )

Returns the zoomFactor of the camera.

void Camera::lookAt ( vec3  position,
vec3  upVector,
vec3  lookAtVector 
)

Builds a look at view matrix.

Here is the caller graph for this function:

void Camera::orthogonal ( float  left,
float  right,
float  bottom,
float  top,
float  near,
float  far 
)

Sets the Camera to a Orthogonal Camera.

Here is the caller graph for this function:

void Camera::perspective ( float  zNear,
float  zFar,
float  fovy,
float  aspect 
)

Sets the Camera to a Perspectiv Camera.

Here is the caller graph for this function:

void Camera::setFarplane ( float  far)

Sets the farplane.

Parameters:
farThe farplane.
void Camera::setNearplane ( float  near)

Sets the nearplane.

Parameters:
nearThe nearplane.
void Camera::setScreenHeight ( float  height)

Sets the screen height.

Parameters:
heightThe height of the screen.

Here is the caller graph for this function:

void Camera::setScreenWidth ( float  width)

Sets the screen width.

Parameters:
widthThe width of the screen.

Here is the caller graph for this function:

void Camera::setViewingMatrix ( mat4  matrix)

Sets the Viewingmatrix.

void Camera::setZoomFactor ( float  zoom)

Sets the zoomFactor to the given value.

Parameters:
zoomThe zoom factor.
void Camera::updateOrthogonalView ( )

Updates the orthogonal view of the camera depending on the current screenWidth, screenHeight, nearplane, farplane and zoom factor.

Here is the call graph for this function:

Here is the caller graph for this function:

void Camera::updatePerspectiveView ( )

Updates the perspective view of the camera depending on the current screenWidth, screenHeight, nearplane, farplane, fovy and zoom factor.

Here is the call graph for this function:

void Camera::zoomIn ( )

Zooming in the camera.

void Camera::zoomOut ( )

Zooming out the camera.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines