AmbientOcclusion
Camera Class Reference

The Camera class - simulates the view point of the user. When the user interacts with the visualized molecule or navigates around it, he basically manipulates the camera. More...

#include <Camera.h>

Inherits SceneObject.

Public Member Functions

 Camera ()
 
 ~Camera ()
 
QMatrix4x4 getViewMatrix ()
 getViewMatrix More...
 
QMatrix4x4 getProjectionMatrix ()
 getProjectionMatrix More...
 
void setProjectionMatrix (float verticalAngle, float aspectRatio, float nearPlane, float farPlane)
 setProjectionMatrix - sets the necessary values for the initialization of a new camera object More...
 
QVector3D getPosition ()
 getPosition More...
 
- Public Member Functions inherited from SceneObject
 SceneObject (QMatrix4x4 _modelMatrix)
 
virtual ~SceneObject ()
 
void rotateX (float angle)
 
void rotateY (float angle)
 
void rotateZ (float angle)
 
void rotateX_World (float angle)
 
void rotateY_World (float angle)
 
void rotateZ_World (float angle)
 
void translate (QVector3D direction)
 
void setPosition (QVector3D newPos)
 

Additional Inherited Members

- Public Attributes inherited from SceneObject
QMatrix4x4 modelMatrix
 

Detailed Description

The Camera class - simulates the view point of the user. When the user interacts with the visualized molecule or navigates around it, he basically manipulates the camera.

Constructor & Destructor Documentation

Camera::Camera ( )
Camera::~Camera ( )

Member Function Documentation

QVector3D Camera::getPosition ( )

getPosition

Returns
Returns the current position of the camera object
QMatrix4x4 Camera::getProjectionMatrix ( )

getProjectionMatrix

Returns
Returns the projection matrix of the camera object
QMatrix4x4 Camera::getViewMatrix ( )

getViewMatrix

Returns
Returns the view matrix of the camera object
void Camera::setProjectionMatrix ( float  verticalAngle,
float  aspectRatio,
float  nearPlane,
float  farPlane 
)

setProjectionMatrix - sets the necessary values for the initialization of a new camera object

Parameters
verticalAngle- field of view of the camera object
aspectRatio- width / height
nearPlane- near clipping plane
farPlane- far clipping plane

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