|
Viewer
A plugin-based viewer for learning Computer Graphics and OpenGL
|
#include <glwidget.h>
Public Slots | |
| PLUGINGLWIDGET_EXPORT void | addObject () |
| PLUGINGLWIDGET_EXPORT void | addObjectFromFile (const QString &filename) |
| PLUGINGLWIDGET_EXPORT void | resetCamera () |
| PLUGINGLWIDGET_EXPORT void | drawAxes () const |
| PLUGINGLWIDGET_EXPORT Box | boundingBoxIncludingAxes () const |
| PLUGINGLWIDGET_EXPORT void | loadPlugin () |
| PLUGINGLWIDGET_EXPORT void | loadPlugins (const QStringList &list) |
| PLUGINGLWIDGET_EXPORT void | loadDefaultPlugins () |
Public Member Functions | |
| PLUGINGLWIDGET_EXPORT | GLWidget (QWidget *parent) |
| PLUGINGLWIDGET_EXPORT Scene * | scene () |
| PLUGINGLWIDGET_EXPORT Camera * | camera () |
| PLUGINGLWIDGET_EXPORT void | setPluginPath (const QString &) |
| GLWidget::GLWidget | ( | QWidget * | parent | ) |
Creates a GLWidget.
| void GLWidget::addObject | ( | ) | [slot] |
Opens a file dialog enabling the user to select one or more OBJ files to add to the scene. All loaded plugins get their onObjectAdd() method invoked for each loaded object.
| void GLWidget::addObjectFromFile | ( | const QString & | filename | ) | [slot] |
Adds an OBJ file to the scene. All loaded plugins get their onObjectAdd() method invoked.
| Box GLWidget::boundingBoxIncludingAxes | ( | ) | const [slot] |
Returns the bounding box of the scene, enlarged to include also a representation of the world axes.
| Camera * GLWidget::camera | ( | ) |
Returns a pointer to the camera.
| void GLWidget::drawAxes | ( | ) | const [slot] |
Draws three lines representing world space axes.
| void GLWidget::loadDefaultPlugins | ( | ) | [slot] |
Loads default plugins.
| void GLWidget::loadPlugin | ( | ) | [slot] |
Opens a file dialog enabling the user to select one or more plugins to load. After loading each plugin, its onPluginLoad() method is invoked.
| void GLWidget::loadPlugins | ( | const QStringList & | list | ) | [slot] |
Loads one plugins and calls its onPluginLoad() method.
| void GLWidget::resetCamera | ( | ) | [slot] |
Resets the camera so that the whole scene (including world axes) is visible.
| Scene * GLWidget::scene | ( | ) |
Returns a pointer to the 3D scene.
| void GLWidget::setPluginPath | ( | const QString & | p | ) |
Sets the path where plugins will be searched into.