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 |
GLDriverQt * | getGLDriverQtPtr () |
Protected Member Functions | |
void | initializeGL () |
void | paintGL () |
void | resizeGL (int width, int height) |
void | mousePressEvent (QMouseEvent *event) |
void | mouseMoveEvent (QMouseEvent *event) |
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
Definition at line 54 of file GLDisplayListWidget.h.