GLWindow Class Reference

our main glwindow widget for volume rendering system More...

#include <GLWindow.h>

List of all members.

Public Slots

void textureChanged (const int _index)
 slot to indicate the texture selection combo box has changed called from MainWindow
void setScale (const int _value)
 slot to indicate the scale of the scene called from MainWindow
void setIsovalue1 (const int _value)
 slot to indicate the value of iso-value 1 called from MainWindow
void setIsovalue2 (const int _value)
 slot to indicate the value of iso-value 2 called from MainWindow
void setStepsize (const int _value)
 slot to indicate the value of stepsize called from MainWindow
void isAxis (const bool _index)
 slot to indicate the axis is drawn or not called from MainWindow
void isBoundingBox (const bool _index)
 slot to indicate the bounding box is drawn or not called from MainWindow
void isShader0 (const bool _index)
 slot to indicate the use of shader0 called from MainWindow
void isShader1 (const bool _index)
 slot to indicate the use of shader1 called from MainWindow
void isShader2 (const bool _index)
 slot to indicate the use of shader2 called from MainWindow
void isShader3 (const bool _index)
 slot to indicate the use of shader3 called from MainWindow
void isShader4 (const bool _index)
 slot to indicate the use of shader4 called from MainWindow

Public Member Functions

 GLWindow (QWidget *_parent)
 Constructor for GLWindow.

Protected Member Functions

void initializeGL ()
 The following methods must be implimented in the sub class this is called when the window is created.
void resizeGL (const int _w, const int _h)
 this is called whenever the window is re-sized
void paintGL ()
 this is the main gl drawing routine which is called whenever the window needs to be re-drawn

Detailed Description

our main glwindow widget for volume rendering system


Constructor & Destructor Documentation

GLWindow::GLWindow ( QWidget *  _parent  ) 

Constructor for GLWindow.

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

On the mac these are extentions, it's easier to let the pre-processor deal with this than using GLEW / other code as on Win and Linux it works as normal glGen


Member Function Documentation

void GLWindow::initializeGL (  )  [protected]

The following methods must be implimented in the sub class this is called when the window is created.

Note:
these are part of the Qt API so can't be changed to the coding standard so it can't be called initializeGL )
void GLWindow::isAxis ( const bool  _index  )  [slot]

slot to indicate the axis is drawn or not called from MainWindow

Parameters:
[in] _value the new value of the tick box
void GLWindow::isBoundingBox ( const bool  _index  )  [slot]

slot to indicate the bounding box is drawn or not called from MainWindow

Parameters:
[in] _value the new value of the tick box
void GLWindow::isShader0 ( const bool  _index  )  [slot]

slot to indicate the use of shader0 called from MainWindow

Parameters:
[in] _value the new value of the radio button
void GLWindow::isShader1 ( const bool  _index  )  [slot]

slot to indicate the use of shader1 called from MainWindow

Parameters:
[in] _value the new value of the radio button
void GLWindow::isShader2 ( const bool  _index  )  [slot]

slot to indicate the use of shader2 called from MainWindow

Parameters:
[in] _value the new value of the radio button
void GLWindow::isShader3 ( const bool  _index  )  [slot]

slot to indicate the use of shader3 called from MainWindow

Parameters:
[in] _value the new value of the radio button
void GLWindow::isShader4 ( const bool  _index  )  [slot]

slot to indicate the use of shader4 called from MainWindow

Parameters:
[in] _value the new value of the radio button
void GLWindow::resizeGL ( const int  _w,
const int  _h 
) [protected]

this is called whenever the window is re-sized

end of function

Parameters:
[in] _w the width of the resized window
[in] _h the height of the resized window
Note:
these are part of the Qt API so can't be changed to the coding standard so it can't be called resizeGL )
void GLWindow::setIsovalue1 ( const int  _value  )  [slot]

slot to indicate the value of iso-value 1 called from MainWindow

Parameters:
[in] _value the new value of the slider
void GLWindow::setIsovalue2 ( const int  _value  )  [slot]

slot to indicate the value of iso-value 2 called from MainWindow

Parameters:
[in] _value the new value of the slider
void GLWindow::setScale ( const int  _value  )  [slot]

slot to indicate the scale of the scene called from MainWindow

Parameters:
[in] _value the new value of the slider
void GLWindow::setStepsize ( const int  _value  )  [slot]

slot to indicate the value of stepsize called from MainWindow

Parameters:
[in] _value the new value of the slider
void GLWindow::textureChanged ( const int  _index  )  [slot]

slot to indicate the texture selection combo box has changed called from MainWindow

Parameters:
[in] _index the new value of the combo box index

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions
Generated on Fri Aug 19 09:42:55 2011 for quad.pro by  doxygen 1.6.3