Kinetic Visualization
 All Classes Functions Variables Pages
Public Slots | Signals | Public Member Functions | Protected Member Functions
OpenGLWidget Class Reference

List of all members.

Public Slots

void setPerspective (int tabIndex)
void initSliceTexture ()
void setXSlicing (int x)
void setYSlicing (int y)
void setZSlicing (int z)
void setXClipping (int x)
void setYClipping (int y)
void setZClipping (int z)
void generateTransferTexture (float *rgbaValues, int textureSize, int type)
void resetTransferTexture ()
void setLight (bool active)
void setPhong (bool active)
void setMip (bool active)
void setAverage (bool active)
void setCompositing (bool active)
void setAdaptive (bool active)
void setStepSize (double step)
void changeIsoSurface (float val)

Signals

void valuesUpdated (glm::vec2 *t, int s)

Public Member Functions

 OpenGLWidget (QWidget *parent=0)
 ~OpenGLWidget ()

Protected Member Functions

void setValuesUpdated (glm::vec2 *values, int size)
void initializeGL ()
void resizeGL (int width, int height)
void paintGL ()
void mousePressEvent (QMouseEvent *event)
void mouseMoveEvent (QMouseEvent *event)
void mouseReleaseEvent (QMouseEvent *event)
void wheelEvent (QWheelEvent *event)

Constructor & Destructor Documentation

OpenGLWidget::OpenGLWidget ( QWidget *  parent = 0)

The constructor for the OpenGlWidget.

OpenGLWidget::~OpenGLWidget ( )

The destructor for the OpenGlWidget.


Member Function Documentation

void OpenGLWidget::changeIsoSurface ( float  val)
slot

Changed the Isovalue to the given parameter.

void OpenGLWidget::generateTransferTexture ( float *  rgbaValues,
int  textureSize,
int  type 
)
slot

Generates a 1D texture for the gives RGBA values.

Parameters:
rgbaValuesThe RGBA values for the texture.
textureSizeThe size of the texture.
void OpenGLWidget::initializeGL ( )
protected

Initialize GLEW and sets up an OpenGL 3.2 context.

void OpenGLWidget::initSliceTexture ( )
slot

Generates a texture from the current volume.

void OpenGLWidget::mouseMoveEvent ( QMouseEvent *  event)
protected

Handles the mouseMoveEvent.

void OpenGLWidget::mousePressEvent ( QMouseEvent *  event)
protected

Handles the mousePressEvents.

void OpenGLWidget::mouseReleaseEvent ( QMouseEvent *  event)
protected

Handles the mouseReleaseEvent.

void OpenGLWidget::paintGL ( )
protected

Renders the scene.

void OpenGLWidget::resetTransferTexture ( )
slot

Deletes the current transfer texture.

void OpenGLWidget::resizeGL ( int  width,
int  height 
)
protected

Sets the new viewport an updates the projection matrix.

Parameters:
widthThe new width of the window, measured in pixel.
heightThe new height of the window, measured in pixel.
void OpenGLWidget::setAdaptive ( bool  active)
slot

Activates or deactivates adaptive - Stepsize according to the given parameter.

Parameters:
activeTrue to activate adaptive Stepsize otherwise false.
void OpenGLWidget::setAverage ( bool  active)
slot

Activates or deactivates X-Ray (averaging) according to the given parameter.

Parameters:
activeTrue to activates X-Ray (averaging) otherwise false.
void OpenGLWidget::setCompositing ( bool  active)
slot

Activates or deactivates compositing according to the given parameter.

Parameters:
activeTrue to activates compositing otherwise false.
void OpenGLWidget::setLight ( bool  active)
slot

Activates or deactivates the light according to the given parameter.

Parameters:
activeTrue to activates the light otherwise false.
void OpenGLWidget::setMip ( bool  active)
slot

Activates or deactivates the maximum intensity projection according to the given parameter.

Parameters:
activeTrue to activates the maximum intensity projection otherwise false.
void OpenGLWidget::setPerspective ( int  tabIndex)
slot

Sets the perspective according to the given Parameter.

Parameters:
tabIndexThe index of the current tab.
void OpenGLWidget::setPhong ( bool  active)
slot

Activates or deactivates the specular light according to the given parameter.

Parameters:
activeTrue to activates the specular light otherwise false.
void OpenGLWidget::setStepSize ( double  step)
slot

Changed the Stepsize to the given parameter.

void OpenGLWidget::setXClipping ( int  x)
slot

Sets the x-coordinate for clipping.

Parameters:
xThe x-coordinate.
void OpenGLWidget::setXSlicing ( int  x)
slot

Sets the x-coordinate for the slice.

Parameters:
xThe x-coordinate of the slice.
void OpenGLWidget::setYClipping ( int  y)
slot

Sets the y-coordinate for clipping.

Parameters:
yThe y-coordinate.
void OpenGLWidget::setYSlicing ( int  y)
slot

Sets the y-coordinate for the slice.

Parameters:
yThe y-coordinate of the slice.
void OpenGLWidget::setZClipping ( int  z)
slot

Sets the z coordinate for clipping.

Parameters:
zThe z-coordinate.
void OpenGLWidget::setZSlicing ( int  z)
slot

Sets the z coordinate for the slice.

Parameters:
zThe z-coordinate of the slice.
void OpenGLWidget::valuesUpdated ( glm::vec2 *  t,
int  s 
)
signal

TF changed

Parameters:
t.. t value
s... scalar value
void OpenGLWidget::wheelEvent ( QWheelEvent *  event)
protected

Handles the wheelEvent.


The documentation for this class was generated from the following files: