#include <GLFramework.h>
This is the primary application GUI class. All primary gui controls, as well as the openGL viewport are instantiated and placed into a common layout here. This class provides functions for loading image sequences, controlling the view via a virtual trackball control, effect selection and controls. Also takes care of all necessary initialization/event handling at the top level of the application.
|
|
|
Destroys the widget. Most cleanup is done via cleanUp().
|
|
|
|
Clears the status display |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Updates memory tracker indicators with current values. The green/red arrow indicator is simply for additional visual reference and shows whether the amount of free memory is currently increasing or decreasing.
|
|
Called when "Load Images..." button is clicked or a new effect requiring a different set of textures is selected. This calls the file loading dialog, up to 3 times, depending on requirements of the current effect, and loads the specified files into memory. The loaded files are automatically converted into an OpenGL-compatible image format and can be subsequently acessed through the fetch*Image() family of functions. The scene is then re-rendered with new textures applied.
|
|
Called when the "Quit" button is clicked. Presents the user with a "yes/no" dialog box asking whether or not he/she really wants to exit the application. Will stop the animation of the currently active effect before showing the dialog box.
|
|
|
|
This function performs any post-construction initialization, just before the window is displayed. Some additional code may be included here later, for now it's empty. |
|
This carries out all essential GUI initialization by creating the components of the main window and establishing any necessary slot/signal connections.
|
|
This function performs all necessary clean-up upon exiting the program
|
|
|