#include <GLWidget.hpp>
List of all members.
Detailed Description
Class which represents the OpenGL rendering window. In this Class all needed functions for handling the volume and slice rendering are implemented.
- Author:
- Christian Hirsch
-
Clemens Roegner
Constructor & Destructor Documentation
GLWidget::GLWidget |
( |
QWidget * |
parent = 0 ) |
|
Constructor. This constructor creates a new OpenGL render window.
- Parameters:
-
parent | Parent QWidget element. |
GLWidget::~GLWidget |
( |
) |
[virtual] |
Destructor. Releases all the needed (graphics) memory.
Member Function Documentation
void GLWidget::alphaArrowChanged |
( |
int |
alpha ) |
[slot] |
Changes the alpha value of the arrows.
- Parameters:
-
alpha | The new alpha value. |
void GLWidget::alphaStreamChanged |
( |
int |
alpha ) |
[slot] |
Changes the alpha value of the arrows.
- Parameters:
-
alpha | The new alpha value. |
vec3 GLWidget::calcEulerPos |
( |
vec3 |
pos ) |
[protected] |
Calculates the next position with the Euler interpolation Method.
- Parameters:
-
- Returns:
- The vector to the next position.
vec3 GLWidget::calcRungeKuttaPos |
( |
vec3 |
pos ) |
[protected] |
Calculates the next position with the Runge-Kutta interpolation Method.
- Parameters:
-
- Returns:
- The vector to the next position.
void GLWidget::channelChanged |
( |
int |
index ) |
[slot] |
Function to change the displayed channel.
- Parameters:
-
index | Index of the channel. |
void GLWidget::dsepValueChanged |
( |
double |
_dsep ) |
[slot] |
Changes seperation value for the streamlines.
- Parameters:
-
void GLWidget::dtestValueChanged |
( |
double |
_dtest ) |
[slot] |
Changes test value for the streamlines.
- Parameters:
-
void GLWidget::dtValueChanged |
( |
double |
dt ) |
[slot] |
Changes dt value for the interpolation methods.
- Parameters:
-
void GLWidget::generateStreamline |
( |
vec3 |
seedingPoint ) |
[protected] |
Generate streamline function. This function creates one streamline.
- Parameters:
-
seedingPoint | The point of which a streamline should be created. |
void GLWidget::initializeGL |
( |
) |
[protected] |
Initializes all data needed for rendering (including devil + glut).
void GLWidget::interpolationMethodChanged |
( |
bool |
euler ) |
[slot] |
Changes the interpolation method for the streamlines.
- Parameters:
-
euler | If true, then the Euler method will be used, else the RK method is used. |
void GLWidget::loadData |
( |
const std::string & |
strFilename ) |
|
Loads new flow data.
- Parameters:
-
strFilename | String to the path of the volume data. |
void GLWidget::numArrowChanged |
( |
int |
glyph ) |
[slot] |
Changes the number of arrows which should be drawn.
- Parameters:
-
numArrows | The number of arrows in one line and of lines. numArrows * numArrows of arrows will be darwn. |
void GLWidget::numChannelsChanged |
( |
int |
channels ) |
[signal] |
Signal which is emitted when the number of channels has changed.
- Parameters:
-
channels | The new number of channels. |
void GLWidget::paintGL |
( |
) |
[protected] |
Render function. Renders either the slices or the full volume data.
void GLWidget::paintMethodChanged |
( |
bool |
glyph ) |
[slot] |
Changes the paint method (normal lines vs glyph mapping).
- Parameters:
-
glyph | If true the glyph maps are drawn, else normal lines. |
void GLWidget::renderArrows |
( |
) |
[protected] |
void GLWidget::renderStreamlines |
( |
) |
[protected] |
Streamline render funtcion. This function calculates new streamlines with the alogrithm to generate "Evenly-Spaced Streamlines of Arbitrary Density".
void GLWidget::resizeGL |
( |
int |
width, |
|
|
int |
height |
|
) |
| [protected] |
Initializes the OpenGL render window when the window is resized.
- Parameters:
-
width | The new width of the render window. |
height | The new height of the render window. |
void GLWidget::saveScreenshot |
( |
) |
[slot] |
This function saves a screenhot in the programs folder. The file name is created automatically.
void GLWidget::setArrowColor |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b |
|
) |
| |
Changes the colors of the arrows.
- Parameters:
-
r | The new red value. |
g | The new green value. |
b | The new blue value. |
void GLWidget::setStreamColor |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b |
|
) |
| |
Changes the colors of the streams.
- Parameters:
-
r | The new red value. |
g | The new green value. |
b | The new blue value. |
void GLWidget::setTransferValues |
( |
float * |
_values ) |
|
Sets new values for the transferfunction.
- Parameters:
-
*_values | Pointer to the first element of a 4096 element float array. |
void GLWidget::switchArrowState |
( |
bool |
state ) |
[slot] |
Changes the arrow state to [not] draw the arrows.
- Parameters:
-
state | True if arrows should be drawn. |
void GLWidget::switchStreamlineState |
( |
bool |
state ) |
[slot] |
Changes the streamline state to [not] draw the streamlines.
- Parameters:
-
state | True if streamlines should be drawn. |
The documentation for this class was generated from the following files: