|
Volume Renderer DoF
|
#include <GLCamera.h>
Public Member Functions | |
| GLCamera (const QVector3D &_pos, const QVector3D &_target) | |
| ~GLCamera () | |
| void | setProjection (const int &width, const int &height) |
| void | zoom (const int &faktor) |
| void | setMMatrix (const QMatrix4x4 &modelMatrix) |
| const QMatrix4x4 | getPVMMatrix () const |
| const QMatrix4x4 | getProjection () const |
| const QMatrix4x4 | getVMatrix () const |
| const QMatrix4x4 | getModelMatrix () const |
A class for representing a virtual camera in the scene
| GLCamera::GLCamera | ( | const QVector3D & | _pos, |
| const QVector3D & | _target | ||
| ) |
| GLCamera::~GLCamera | ( | ) |
| const QMatrix4x4 GLCamera::getModelMatrix | ( | ) | const |
returns the model matrix
| const QMatrix4x4 GLCamera::getProjection | ( | ) | const |
returns the projection matrix
| const QMatrix4x4 GLCamera::getPVMMatrix | ( | ) | const |
returns the projection view model matrix
| const QMatrix4x4 GLCamera::getVMatrix | ( | ) | const |
returns the view matrix
| void GLCamera::setMMatrix | ( | const QMatrix4x4 & | modelMatrix | ) |
sets the model matrix
| modelMatrix | adjusted model matrix |
| void GLCamera::setProjection | ( | const int & | width, |
| const int & | height | ||
| ) |
sets the perspectiv projection matrix
| width | the widget's width |
| height | the widget's height |
| void GLCamera::zoom | ( | const int & | faktor | ) |
zooms into/out of the screen