Main class for OpenGL logic (OpenGL Widget).
More...
#include <myclass.h>
List of all members.
Public Slots |
|
void | toggleDraw () |
| | GUI function to toggle draw.
|
| void | changeValue (float i) |
| | GUI function to change the slice plane.
|
| void | SetTransferFunction (const QImage &i) |
| | GUI function to set the transfer function.
|
|
void | loadDataFile () |
| | GUI function to open a new data file.
|
| void | ChangeAxis (int id) |
| | GUI function to change the slice axis.
|
|
void | ChangeCompositingMode (int id) |
|
void | ChangeShading (bool shade) |
|
void | ChangeStepSize (float s) |
Public Member Functions |
|
| MyClass (QWidget *parent=NULL) |
Protected Member Functions |
|
void | initializeGL () |
| | Initializes OpenGL, loads the volume, creates the textures and prepares the shader.
|
| void | resizeGL (int w, int h) |
| | Window resize callback.
|
|
void | paintGL () |
| | Paints everything to screen.
|
|
void | mousePressEvent (QMouseEvent *event) |
|
void | mouseMoveEvent (QMouseEvent *event) |
|
void | keyPressEvent (QKeyEvent *event) |
|
void | mouseReleaseEvent (QMouseEvent *event) |
Protected Attributes |
|
GLhandleARB | my_program |
|
Arguments | g_argArguments |
|
Volume | g_Volume |
|
unsigned int | g_uExampleTexture |
|
unsigned int | g_gradientTexture |
|
GLuint | FBTextureFront |
|
GLuint | FBTextureBack |
|
GLuint | FBufferFront |
|
GLuint | FBufferBack |
|
float | g_fCoordZ |
|
int | mode |
|
int | compMode |
|
int | shadeMode |
|
float | stepSize |
|
float | xyxoffset |
|
float | xyyoffset |
|
float | yzyoffset |
|
float | yzzoffset |
|
float | xzxoffset |
|
float | xzzoffset |
|
GLuint | transferTexture |
|
QImage | transferImage |
|
bool | draw |
Detailed Description
Main class for OpenGL logic (OpenGL Widget).
- Author:
- Manuel Keglevic, Thomas Schulz
- Date:
- 05.12.2010
Member Function Documentation
| void MyClass::ChangeAxis |
( |
int |
id ) |
[slot] |
GUI function to change the slice axis.
- Parameters:
-
| void MyClass::changeValue |
( |
float |
i ) |
[slot] |
GUI function to change the slice plane.
- Parameters:
-
| i | The coordinate of the slice plane. |
| void MyClass::resizeGL |
( |
int |
w, |
|
|
int |
h |
|
) |
| [protected] |
Window resize callback.
Sets the glViewport and the framebuffer textures.
- Parameters:
-
| w | The window width. |
| h | The window height. |
| void MyClass::SetTransferFunction |
( |
const QImage & |
i ) |
[slot] |
GUI function to set the transfer function.
- Parameters:
-
The documentation for this class was generated from the following files:
- vislu/qt-test/myclass.h
- vislu/qt-test/myclass.cpp