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 setDeformer (int _v)
void setnextWidth (int _w)
void setnextHeight (int _h)
void setOrig (bool _v)
void setMode (int _v)
void setChunked (int _v)
void setMag (double _v)
void setSphereX (double _v)
void setSphereY (double _v)
void setSphereZ (double _v)
void setSphereRad (double _v)
void reset ()
void updateGrid ()
void printIspcRadial ()
void printIspcNoise ()
void printSerialRadial ()
void printSerialNoise ()

Public Member Functions

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

Protected Member Functions

void log (const std::string &_msg)
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

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
GLWindow::~GLWindow ( ) [inline]

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::log ( const std::string &  _msg) [inline, protected]
void GLWindow::paintGL ( ) [protected]

this is the main gl drawing routine

void GLWindow::printIspcNoise ( ) [inline, slot]
void GLWindow::printIspcRadial ( ) [inline, slot]
void GLWindow::printSerialNoise ( ) [inline, slot]
void GLWindow::printSerialRadial ( ) [inline, slot]
void GLWindow::processKeyPress ( QKeyEvent *  _event)

GL key events processing.

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

Re-size method, disabled in this application.

void GLWindow::setChunked ( int  _v) [inline, slot]
void GLWindow::setDeformer ( int  _v) [inline, slot]
void GLWindow::setMag ( double  _v) [inline, slot]
void GLWindow::setMode ( int  _v) [inline, slot]
void GLWindow::setnextHeight ( int  _h) [inline, slot]
void GLWindow::setnextWidth ( int  _w) [inline, slot]
void GLWindow::setOrig ( bool  _v) [inline, slot]
void GLWindow::setSphereRad ( double  _v) [inline, slot]
void GLWindow::setSphereX ( double  _v) [inline, slot]
void GLWindow::setSphereY ( double  _v) [inline, slot]
void GLWindow::setSphereZ ( double  _v) [inline, slot]
void GLWindow::updateGrid ( ) [slot]

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 Defines