Flow Visualization 1.0
|
this class represents a QGLWidget that is used for displaying results using OpenGL More...
#include <myqglwidget.h>
Public Slots | |
void | setProjectionMode (int mode) |
This method sets the projection mode. | |
Public Member Functions | |
MyQGLWidget (QWidget *parent) | |
Protected Member Functions | |
void | initializeGL () |
void | resizeGL (int w, int h) |
This methods gets called on every resize and the first time the OpenGL widget is created. | |
void | paintGL () |
This methods gets called on every resize and the first time the OpenGL widget is created. | |
void | renderTextureWithTF (int channel, int tf_id) |
Protected Attributes | |
int | m_iProjectionMode |
int | m_w |
int | m_h |
this class represents a QGLWidget that is used for displaying results using OpenGL
void MyQGLWidget::paintGL | ( | ) | [protected] |
This methods gets called on every resize and the first time the OpenGL widget is created.
The method takes care of recalculating aspect ration and perspective or orthographic projection.
void MyQGLWidget::resizeGL | ( | int | w, |
int | h | ||
) | [protected] |
This methods gets called on every resize and the first time the OpenGL widget is created.
The method takes care of recalculating aspect ration and perspective or orthographic projection.
w | the width of the new QGLWidget |
h | the height of the new QGLWidget |
void MyQGLWidget::setProjectionMode | ( | int | mode | ) | [slot] |
This method sets the projection mode.
mode | int 0 for perspective or int 1 for orthogonal. |