![]() |
Depth of Field
0.1
|
#include <appglwidget.h>
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) |
OpenGL frame widget. Shows opengl scene being updated by frame timer.
AppGLWidget::AppGLWidget | ( | QWidget * | parent | ) |
Constructor.
parent | Parent widget. |
AppGLWidget::~AppGLWidget | ( | ) |
Destructor (delete timers on heap).
|
protected |
|
protected |
|
slot |
set the Alpha value for adjusting the strength of the Depth of Field effect
|
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.
|
slot |
Update scene by calling updateGL(). If OpenGL Error ocurred, show it and do not update (stopUpdateTimer).
|
protected |