OpenGLWidget Class Reference

#include <OpenGLWidget.h>

Collaboration diagram for OpenGLWidget:

Collaboration graph
[legend]

List of all members.

Public Slots

void GenerateGradientTexture (const QGradientStops &)
void setRenderMode (RENDER_MODE renderMode)

Public Member Functions

 OpenGLWidget (QWidget *parent=0, QGLWidget *shareWidget=0)
 ~OpenGLWidget ()
bool create3DTexture (Volume *volume)
void release ()
void paintGL ()
void keyEvent (int key)
void mouseMoveEvent (QMouseEvent *e)
void mousePressEvent (QMouseEvent *e)
void mouseReleaseEvent (QMouseEvent *e)
void setLightValue (LIGHT_MODEL model, float value)

Public Attributes

float m_AxisValue
int m_Axis
float m_rayStepSize

Protected Member Functions

void initializeGL ()
void resizeGL (int width, int height)


Detailed Description

Definition at line 19 of file OpenGLWidget.h.


Constructor & Destructor Documentation

OpenGLWidget::OpenGLWidget ( QWidget *  parent = 0,
QGLWidget *  shareWidget = 0 
)

Public constructor

Definition at line 46 of file OpenGLWidget.cpp.

References m_Axis, m_AxisValue, and m_rayStepSize.

OpenGLWidget::~OpenGLWidget (  ) 

Public destructor

Definition at line 67 of file OpenGLWidget.cpp.

References release().

Here is the call graph for this function:


Member Function Documentation

bool OpenGLWidget::create3DTexture ( Volume volume  ) 

Creates a shared 3D-texture from the given volume.

Definition at line 1305 of file OpenGLWidget.cpp.

References Volume::getSizeX(), Volume::getSizeY(), Volume::getSizeZ(), and Volume::getVolume().

Here is the call graph for this function:

void OpenGLWidget::release (  ) 

Release and reset all data in this widget.

Definition at line 136 of file OpenGLWidget.cpp.

Referenced by ~OpenGLWidget().

void OpenGLWidget::paintGL (  ) 

Render gl-context

Definition at line 374 of file OpenGLWidget.cpp.

References m_Axis, m_AxisValue, NO_RENDER_3D_VIEW, RENDER_3D_VIEW, SLIDER_RANGE, X_AXIS, Y_AXIS, and Z_AXIS.

void OpenGLWidget::keyEvent ( int  key  ) 

Process key-input

Definition at line 1399 of file OpenGLWidget.cpp.

void OpenGLWidget::mouseMoveEvent ( QMouseEvent *  e  ) 

Process mouse-move-event

Definition at line 1527 of file OpenGLWidget.cpp.

References m_Axis, and OPENGL_3D_VIEW.

void OpenGLWidget::mousePressEvent ( QMouseEvent *  e  ) 

Process mouse-press-event

Definition at line 1548 of file OpenGLWidget.cpp.

void OpenGLWidget::mouseReleaseEvent ( QMouseEvent *  e  ) 

Process mouse-release-event

Definition at line 1558 of file OpenGLWidget.cpp.

void OpenGLWidget::setLightValue ( LIGHT_MODEL  model,
float  value 
)

Set Light values from slider in mainwindow

Definition at line 237 of file OpenGLWidget.cpp.

References ambient, diffuse, gloss, m_Axis, OPENGL_3D_VIEW, and specular.

Referenced by MainWindow::setAmbient(), MainWindow::setDiffuse(), MainWindow::setGloss(), and MainWindow::setSpecular().

void OpenGLWidget::GenerateGradientTexture ( const QGradientStops &  gStops  )  [slot]

Generate transfer-function-texture from gradient

Definition at line 1227 of file OpenGLWidget.cpp.

References m_Axis, OPENGL_3D_VIEW, and TF_TEXTURE_SIZE.

void OpenGLWidget::setRenderMode ( RENDER_MODE  renderMode  )  [slot]

Set rendermode

Definition at line 1516 of file OpenGLWidget.cpp.

References m_Axis, and OPENGL_3D_VIEW.

Referenced by MainWindow::setAvg(), MainWindow::setAvgTF(), MainWindow::setComp(), MainWindow::setCompPh(), MainWindow::setFH(), and MainWindow::setMIP().

void OpenGLWidget::initializeGL (  )  [protected]

Override: initialize OpenGL-stuff

Definition at line 152 of file OpenGLWidget.cpp.

References m_Axis, NO_RENDER_3D_VIEW, and RENDER_3D_VIEW.

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

Override: resize OpenGL-view

Definition at line 211 of file OpenGLWidget.cpp.

References m_Axis, and OPENGL_3D_VIEW.


Member Data Documentation

float OpenGLWidget::m_AxisValue

Axis-value for the current plane

Definition at line 234 of file OpenGLWidget.h.

Referenced by OpenGLWidget(), and paintGL().

int OpenGLWidget::m_Axis

Axis for which to apply value or flag for 3d-view

Definition at line 239 of file OpenGLWidget.h.

Referenced by GenerateGradientTexture(), initializeGL(), MainWindow::MainWindow(), mouseMoveEvent(), OpenGLWidget(), paintGL(), resizeGL(), setLightValue(), and setRenderMode().

float OpenGLWidget::m_rayStepSize

Stepsize through volume

Definition at line 244 of file OpenGLWidget.h.

Referenced by OpenGLWidget().


The documentation for this class was generated from the following files:
Generated on Mon Dec 10 18:18:23 2007 for VisLU by  doxygen 1.5.4