#include <qglvuwindow.h>
Inheritance diagram for QGLVUWindow::

Public Methods | |
| QGLVUWindow (QWidget *parent=0, const char *name=0, WFlags f=WType_TopLevel) | |
| virtual | ~QGLVUWindow () |
| virtual void | Initialize (QGLVUWidget *pGLVU, QString caption="") |
| Sets the QGLVUWidget: Must call at least once. More... | |
| QGLVUWidget * | GetGLVU () |
| Returns a pointer to the QGLVUWidget created by this window. | |
Protected Types | |
| enum | MenuIDs { MENU_FILE, MENU_GLVU, MENU_GLVU_CAMERA_SELECT, MENU_GLVU_CAMERA_DISPLAY, MENU_GLVU_VIEWER_OPTIONS, MENU_GLVU_OPENGL_OPTIONS, MENU_GLVU_NAV_MODE, MENU_GLVU_PATH_RECORD, MENU_NUM_MENUS } |
| Refer to menus using these IDs. | |
| enum | MenuItemIDs { MENUITEM_SNAPSHOT, MENUITEM_TOGGLE_INOUT, MENUITEM_RESET_VIEWS, MENUITEM_TOGGLE_INERTIA, MENUITEM_PRINT_CAMERA, MENUITEM_WIREFRAME, MENUITEM_CULL_FACE, MENUITEM_WHICH_CULL_FACE, MENUITEM_SMOOTH_SHADING, MENUITEM_LIGHTING, MENUITEM_MATERIALS, MENUITEM_PATH_SET_FILENAME, MENUITEM_PATH_RECORD, MENUITEM_PATH_STOP, MENUITEM_PATH_PLAY, MENUITEM_NUM_ITEMS } |
| Refer to menu items using these IDs. | |
| enum | StatusLabelIDs { STATUS_LABEL_NAV_MODE, STATUS_NUM_LABELS } |
| IDs for status bar labels. | |
Protected Slots | |
| void | CameraMenuHandler (int iMenuID) |
| Camera Selection Menu Handler. | |
| void | CameraDisplayMenuHandler (int iMenuID) |
| Camera Display Toggle Menu Handler. | |
| void | ViewerOptionsMenuHandler (int iMenuID) |
| Viewer Options Menu Handler. | |
| void | OpenGLOptionsMenuHandler (int iMenuID) |
| GL Options Menu Handler. | |
| void | NavigationMenuHandler (int iMenuID) |
| Navigation Mode Menu Handler. | |
| void | PathRecordMenuHandler (int iMenuID) |
| Path Recording/Playback Menu Handler. | |
| void | FPSUpdate (float rFPS) |
| Receives frame rate updates from the QGLVUWidget for display. | |
Protected Methods | |
| virtual void | _InitializeMenus () |
| Initializes QGLVUWindow menus. | |
Protected Attributes | |
| QGLVUWidget * | _pGLVU |
| the GLVU Widget. | |
| QToolBar * | _pMenuToolbar |
| toolbar used to make dockable menu. | |
| QMenuBar * | _pMenubar |
| the actual menu bar. | |
| QPopupMenu * | _pPopupMenus [MENU_NUM_MENUS] |
| all of the submenus. | |
| QLabel * | _pStatusLabels [STATUS_NUM_LABELS] |
| labels on the status bar. | |
| QString | _navModeText [QGLVUWidget::NAV_MODE_NUM_MODES] |
| text for nav mode labels. | |
This class implements a main window with a menu toolbar and keyboard accelerators. Menus for GLVU functionality are implemented here.
|
||||||||||||||||
|
Constructs an empty main window with no menus or toolbar. Call Initialize() to create give the window a main QGLVUWidget as well as to create the menus and status bar, and to initialize the framerate counter, |
|
|
Destroys the QGLVUWindow and frees any allocated resources |
|
||||||||||||
|
Sets the QGLVUWidget: Must call at least once. pGLVU specifies the QGLVUWidget that this window holds, and initializes menus, status bar, and frame rate counter. This method must be called at least once with a valid QGLVUWidget pointer, because the menus connect to QGLVUWidget calls. Can optionally set the window caption with caption. |
1.2.10 written by Dimitri van Heesch,
© 1997-2001