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.

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:
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.

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

The documentation for this class was generated from the following files:
Generated on Mon Dec 6 14:15:25 2010 for 3D Volume Visualization by  doxygen 1.6.3