Tucano  0.1
A library for rapid prototyping with modern OpenGL and GLSL
Tucano::QtFreecameraWidget Class Reference

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>

Inheritance diagram for Tucano::QtFreecameraWidget:
Tucano::QtFlycameraWidget Tucano::QtGlewFlycameraInitializer

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...
 
Flycameracamera
 Flycamera. More...
 
Trackball light_trackball
 Trackball for manipulating the light position. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

Tucano::QtFreecameraWidget::QtFreecameraWidget ( QWidget *  parent)
inlineexplicit

Member Function Documentation

void Tucano::QtFreecameraWidget::mouseMoveEvent ( QMouseEvent *  event)
inlineoverride
void Tucano::QtFreecameraWidget::mousePressEvent ( QMouseEvent *  event)
inlineoverride
virtual void Tucano::QtFreecameraWidget::mouseReleaseEvent ( QMouseEvent *  event)
inlinevirtual

Callback for mouse release event.

Stops rotation or translation.

Parameters
eventThe mouse event that triggered the callback.

Reimplemented from Tucano::QtFlycameraWidget.


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