#include <GLWidget.h>
Public Member Functions | |
GLWidget (QWidget *parent=0, int width=0, int height=0, bool use2dTexturing=false) | |
~GLWidget () | |
QSize | minimumSizeHint () const |
QSize | sizeHint () const |
void | toggleTexMode (bool use2dTexturing) |
void | setVolume (Volume *vol) |
void | setMirrorX (bool isChecked) |
void | setMirrorY (bool isChecked) |
void | updateTransferFunc (float data[], int size) |
void | updateSlice (int sliceX, int sliceY, int sliceZ, bool modeChanged) |
Protected Member Functions | |
void | initializeGL () |
void | paintGL () |
void | resizeGL (int width, int height) |
Private Member Functions | |
void | makeMeCurrent () |
void | update1dTexture (float data[], int size) |
void | update2dTexture () |
void | update3dTexture () |
const int | GetNextPowerOfTwo (const int iNumber) |
void | deleteTextures (bool del1d, bool del2d, bool del3d) |
Private Attributes | |
int | widgetWidth |
int | widgetHeight |
bool | doMirrorX |
bool | doMirrorY |
Volume * | volume |
ShaderWrap * | shaders |
int | currentSliceX |
int | currentSliceY |
int | currentSliceZ |
bool | use2dTex |
GLuint | texture1d |
GLuint | texture2d |
GLuint | texture3d |
GLWidget::GLWidget | ( | QWidget * | parent = 0 , |
|
int | width = 0 , |
|||
int | height = 0 , |
|||
bool | use2dTexturing = false | |||
) |
GLWidget::~GLWidget | ( | ) |
void GLWidget::deleteTextures | ( | bool | del1d, | |
bool | del2d, | |||
bool | del3d | |||
) | [private] |
const int GLWidget::GetNextPowerOfTwo | ( | const int | iNumber | ) | [private] |
void GLWidget::initializeGL | ( | ) | [protected] |
void GLWidget::makeMeCurrent | ( | ) | [private] |
QSize GLWidget::minimumSizeHint | ( | ) | const |
void GLWidget::paintGL | ( | ) | [protected] |
void GLWidget::resizeGL | ( | int | width, | |
int | height | |||
) | [protected] |
void GLWidget::setMirrorX | ( | bool | isChecked | ) |
void GLWidget::setMirrorY | ( | bool | isChecked | ) |
void GLWidget::setVolume | ( | Volume * | vol | ) |
QSize GLWidget::sizeHint | ( | ) | const |
void GLWidget::toggleTexMode | ( | bool | use2dTexturing | ) |
void GLWidget::update1dTexture | ( | float | data[], | |
int | size | |||
) | [private] |
void GLWidget::update2dTexture | ( | ) | [private] |
void GLWidget::update3dTexture | ( | ) | [private] |
void GLWidget::updateSlice | ( | int | sliceX, | |
int | sliceY, | |||
int | sliceZ, | |||
bool | modeChanged | |||
) |
void GLWidget::updateTransferFunc | ( | float | data[], | |
int | size | |||
) |
int GLWidget::currentSliceX [private] |
int GLWidget::currentSliceY [private] |
int GLWidget::currentSliceZ [private] |
bool GLWidget::doMirrorX [private] |
bool GLWidget::doMirrorY [private] |
ShaderWrap* GLWidget::shaders [private] |
GLuint GLWidget::texture1d [private] |
GLuint GLWidget::texture2d [private] |
GLuint GLWidget::texture3d [private] |
bool GLWidget::use2dTex [private] |
Volume* GLWidget::volume [private] |
int GLWidget::widgetHeight [private] |
int GLWidget::widgetWidth [private] |