GLDisplayListWidget Class Reference

This class implements an Qt based OpenGL widget that renders UCdriver and UCdriverEx graphics calls. More...

List of all members.

Public Slots

void setXRotation (int angle)
void setYRotation (int angle)
void setZRotation (int angle)

Public Member Functions

 GLDisplayListWidget (QWidget *parent=0)
 ~GLDisplayListWidget ()
QSize minimumSizeHint () const
QSize sizeHint () const
GLDriverQtgetGLDriverQtPtr ()

Protected Member Functions

void initializeGL ()
void paintGL ()
void resizeGL (int width, int height)
void mousePressEvent (QMouseEvent *event)
void mouseMoveEvent (QMouseEvent *event)


Detailed Description

This class implements an Qt based OpenGL widget that renders UCdriver and UCdriverEx graphics calls.

This class is derived from QGLWidget. See the Qt reference guide for information about member functions associated with QGLwidget.

The UCdriver (UCdriverEx) interface is provided by an internal instance of a GLDriverQt. Access to this interface is through a pointer obtained with the getGLDriverQtPtr() member function.

Sample Code Fragment:

//   Instantiate a GLDisplayListWidget in the containing window constructor 

     glWidget = new GLDisplayListWidget;     

//
//   Elsewhere in containing window class (typically in a response function)
//   capture the GLDriverQt pointer. 
//
     GLDriverQt* Gldriver = glWidget->getGLDriverQtPtr(); 

//   Use the  start() to open up a GL display list and then create
//   graphics by calling UCdriver or UCdriverEx methods. Close
//   the list and induce a repaint of glWidget by calling frame(). 

     Gldriver->start();
     
     Gldriver->point(...);          //           
     Gldriver->lines(...);          // UCdriver or UCdriverEx calls
     Gldriver->pointEx(...);        //

     Gldriver->frame();

Source: GLDisplayListWidget.h, GLDisplayListWidget.cpp

Author:
Chris Anderson (C) UCLA 2007-09
Version:
2/16/09

Definition at line 54 of file GLDisplayListWidget.h.


The documentation for this class was generated from the following files:
Generated on Tue Feb 17 11:57:13 2009 for QtGLgraphics by  doxygen 1.5.1-p1