Tucano
0.1
A library for rapid prototyping with modern OpenGL and GLSL
|
A widget with a free camera. Extends QGLWidget class to include common methods for using Tucano this widget already has a default camera and light trackball and associated mouse methods. More...
#include <qtfreecamerawidget.hpp>
Public Member Functions | |
QtFreecameraWidget (QWidget *parent) | |
void | mousePressEvent (QMouseEvent *event) override |
void | mouseMoveEvent (QMouseEvent *event) override |
virtual void | mouseReleaseEvent (QMouseEvent *event) |
Callback for mouse release event. More... | |
Public Member Functions inherited from Tucano::QtFlycameraWidget | |
QtFlycameraWidget (QWidget *parent) | |
Default constructor. More... | |
~QtFlycameraWidget () | |
Default destructor. More... | |
virtual void | initializeGL (void) |
Initializes openGL and GLEW. More... | |
virtual void | resizeGL (void) |
Resize callback for the widget. More... | |
void | initialize (void) |
Initializes the trackball and the mesh with a given filename. More... | |
virtual void | openMesh (string filename) |
Opens a mesh from file. More... | |
Public Member Functions inherited from Tucano::QtGlewFlycameraInitializer | |
QtGlewFlycameraInitializer (QWidget *parent) | |
Additional Inherited Members | |
Protected Member Functions inherited from Tucano::QtFlycameraWidget | |
virtual void | keyPressEvent (QKeyEvent *event) |
Callback for key press event. More... | |
void | mousePressEvent (QMouseEvent *event) |
Callback for mouse press event. More... | |
void | mouseMoveEvent (QMouseEvent *event) |
Callback for mouse move event. More... | |
Protected Attributes inherited from Tucano::QtFlycameraWidget | |
Mesh | mesh |
Triangle mesh. More... | |
Flycamera * | camera |
Flycamera. More... | |
Trackball | light_trackball |
Trackball for manipulating the light position. More... | |
A widget with a free camera. Extends QGLWidget class to include common methods for using Tucano this widget already has a default camera and light trackball and associated mouse methods.
|
inlineexplicit |
|
inlineoverride |
|
inlineoverride |
|
inlinevirtual |
Callback for mouse release event.
Stops rotation or translation.
event | The mouse event that triggered the callback. |
Reimplemented from Tucano::QtFlycameraWidget.