GLWidget Class Reference

#include <GLWidget.h>

Collaboration diagram for GLWidget:
[legend]

List of all members.

Public Slots

virtual void updateGL ()
void changeVolume (Volume *volume)
void changeTransferFunction (unsigned int *transferFunction, int length)

Public Member Functions

 GLWidget (Ui_MainWindow uiMainWindow, QWidget *parent=0)
 ~GLWidget ()
void timerEvent (QTimerEvent *event)
QSize minimumSizeHint () const
QSize sizeHint () const
void initializeGL ()
void paintGL ()
void resizeGL (int width, int height)
void mousePressEvent (QMouseEvent *event)
void mouseMoveEvent (QMouseEvent *event)
void wheelEvent (QWheelEvent *event)

Protected Slots

void view2D ()
void view3D ()
void shaderChanged (QAction *qAction)

Private Member Functions

void switchView (GLView *newView)

Private Attributes

bool updateAsked
int timerIdentifier
int lastWidth
int lastHeight
GLViewglCurrentView
GLViewgl2DView
GLViewgl3DView
VolumeDesc volumeDesc
TransferFunctionDesc transferFunctionDesc
StateDesc stateDesc


Detailed Description

Definition at line 13 of file GLWidget.h.


Constructor & Destructor Documentation

GLWidget::GLWidget ( Ui_MainWindow  uiMainWindow,
QWidget *  parent = 0 
)

GLWidget::~GLWidget (  ) 

Definition at line 25 of file GLWidget.cpp.

References gl2DView, gl3DView, glCurrentView, timerIdentifier, and GLView::uninitializeGL().


Member Function Documentation

void GLWidget::changeTransferFunction ( unsigned int *  transferFunction,
int  length 
) [slot]

Definition at line 215 of file GLWidget.cpp.

References TransferFunctionDesc::set(), transferFunctionDesc, and updateGL().

void GLWidget::changeVolume ( Volume volume  )  [slot]

void GLWidget::initializeGL (  ) 

Definition at line 57 of file GLWidget.cpp.

References glCurrentView, and GLView::initializeGL().

QSize GLWidget::minimumSizeHint (  )  const

Definition at line 47 of file GLWidget.cpp.

void GLWidget::mouseMoveEvent ( QMouseEvent *  event  ) 

Definition at line 138 of file GLWidget.cpp.

References glCurrentView, and GLView::mouseMoveEvent().

void GLWidget::mousePressEvent ( QMouseEvent *  event  ) 

Definition at line 133 of file GLWidget.cpp.

References glCurrentView, and GLView::mousePressEvent().

void GLWidget::paintGL (  ) 

Definition at line 82 of file GLWidget.cpp.

References glCurrentView, and GLView::paintGL().

void GLWidget::resizeGL ( int  width,
int  height 
)

Definition at line 125 of file GLWidget.cpp.

References glCurrentView, lastHeight, lastWidth, and GLView::resizeGL().

void GLWidget::shaderChanged ( QAction *  qAction  )  [protected, slot]

Definition at line 246 of file GLWidget.cpp.

References StateDesc::setShaderIndex(), stateDesc, and updateGL().

Referenced by GLWidget().

QSize GLWidget::sizeHint (  )  const

Definition at line 52 of file GLWidget.cpp.

void GLWidget::switchView ( GLView newView  )  [private]

void GLWidget::timerEvent ( QTimerEvent *  event  ) 

Definition at line 38 of file GLWidget.cpp.

References updateAsked, and updateGL().

void GLWidget::updateGL (  )  [virtual, slot]

Definition at line 33 of file GLWidget.cpp.

References updateAsked.

Referenced by changeTransferFunction(), changeVolume(), shaderChanged(), switchView(), and timerEvent().

void GLWidget::view2D (  )  [protected, slot]

Definition at line 230 of file GLWidget.cpp.

References gl2DView, glCurrentView, and switchView().

Referenced by GLWidget().

void GLWidget::view3D (  )  [protected, slot]

Definition at line 238 of file GLWidget.cpp.

References gl3DView, glCurrentView, and switchView().

Referenced by GLWidget().

void GLWidget::wheelEvent ( QWheelEvent *  event  ) 

Definition at line 143 of file GLWidget.cpp.

References glCurrentView, and GLView::wheelEvent().


Member Data Documentation

Definition at line 49 of file GLWidget.h.

Referenced by GLWidget(), view2D(), and ~GLWidget().

Definition at line 49 of file GLWidget.h.

Referenced by GLWidget(), view3D(), and ~GLWidget().

int GLWidget::lastHeight [private]

Definition at line 48 of file GLWidget.h.

Referenced by resizeGL(), and switchView().

int GLWidget::lastWidth [private]

Definition at line 48 of file GLWidget.h.

Referenced by resizeGL(), and switchView().

Definition at line 52 of file GLWidget.h.

Referenced by GLWidget(), and shaderChanged().

Definition at line 46 of file GLWidget.h.

Referenced by GLWidget(), and ~GLWidget().

Definition at line 51 of file GLWidget.h.

Referenced by changeTransferFunction(), and GLWidget().

bool GLWidget::updateAsked [private]

Definition at line 45 of file GLWidget.h.

Referenced by GLWidget(), timerEvent(), and updateGL().

Definition at line 50 of file GLWidget.h.

Referenced by changeVolume(), and GLWidget().


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

Generated on Wed Dec 10 13:50:14 2008 for Tido Visualization by  doxygen 1.5.7.1