AmbientOcclusion
Camera.h
Go to the documentation of this file.
1 #ifndef CAMERA_H
2 #define CAMERA_H
3 #include "SceneObject.h"
4 
10 class Camera : public SceneObject
11 {
12 public:
13  Camera();
14  ~Camera();
15 
20  QMatrix4x4 getViewMatrix();
25  QMatrix4x4 getProjectionMatrix();
26 
34  void setProjectionMatrix(float verticalAngle, float aspectRatio, float nearPlane, float farPlane);
35 
40  QVector3D getPosition();
41 
42 private:
43  QMatrix4x4 projectionMatrix;
44 
45 
46 };
47 
48 #endif // CAMERA_H
The Camera class - simulates the view point of the user. When the user interacts with the visualized ...
Definition: Camera.h:10
Camera()
Definition: Camera.cpp:3
QVector3D getPosition()
getPosition
Definition: Camera.cpp:13
Definition: SceneObject.h:8
~Camera()
Definition: Camera.cpp:8
void setProjectionMatrix(float verticalAngle, float aspectRatio, float nearPlane, float farPlane)
setProjectionMatrix - sets the necessary values for the initialization of a new camera object ...
Definition: Camera.cpp:28
QMatrix4x4 getProjectionMatrix()
getProjectionMatrix
Definition: Camera.cpp:23
QMatrix4x4 getViewMatrix()
getViewMatrix
Definition: Camera.cpp:18