#include <RCWidget.h>
Public Member Functions | |
| RCWidget (QWidget *parent=0, int width=0, int height=0) | |
| ~RCWidget () | |
| QSize | minimumSizeHint () const |
| QSize | sizeHint () const |
| void | setVolume (Volume *vol) |
| void | updateTransferFunc (float data[], int size) |
| void | updateLightValues (QColor *ka, QColor *kd, QColor *ks, int shininess) |
| void | updateLightVector (float x, float y, float z, bool showLV, bool showVV) |
| void | drawLightVector () |
| void | drawViewVector () |
| Vector | calculateViewVector () |
| void | updateViewVector () |
| bool | makeScreenshot (QFile *file) |
| void | setShaderTranslucency (int translucency) |
| void | setShaderQuality (int quality) |
| void | setShaderViewVector (Vector view) |
| void | setClipX (int x) |
| void | setClipY (int y) |
| void | setClipZ (int z) |
| void | setInvertX (bool invX) |
| void | setInvertY (bool invY) |
| void | setInvertZ (bool invZ) |
Protected Member Functions | |
| void | initializeGL () |
| void | paintGL () |
| void | resizeGL (int width, int height) |
| void | mousePressEvent (QMouseEvent *event) |
| void | mouseMoveEvent (QMouseEvent *event) |
| void | wheelEvent (QWheelEvent *event) |
Private Member Functions | |
| void | makeMeCurrent () |
| void | updateFBO () |
| void | checkFBO () |
| void | initGLEW () |
| void | renderResult () |
| void | vertex (float x, float y, float z, GLuint texUnit) |
| void | drawCube (float x=1.0f, float y=1.0f, float z=1.0f, int texUnit=1) |
| void | drawFullscreenQuad (int texUnit=1) |
| void | update1dTexture (float data[], int size) |
| void | update2dTextures () |
| void | update3dTextures () |
| const int | GetNextPowerOfTwo (const int iNumber) |
| void | deleteTextures (bool del1d, bool del2d, bool del3d) |
| void | setUniformScale (float factor) |
| void | setXRotation (float angle) |
| void | setYRotation (float angle) |
| void | setZRotation (float angle) |
| void | setTranslate (float x, float y) |
| void | normalizeAngle (float *angle) |
Private Attributes | |
| int | widgetWidth |
| int | widgetHeight |
| Volume * | volume |
| ShaderWrap * | shaders |
| GLuint | texture1d |
| GLuint | texture3d |
| GLuint | texture3d_grad |
| GLuint | texture2d_backfaces |
| GLuint | texture2d_result |
| GLuint | frameBuffer |
| GLuint | renderBuffer |
| QPoint | mousePos |
| float | xRot |
| float | yRot |
| float | zRot |
| float | xScale |
| float | yScale |
| float | zScale |
| float | maxZoomSize |
| float | clipX |
| float | clipY |
| float | clipZ |
| float | moveX |
| float | moveY |
| bool | invertX |
| bool | invertY |
| bool | invertZ |
| bool | showLightVector |
| bool | showViewVector |
| GLfloat | lightAmbient [4] |
| GLfloat | lightDiffuse [4] |
| GLfloat | lightSpecular [4] |
| GLfloat | lightPosition [4] |
| GLfloat | lightSpotExp [1] |
| float | lx |
| float | ly |
| float | lz |
| RCWidget::RCWidget | ( | QWidget * | parent = 0, |
|
| int | width = 0, |
|||
| int | height = 0 | |||
| ) |
| RCWidget::~RCWidget | ( | ) |
| Vector RCWidget::calculateViewVector | ( | ) |
| void RCWidget::checkFBO | ( | ) | [private] |
| void RCWidget::deleteTextures | ( | bool | del1d, | |
| bool | del2d, | |||
| bool | del3d | |||
| ) | [private] |
| void RCWidget::drawCube | ( | float | x = 1.0f, |
|
| float | y = 1.0f, |
|||
| float | z = 1.0f, |
|||
| int | texUnit = 1 | |||
| ) | [private] |
| void RCWidget::drawFullscreenQuad | ( | int | texUnit = 1 |
) | [private] |
| void RCWidget::drawLightVector | ( | ) |
| void RCWidget::drawViewVector | ( | ) |
| const int RCWidget::GetNextPowerOfTwo | ( | const int | iNumber | ) | [private] |
| void RCWidget::initGLEW | ( | ) | [private] |
| void RCWidget::initializeGL | ( | ) | [protected] |
| void RCWidget::makeMeCurrent | ( | ) | [private] |
| bool RCWidget::makeScreenshot | ( | QFile * | file | ) |
| QSize RCWidget::minimumSizeHint | ( | ) | const |
| void RCWidget::mouseMoveEvent | ( | QMouseEvent * | event | ) | [protected] |
| void RCWidget::mousePressEvent | ( | QMouseEvent * | event | ) | [protected] |
| void RCWidget::normalizeAngle | ( | float * | angle | ) | [private] |
| void RCWidget::paintGL | ( | ) | [protected] |
| void RCWidget::renderResult | ( | ) | [private] |
| void RCWidget::resizeGL | ( | int | width, | |
| int | height | |||
| ) | [protected] |
| void RCWidget::setClipX | ( | int | x | ) |
| void RCWidget::setClipY | ( | int | y | ) |
| void RCWidget::setClipZ | ( | int | z | ) |
| void RCWidget::setInvertX | ( | bool | invX | ) |
| void RCWidget::setInvertY | ( | bool | invY | ) |
| void RCWidget::setInvertZ | ( | bool | invZ | ) |
| void RCWidget::setShaderQuality | ( | int | quality | ) |
| void RCWidget::setShaderTranslucency | ( | int | translucency | ) |
| void RCWidget::setShaderViewVector | ( | Vector | view | ) |
| void RCWidget::setTranslate | ( | float | x, | |
| float | y | |||
| ) | [private] |
| void RCWidget::setUniformScale | ( | float | factor | ) | [private] |
| void RCWidget::setVolume | ( | Volume * | vol | ) |
| void RCWidget::setXRotation | ( | float | angle | ) | [private] |
| void RCWidget::setYRotation | ( | float | angle | ) | [private] |
| void RCWidget::setZRotation | ( | float | angle | ) | [private] |
| QSize RCWidget::sizeHint | ( | ) | const |
| void RCWidget::update1dTexture | ( | float | data[], | |
| int | size | |||
| ) | [private] |
| void RCWidget::update2dTextures | ( | ) | [private] |
| void RCWidget::update3dTextures | ( | ) | [private] |
| void RCWidget::updateFBO | ( | ) | [private] |
| void RCWidget::updateLightValues | ( | QColor * | ka, | |
| QColor * | kd, | |||
| QColor * | ks, | |||
| int | shininess | |||
| ) |
| void RCWidget::updateLightVector | ( | float | x, | |
| float | y, | |||
| float | z, | |||
| bool | showLV, | |||
| bool | showVV | |||
| ) |
| void RCWidget::updateTransferFunc | ( | float | data[], | |
| int | size | |||
| ) |
| void RCWidget::updateViewVector | ( | ) |
| void RCWidget::vertex | ( | float | x, | |
| float | y, | |||
| float | z, | |||
| GLuint | texUnit | |||
| ) | [private] |
| void RCWidget::wheelEvent | ( | QWheelEvent * | event | ) | [protected] |
float RCWidget::clipX [private] |
float RCWidget::clipY [private] |
float RCWidget::clipZ [private] |
GLuint RCWidget::frameBuffer [private] |
bool RCWidget::invertX [private] |
bool RCWidget::invertY [private] |
bool RCWidget::invertZ [private] |
GLfloat RCWidget::lightAmbient[4] [private] |
GLfloat RCWidget::lightDiffuse[4] [private] |
GLfloat RCWidget::lightPosition[4] [private] |
GLfloat RCWidget::lightSpecular[4] [private] |
GLfloat RCWidget::lightSpotExp[1] [private] |
float RCWidget::lx [private] |
float RCWidget::ly [private] |
float RCWidget::lz [private] |
float RCWidget::maxZoomSize [private] |
QPoint RCWidget::mousePos [private] |
float RCWidget::moveX [private] |
float RCWidget::moveY [private] |
GLuint RCWidget::renderBuffer [private] |
ShaderWrap* RCWidget::shaders [private] |
bool RCWidget::showLightVector [private] |
bool RCWidget::showViewVector [private] |
GLuint RCWidget::texture1d [private] |
GLuint RCWidget::texture2d_backfaces [private] |
GLuint RCWidget::texture2d_result [private] |
GLuint RCWidget::texture3d [private] |
GLuint RCWidget::texture3d_grad [private] |
Volume* RCWidget::volume [private] |
int RCWidget::widgetHeight [private] |
int RCWidget::widgetWidth [private] |
float RCWidget::xRot [private] |
float RCWidget::xScale [private] |
float RCWidget::yRot [private] |
float RCWidget::yScale [private] |
float RCWidget::zRot [private] |
float RCWidget::zScale [private] |
1.5.7.1