#include <windows.h>
#include <iostream>
#include <stdlib.h>
#include <glew.h>
#include <glut.h>
#include <il.h>
#include <math.h>
#include "FlowData.h"
#include "globals.h"
#include "GUI.h"
#include "common.h"
#include "Shader.h"
#include "Arrowplot.h"
#include "ColorChooser.h"
#include "TransferFunction.h"
#include "Arguments.h"
#include "StreamlineSet.h"
#include "Camera.h"
#include "OptionsFileHandler.h"
void buildGui | ( | ) |
Builds the GLUI GUI
void cleanup | ( | ) |
Deletes the ressources
void drawScene | ( | void | ) |
Draws the scene
void drawTransferFunction | ( | ) |
Draws the transfer function
void enableGUI | ( | ) |
Enables the whole GUI
void gluiCallback | ( | int | id | ) |
void glutDisplay | ( | void | ) |
GLUT display function
void glutKeyboard | ( | unsigned char | key, | |
int | x, | |||
int | y | |||
) |
GLUT keyboard function
key | Which key is pressed | |
x | X-Coordinate | |
y | Y-Coordinate |
void glutMotion | ( | int | screenX, | |
int | screenY | |||
) |
GLUT motion function
screenX | X-Coordinate of the mouse on the screen | |
screenY | Y-Coordinate of the mouse on the screen |
void glutMouse | ( | int | button, | |
int | state, | |||
int | screenX, | |||
int | screenY | |||
) |
GLUT mouse function
button | Button which is pressed or released | |
state | Button state | |
screenX | X-Coordinate of the mouse on the screen | |
screenY | Y-Coordinate of the mouse on the screen |
void glutReshape | ( | int | width, | |
int | height | |||
) |
GLUT reshape function
width | New width | |
height | New height |
void glutSpecial | ( | int | key, | |
int | x, | |||
int | y | |||
) |
GLUT special function
void loadArrowTex | ( | ) |
Loads the texture of the arrow
bool loadData | ( | std::string | filename | ) |
Loads a new data set
filename | Filename of the new data set |
int main | ( | int | argc, | |
char ** | argv | |||
) |
main entry point
argc | argc | |
argv | command line inputs |
void render | ( | ) |
Renders the whole scene
void renderInformation | ( | const int | viewPortWidth, | |
const int | viewPortHeight, | |||
const double | correctionFactor | |||
) |
Renders the HUD
viewPortWidth | Viewport width | |
viewPortHeight | Viewport height | |
dFramesPerSecond | Frames per second | |
correctionFactor | correction factor of the window |
void saveScreenshot | ( | ) |
Saves a screenshot
void updateStreamlinesDsep | ( | ) |
Updates the streamline dsep
void updateStreamlinesDt | ( | ) |
Updates the streamline dt
void updateStreamlinesDtest | ( | ) |
Updates the streamline dtest
void updateStreamlinesIntegration | ( | ) |
Updates the streamline integration
void updateStreamlinesModus | ( | ) |
Updates the streamline modus
void updateStreamlinesSeedpoints | ( | ) |
Updates the streamline seedpoints
int actualButton = -1 |
int actualState = -1 |
GLuint arrowTex = 0 |
int chX |
int chY |
int g_iHeight = 700 |
window height of the scene
int g_iWidth = 1024 |
window width of the scene
GLuint ilutArrow = 0 |
std::string loadedFile = "No data file specified" |
int main_window = 0 |
OptionsFileHandler* optionsFilehandler = NULL |
float transOrthoHeight = 0 |
float transOrthoWidth = 0 |
int transViewportHeight = 0 |
int transViewportWidth = 0 |
int vel |
int x = 0 |
x cutoff of the gui window
int y = 0 |
y cutoff