GCP Assignment 1
Public Member Functions | Private Attributes | List of all members
Camera Class Reference

Creates a Camera object. More...

#include <Camera.h>

Collaboration diagram for Camera:
Collaboration graph

Public Member Functions

 Camera ()
 Constructs a Camera object. More...
 
 ~Camera ()
 Destructs an Camera object. More...
 
void moveCamera (Maths::Vec3 translation)
 Moves the Camera using the translation. More...
 
void moveCameraAlongX (float translateX)
 Moves the Camera along the X axis. More...
 
void moveCameraAlongY (float translateY)
 Moves the Camera along the Y axis. More...
 
void moveCameraAlongZ (float translateZ)
 Moves the Camera along the Z axis. More...
 
void rotateCamera (Maths::Vec3 rotation)
 Rotates the Camera using the rotation. More...
 
void rotateCameraAlongX (float rotationX)
 Rotate the Camera along the X axis. More...
 
void rotateCameraAlongY (float rotationY)
 Rotate the Camera along the Y axis. More...
 
void rotateCameraAlongZ (float rotationZ)
 Rotate the Camera along the Z axis. More...
 
Maths::Mat4 getView ()
 Returns the Camera view matrix. More...
 
Maths::Mat4 getProjection ()
 Returns the Camera projection matrix. More...
 
Maths::Vec3 getOrientation ()
 Returns the Camera orientation. More...
 
void setPosition (Maths::Vec3 position)
 Sets the position of the Camera. More...
 

Private Attributes

Maths::Mat4 view
 Create a viewing matrix for the Camera (Camera orientation) More...
 
Maths::Mat4 projection
 Construct a projection matrix for the Camera (Camera lense) More...
 
Maths::Vec3 orientation
 The Orientation of the Camera. More...
 

Detailed Description

Creates a Camera object.

Constructor & Destructor Documentation

◆ Camera()

Camera::Camera ( )

Constructs a Camera object.

Here is the call graph for this function:

◆ ~Camera()

Camera::~Camera ( )

Destructs an Camera object.

Member Function Documentation

◆ getOrientation()

Maths::Vec3 Camera::getOrientation ( )

Returns the Camera orientation.

Returns
The Camera orientation.

◆ getProjection()

Maths::Mat4 Camera::getProjection ( )

Returns the Camera projection matrix.

Returns
The Camera projection matrix.
Here is the caller graph for this function:

◆ getView()

Maths::Mat4 Camera::getView ( )

Returns the Camera view matrix.

Returns
The Camera view matrix.
Here is the caller graph for this function:

◆ moveCamera()

void Camera::moveCamera ( Maths::Vec3  translation)

Moves the Camera using the translation.

Parameters
translationThe translation.
Here is the call graph for this function:

◆ moveCameraAlongX()

void Camera::moveCameraAlongX ( float  translateX)

Moves the Camera along the X axis.

Parameters
translateXThe translation along the X axis.
Here is the call graph for this function:

◆ moveCameraAlongY()

void Camera::moveCameraAlongY ( float  translateY)

Moves the Camera along the Y axis.

Parameters
translateYThe translation along the Y axis.
Here is the call graph for this function:

◆ moveCameraAlongZ()

void Camera::moveCameraAlongZ ( float  translateZ)

Moves the Camera along the Z axis.

Parameters
translateZThe translation along the Z axis.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rotateCamera()

void Camera::rotateCamera ( Maths::Vec3  rotation)

Rotates the Camera using the rotation.

Parameters
rotationThe rotation.
Here is the call graph for this function:

◆ rotateCameraAlongX()

void Camera::rotateCameraAlongX ( float  rotationX)

Rotate the Camera along the X axis.

Parameters
rotationXThe rotation along the X axis.
Here is the call graph for this function:

◆ rotateCameraAlongY()

void Camera::rotateCameraAlongY ( float  rotationY)

Rotate the Camera along the Y axis.

Parameters
rotationYThe rotation along the Y axis.
Here is the call graph for this function:

◆ rotateCameraAlongZ()

void Camera::rotateCameraAlongZ ( float  rotationZ)

Rotate the Camera along the Z axis.

Parameters
rotationZThe rotation along the Z axis.
Here is the call graph for this function:

◆ setPosition()

void Camera::setPosition ( Maths::Vec3  position)

Sets the position of the Camera.

Parameters
positionThe new position.
Here is the call graph for this function:

Member Data Documentation

◆ orientation

Maths::Vec3 Camera::orientation
private

The Orientation of the Camera.

◆ projection

Maths::Mat4 Camera::projection
private

Construct a projection matrix for the Camera (Camera lense)

◆ view

Maths::Mat4 Camera::view
private

Create a viewing matrix for the Camera (Camera orientation)


The documentation for this class was generated from the following files: