#include <iostream>#include <glui.h>#include <glut.h>#include <glu.h>#include <sstream>#include "LifeVariables.h"#include "utilityfuncs.h"#include "Arrow2d.h"#include "euler.h"#include "OrthographicCamera.h"Functions | |
| void | showGlDebugMessages () |
| void | renderString (int x, int y, void *font, float nr) |
| void | renderString (int x, int y, void *font, string text) |
| void | display () |
| void | reshape (int x, int y) |
| void | idle () |
| void | enterUnloadedMode () throw (Error) |
| void | enterLoadedMode () throw (Error) |
| void | enterArrowPlotMode () throw (Error) |
| void | enterStreamlinePlotMode () throw (Error) |
| void | eventListener (int control) |
| void | deInit () |
| void | keyEvent (unsigned char key, int x, int y) |
| void | mouseEvent (int button, int state, int x, int y) |
| void | main (int argc, char *argv[]) |
Variables | |
| float | mouseX = 0 |
| float | mouseY = 0 |
| int | mainWindow = 0 |
| bool | debugMode = DEBUG_MODE |
| MenuBar * | menuBar = NULL |
| StateBar * | stateBar = NULL |
| FileDialog * | fileDialog = NULL |
| OptionPanel * | optionPanel = NULL |
| OrthographicCamera * | mainCamera = NULL |
| RawReader * | reader = NULL |
| Background * | pressureBackground = NULL |
| Background * | vorticityBackground = NULL |
| CGrid | gGrid |
| CGrid | colorGrid |
| CEuler | gIntegration |
| bool | gNotSampled = false |
| ProgramState | currentProgramState = START |
| sPoint2f | seedPoint (0, 0) |
|
|
Function to perform an controlled application "killing" |
|
|
Method that is registered as rendering loop for GLUT and GLUI. Refer to LifeVariables.h for further description. |
|
|
This function sets the program state to ARROW_PLOT_MODE if possible. |
|
|
This set the program state to LOADED if possible. |
|
|
This function sets the program state to STREAMLINE_PLOT_MODE if possible. |
|
|
This function sets the program state to UNLOADED if possible. |
|
|
This function is registered as callback for all events that happen on the Gui. Refer to LifeVariables.h for further description. |
|
|
Idle function just for the lazy computers. Here is no magic so there is no further description in LifeVariables.h |
|
||||||||||||||||
|
Function to handle all keyboard events
|
|
||||||||||||
|
Main method sets up the rendering context and creates the global objects. Currently the commandline parameters are not evaluated.
|
|
||||||||||||||||||||
|
This functions handles input events from the mouse. The only input from the mouse that should be handled is the seedpoint setting.
|
|
||||||||||||||||||||
|
Method to render a string as BitmapText on the screen. Refer to LifeVariables for further description. |
|
||||||||||||||||||||
|
Method to render an integer as BitmapText on the screen. Refer to LifeVariables for further description. |
|
||||||||||||
|
Function to handle reshape events. Refer to LifeVariables.h for further description. |
|
|
Method to output debug messages from OpenGL. Refer to LifeVariables for further description. |
|
|
The regulary resampled grid background texture |
|
|
This variable holds the current ProgramState. All possible states and state-transitions are descibed in LifeVariables.h |
|
|
This boolean is a flag wich is set to 1 = true by default. Thus debug messages are passed to the console. |
|
|
The dialog to open a path where raw files can be found |
|
|
The regulary resampled grid for arrow plots |
|
|
The object which generates the streamline sample points |
|
|
Global Flag if the seedpoint should be resampled again or not |
|
|
The main rendering area which is left for the visualisation |
|
|
windowname of the main rendering window assigned from glut |
|
|
The panel that emulates a menubar |
|
|
Mouse x coordinate in pixels responding to the mainCamera viewport |
|
|
Mouse y coordinate in pixels responding to the mainCamera viewport |
|
|
The panel that contains options for the visualisation |
|
|
The background texture for the first dataset |
|
|
The reader class which is used to load the datasets |
|
|
The current interactive seedPoint |
|
|
The panel that emulates a statebar |
|
|
The background texture for the 2nd dataset |
1.4.1