Viewer
A plugin-based viewer for learning Computer Graphics and OpenGL
GLWidget Class Reference

#include <glwidget.h>

List of all members.

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 Scenescene ()
PLUGINGLWIDGET_EXPORT Cameracamera ()
PLUGINGLWIDGET_EXPORT void setPluginPath (const QString &)

Detailed Description

/class GLWidget /brief The GLWidget class handles OpenGL rendering through plugins.


Constructor & Destructor Documentation

GLWidget::GLWidget ( QWidget *  parent)

Creates a GLWidget.


Member Function Documentation

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.

Returns the bounding box of the scene, enlarged to include also a representation of the world axes.

Returns a pointer to the camera.

void GLWidget::drawAxes ( ) const [slot]

Draws three lines representing world space axes.

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.

Returns a pointer to the 3D scene.

void GLWidget::setPluginPath ( const QString &  p)

Sets the path where plugins will be searched into.


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