Main Page   Namespace List   Alphabetical List   Data Structures   File List   Data Fields   Globals  

GLWidget Class Reference


Public Types

enum  projTypes { PERSPECTIVE, ZPROJ, XPROJ, YPROJ }

Public Slots

void update ()

Signals

void updated ()

Public Methods

 GLWidget (QWidget *parent, const char *name)
 ~GLWidget ()
QSize sizeHint () const
 arbitrary advised size

QSize minimumSizeHint () const
 arbitrary minimum size


Data Fields

Engineengine
int projectionMode

Protected Methods

void initializeGL ()
void resizeGL (int width, int height)
void paintGL ()
void mousePressEvent (QMouseEvent *e)
void mouseReleaseEvent (QMouseEvent *e)
void mouseMoveEvent (QMouseEvent *e)
void mouseDoubleClickEvent (QMouseEvent *e)

Detailed Description

Ensures binding between opengl classes and the Qt interface. GLWidget inherits QGLWidget which inherits QWidget it gives to OpenGL the possiblity to integrate itself very nicely in most parts of the application. GLWidget contains an instance of the class Engine. There is also a slot supdate to force update and an "updated" signal is sent when it's done


Member Enumeration Documentation

enum GLWidget::projTypes
 

Enumeration values:
PERSPECTIVE 
ZPROJ 
XPROJ 
YPROJ 


Constructor & Destructor Documentation

GLWidget::GLWidget QWidget *    parent,
const char *    name
 

GLWidget constructor, allocates the Engine.

GLWidget::~GLWidget  
 

GLWidget destructor, frees engine


Member Function Documentation

void GLWidget::initializeGL   [protected]
 

This function is called before any OpenGL drawing operation and inits the OpenGL parameters

QSize GLWidget::minimumSizeHint   const
 

arbitrary minimum size

void GLWidget::mouseDoubleClickEvent QMouseEvent *    e [protected]
 

This procedure is called when a double click event is detected, it processes through picking and shows the result in a dialog

void GLWidget::mouseMoveEvent QMouseEvent *    e [protected]
 

Takes the mouse move events and dispatches them to engine->mouse

void GLWidget::mousePressEvent QMouseEvent *    e [protected]
 

Takes the mouse press events and dispatches them to engine->mouse

void GLWidget::mouseReleaseEvent QMouseEvent *    e [protected]
 

Takes the mouse release events and dispatches them to engine->mouse

void GLWidget::paintGL   [protected]
 

Painting procedure Calls engine->display, draws axisLabel and swaps buffers

void GLWidget::resizeGL int    width,
int    height
[protected]
 

Procedure called when the OpenGL window is resized

QSize GLWidget::sizeHint   const
 

arbitrary advised size

void GLWidget::update   [slot]
 

void GLWidget::updated   [signal]
 


Field Documentation

Engine* GLWidget::engine
 

int GLWidget::projectionMode
 

projection mode in projTypes


The documentation for this class was generated from the following files:
Generated on Wed Feb 18 16:32:54 2004 for POVAMA by doxygen1.2.18