#include <GLWidget.h>
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 |
GLView * | glCurrentView |
GLView * | gl2DView |
GLView * | gl3DView |
VolumeDesc | volumeDesc |
TransferFunctionDesc | transferFunctionDesc |
StateDesc | stateDesc |
Definition at line 13 of file GLWidget.h.
GLWidget::GLWidget | ( | Ui_MainWindow | uiMainWindow, | |
QWidget * | parent = 0 | |||
) |
Definition at line 7 of file GLWidget.cpp.
References gl2DView, gl3DView, glCurrentView, GLView::setData(), shaderChanged(), stateDesc, timerIdentifier, transferFunctionDesc, updateAsked, view2D(), view3D(), and volumeDesc.
GLWidget::~GLWidget | ( | ) |
Definition at line 25 of file GLWidget.cpp.
References gl2DView, gl3DView, glCurrentView, timerIdentifier, and GLView::uninitializeGL().
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] |
Definition at line 148 of file GLWidget.cpp.
References VolumeDesc::depth, Volume::getData(), Volume::getDepth(), Volume::getHeight(), Volume::getWidth(), VolumeDesc::height, VolumeDesc::realDepth, VolumeDesc::realHeight, VolumeDesc::realWidth, VolumeDesc::set(), updateGL(), volumeDesc, VolumeDesc::volumeTexture, VolumeDesc::width, VolumeDesc::xOffset, VolumeDesc::yOffset, and VolumeDesc::zOffset.
void GLWidget::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 | ( | ) |
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] |
Definition at line 221 of file GLWidget.cpp.
References glCurrentView, GLView::initializeGL(), lastHeight, lastWidth, GLView::resizeGL(), GLView::uninitializeGL(), and updateGL().
void GLWidget::timerEvent | ( | QTimerEvent * | event | ) |
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 | ) |
GLView * GLWidget::gl2DView [private] |
GLView * GLWidget::gl3DView [private] |
GLView* GLWidget::glCurrentView [private] |
Definition at line 49 of file GLWidget.h.
Referenced by GLWidget(), initializeGL(), mouseMoveEvent(), mousePressEvent(), paintGL(), resizeGL(), switchView(), view2D(), view3D(), wheelEvent(), and ~GLWidget().
int GLWidget::lastHeight [private] |
int GLWidget::lastWidth [private] |
StateDesc GLWidget::stateDesc [private] |
int GLWidget::timerIdentifier [private] |
bool GLWidget::updateAsked [private] |
VolumeDesc GLWidget::volumeDesc [private] |