Flow Visualization 1.0
Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes

MyQGLWidget Class Reference

this class represents a QGLWidget that is used for displaying results using OpenGL More...

#include <myqglwidget.h>

List of all members.

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

Detailed Description

this class represents a QGLWidget that is used for displaying results using OpenGL


Member Function Documentation

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.

Parameters:
wthe width of the new QGLWidget
hthe height of the new QGLWidget
void MyQGLWidget::setProjectionMode ( int  mode) [slot]

This method sets the projection mode.

Parameters:
modeint 0 for perspective or int 1 for orthogonal.

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