The GLRenderWidget class implementing additional OpenGL capabilities on a QWidget.
More...
#include <GLRenderWidget.h>
The GLRenderWidget class implementing additional OpenGL capabilities on a QWidget.
Controller class for GUI rendering windows.
- Author
- Julian Strohmayer 01426125 e1426.nosp@m.125@.nosp@m.stude.nosp@m.nt.t.nosp@m.uwien.nosp@m..ac..nosp@m.at
-
Patrick Gantner 01576033 e1576.nosp@m.033@.nosp@m.stude.nosp@m.nt.t.nosp@m.uwien.nosp@m..ac..nosp@m.at
- Date
- 05.06.2018
Definition at line 31 of file GLRenderWidget.h.
◆ GLRenderWidget()
GLRenderWidget::GLRenderWidget |
( |
QWidget * |
parent | ) |
|
◆ ~GLRenderWidget()
GLRenderWidget::~GLRenderWidget |
( |
| ) |
|
◆ initializeGL()
void GLRenderWidget::initializeGL |
( |
| ) |
|
|
protected |
◆ paintGL()
void GLRenderWidget::paintGL |
( |
| ) |
|
|
protected |
paintGL passes unfiroms to shader program and renders volume into GUI window.
Definition at line 57 of file GLRenderWidget.cpp.
◆ resizeGL()
void GLRenderWidget::resizeGL |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
protected |
resizeGL handles resize events
- Parameters
-
width | openGL viewport width |
height | openGL viewport height |
Definition at line 53 of file GLRenderWidget.cpp.
◆ setOrientation()
void GLRenderWidget::setOrientation |
( |
int |
ori | ) |
|
setOrientation sets the orientation parameter for this rendering window.
- Parameters
-
ori | Direction number (0..top, 1..bottom, 2..left, 3..right, 4..front, 5..back) |
Definition at line 92 of file GLRenderWidget.cpp.
◆ setRegion()
void GLRenderWidget::setRegion |
( |
float |
sep, |
|
|
QColor |
c1, |
|
|
QColor |
c2 |
|
) |
| |
setRegion sets the transfer function parameters for this rendering window.
- Parameters
-
sep | region seperator value (0,1) |
c1 | color of the lower region (less dense) |
c2 | color of the upper region (more dense) |
Definition at line 174 of file GLRenderWidget.cpp.
◆ setRenderObject()
void GLRenderWidget::setRenderObject |
( |
RenderData & |
data | ) |
|
setRenderObject sets vertex positions and indices of the rendered quad.
- Parameters
-
data | vertex positions and indices |
Definition at line 87 of file GLRenderWidget.cpp.
◆ setShader()
void GLRenderWidget::setShader |
( |
const std::string & |
vert, |
|
|
const std::string & |
frag |
|
) |
| |
setShader sets the shader to be used for rendering.
- Parameters
-
vert | location of vertex shader file |
frag | location of fragment shader file |
Definition at line 96 of file GLRenderWidget.cpp.
◆ setVolumeTexture()
void GLRenderWidget::setVolumeTexture |
( |
QOpenGLTexture * |
volume3Dtex | ) |
|
setVolumeTexture sets the volume that should be rendered in this window.
- Parameters
-
volume3Dtex | volume as 3D texture |
Definition at line 170 of file GLRenderWidget.cpp.
◆ indices
QOpenGLBuffer GLRenderWidget::indices |
|
protected |
◆ logger
QOpenGLDebugLogger* GLRenderWidget::logger |
|
protected |
◆ objectData
◆ shader
QOpenGLShaderProgram* GLRenderWidget::shader |
|
protected |
◆ vao
QOpenGLVertexArrayObject GLRenderWidget::vao |
|
protected |
◆ vbo
QOpenGLBuffer GLRenderWidget::vbo |
|
protected |
The documentation for this class was generated from the following files: