GLWindow Class Reference

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

#include <GLWindow.h>

List of all members.

Public Slots

void reset ()
 called when the reset button is pressed when the drawn model is set to slice, the function is to reset the position of the slice called from MainWindow
void textureChanged (const int _index)
 slot to indicate the texture selection combo box has changed called from MainWindow
void transferF1 (const bool _index)
 slot to indicate the transfer function 1 tick box has been activated or not called from MainWindow
void transferF2 (const bool _index)
 slot to indicate the transfer function 2 tick box has been activated or not called from MainWindow
void transferF3 (const bool _index)
 slot to indicate the transfer function 3 tick box has been activated or not called from MainWindow
void axisIsX (const bool _index)
 slot to indicate the axis x is been chosen or not for slice drawn mode called from MainWindow
void axisIsY (const bool _index)
 slot to indicate the axis y is been chosen or not for slice drawn mode called from MainWindow
void axisIsZ (const bool _index)
 slot to indicate the axis z is been chosen or not for slice drawn mode called from MainWindow
void axisIsDia (const bool _index)
 slot to indicate the slice moves along diagonal direction 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 isSlice (const bool _index)
 slot to indicate the drawn mode is slice or not called from MainWindow
void toggleAnimation ()
 called when the stop/play button is pressed to stop or play the slice moving in the slice mode called from MainWindow
void setColour (const float _r, const float _g, const float _b)
 called when the colour button is pressed and a new colour selected sets a new current color called from MainWindow
void setScale (const int _value)
 slot to indicate the scale of the scene 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::axisIsDia ( const bool  _index  )  [slot]

slot to indicate the slice moves along diagonal direction called from MainWindow

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

slot to indicate the axis x is been chosen or not for slice drawn mode called from MainWindow

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

slot to indicate the axis y is been chosen or not for slice drawn mode called from MainWindow

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

slot to indicate the axis z is been chosen or not for slice drawn mode called from MainWindow

Parameters:
[in] _value the new value of the tick box
void GLWindow::initializeGL (  )  [protected]

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

end of function

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::isSlice ( const bool  _index  )  [slot]

slot to indicate the drawn mode is slice or not called from MainWindow

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

this is called whenever the window is re-sized

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::setColour ( const float  _r,
const float  _g,
const float  _b 
) [slot]

called when the colour button is pressed and a new colour selected sets a new current color called from MainWindow

Parameters:
[in] _r the value of red
[in] _g the value of green
[in] _b the value of blue
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::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
void GLWindow::transferF1 ( const bool  _index  )  [slot]

slot to indicate the transfer function 1 tick box has been activated or not called from MainWindow

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

slot to indicate the transfer function 2 tick box has been activated or not called from MainWindow

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

slot to indicate the transfer function 3 tick box has been activated or not called from MainWindow

Parameters:
[in] _value the new value of the tick box

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