Volume Renderer DoF
GLCamera Class Reference

#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
 

Detailed Description

A class for representing a virtual camera in the scene

Constructor & Destructor Documentation

◆ GLCamera()

GLCamera::GLCamera ( const QVector3D &  _pos,
const QVector3D &  _target 
)

◆ ~GLCamera()

GLCamera::~GLCamera ( )

Member Function Documentation

◆ getModelMatrix()

const QMatrix4x4 GLCamera::getModelMatrix ( ) const

returns the model matrix

Returns
4x4 model matrix

◆ getProjection()

const QMatrix4x4 GLCamera::getProjection ( ) const

returns the projection matrix

Returns
4x4 projection matrix

◆ getPVMMatrix()

const QMatrix4x4 GLCamera::getPVMMatrix ( ) const

returns the projection view model matrix

Returns
4x4 projection view model matrix

◆ getVMatrix()

const QMatrix4x4 GLCamera::getVMatrix ( ) const

returns the view matrix

Returns
4x4 view matrix

◆ setMMatrix()

void GLCamera::setMMatrix ( const QMatrix4x4 &  modelMatrix)

sets the model matrix

Parameters
modelMatrixadjusted model matrix

◆ setProjection()

void GLCamera::setProjection ( const int &  width,
const int &  height 
)

sets the perspectiv projection matrix

Parameters
widththe widget's width
heightthe widget's height

◆ zoom()

void GLCamera::zoom ( const int &  faktor)

zooms into/out of the screen


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