SimpleNGL 1.0
Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes
GLWindow Class Reference

The GLWidget for updating the drawing of our scene. More...

#include <GLWindow.h>

List of all members.

Public Slots

void toggleWireframe (bool _mode)
 a slot to toggle wireframe mode
void setTimeStep (double _value)
void setBendStiffness (double _value)
void setBendDamping (double _value)
void setShearStiffness (double _value)
void setShearDamping (double _value)
void setStructStiffness (double _value)
void setStructDamping (double _value)
void reset ()
void setWindX (double _value)
void setWindY (double _value)
void setWindZ (double _value)
void setGrav (double _value)

Public Member Functions

 GLWindow (QWidget *_parent)
 Constructor for GLWindow.
void processKeyPress (QKeyEvent *_event)
 GL key events processing.

Protected Member Functions

void genShader (const std::string &_name, const std::string &_VSname, const std::string &_FSname, const std::vector< std::string > &_attributes)
 a helper function for generating ngl shaders
void initializeGL ()
 called upon creating GLWindow, setup for Glew and other scene elements
void resizeGL (const int _w, const int _h)
 Re-size method, disabled in this application.
void paintGL ()
 this is the main gl drawing routine
void timerEvent (QTimerEvent *_event)
 timer event for updating the demo scene

Protected Attributes

ngl::TransformStack m_transformStack
 the transformation stack

Detailed Description

The GLWidget for updating the drawing of our scene.


Constructor & Destructor Documentation

GLWindow::GLWindow ( QWidget *  _parent)

Constructor for GLWindow.

Parameters:
[in]_parentthe parent window to create the GL context in

Member Function Documentation

void GLWindow::genShader ( const std::string &  _name,
const std::string &  _VSname,
const std::string &  _FSname,
const std::vector< std::string > &  _attributes 
) [protected]

a helper function for generating ngl shaders

Parameters:
[in]_namethe shaders desired name
[in]_VSnamethe vertex shader name
[in]_FSnamethe frag sjader name
[in]_attributesa vector of strings for the shaders attributes
void GLWindow::initializeGL ( ) [protected]

called upon creating GLWindow, setup for Glew and other scene elements

void GLWindow::paintGL ( ) [protected]

this is the main gl drawing routine

void GLWindow::processKeyPress ( QKeyEvent *  _event)

GL key events processing.

Parameters:
[in]_eventthe event infomation
void GLWindow::reset ( ) [slot]
void GLWindow::resizeGL ( const int  _w,
const int  _h 
) [protected]

Re-size method, disabled in this application.

void GLWindow::setBendDamping ( double  _value) [slot]
void GLWindow::setBendStiffness ( double  _value) [slot]
void GLWindow::setGrav ( double  _value) [slot]
void GLWindow::setShearDamping ( double  _value) [slot]
void GLWindow::setShearStiffness ( double  _value) [slot]
void GLWindow::setStructDamping ( double  _value) [slot]
void GLWindow::setStructStiffness ( double  _value) [slot]
void GLWindow::setTimeStep ( double  _value) [inline, slot]
void GLWindow::setWindX ( double  _value) [slot]
void GLWindow::setWindY ( double  _value) [slot]
void GLWindow::setWindZ ( double  _value) [slot]
void GLWindow::timerEvent ( QTimerEvent *  _event) [protected]

timer event for updating the demo scene

Parameters:
[in]_eventqt event info
void GLWindow::toggleWireframe ( bool  _mode) [inline, slot]

a slot to toggle wireframe mode

Parameters:
[in]_modethe mode to wireframe to

Member Data Documentation

ngl::TransformStack GLWindow::m_transformStack [protected]

the transformation stack


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Enumerations Enumerator