Depth of Field  0.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
AppGLWidget Class Reference

#include <appglwidget.h>

List of all members.

Public Slots

void update ()
void setAlpha (int val)
void setRenderDoF ()

Public Member Functions

 AppGLWidget (QWidget *parent)
 ~AppGLWidget ()
void startUpdateTimer ()
void stopUpdateTimer ()
 Stop the update timer.

Protected Member Functions

void mousePressEvent (QMouseEvent *event)
void mouseMoveEvent (QMouseEvent *event)
void wheelEvent (QWheelEvent *event)

Detailed Description

OpenGL frame widget. Shows opengl scene being updated by frame timer.


Constructor & Destructor Documentation

AppGLWidget::AppGLWidget ( QWidget *  parent)

Constructor.

Parameters:
parentParent widget.
AppGLWidget::~AppGLWidget ( )

Destructor (delete timers on heap).


Member Function Documentation

void AppGLWidget::mouseMoveEvent ( QMouseEvent *  event)
protected
void AppGLWidget::mousePressEvent ( QMouseEvent *  event)
protected
void AppGLWidget::setAlpha ( int  val)
slot

set the Alpha value for adjusting the strength of the Depth of Field effect

void AppGLWidget::setRenderDoF ( )
slot

turn Depth of Field rendering on/off

void AppGLWidget::startUpdateTimer ( )

Starts Update Timer. Timer is running at max speed albeit frame rate may be capped by drivers (~60fps).

void AppGLWidget::stopUpdateTimer ( )

Stop the update timer.

void AppGLWidget::update ( )
slot

Update scene by calling updateGL(). If OpenGL Error ocurred, show it and do not update (stopUpdateTimer).

void AppGLWidget::wheelEvent ( QWheelEvent *  event)
protected

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