E:/Eigene Dateien/Michi/Studium/Semester7/Vis/LU/Beispiel2/FlowVis/src/main.cpp File Reference

#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"

Functions

void render ()
bool loadData (std::string filename)
void renderInformation (const int viewPortWidth, const int viewPortHeight, const double correctionFactor)
void drawScene (void)
void drawTransferFunction ()
void glutDisplay (void)
void glutReshape (int width, int height)
void glutMouse (int button, int state, int screenX, int screenY)
void glutMotion (int screenX, int screenY)
void glutKeyboard (unsigned char key, int x, int y)
void glutSpecial (int key, int x, int y)
void saveScreenshot ()
void updateStreamlinesIntegration ()
void updateStreamlinesDt ()
void updateStreamlinesDsep ()
void updateStreamlinesDtest ()
void updateStreamlinesModus ()
void updateStreamlinesSeedpoints ()
void gluiCallback (int id)
void enableGUI ()
void buildGui ()
void loadArrowTex ()
void cleanup ()
int main (int argc, char **argv)

Variables

int g_iWidth = 1024
int g_iHeight = 700
int x = 0
int y = 0
int main_window = 0
GLuint ilutArrow = 0
GLuint arrowTex = 0
int transViewportWidth = 0
int transViewportHeight = 0
float transOrthoWidth = 0
float transOrthoHeight = 0
int actualButton = -1
int actualState = -1
std::string loadedFile = "No data file specified"
Arguments g_argArguments
ColorChoosercolorChooser
TransferFunction ** transferFunction
stringtransferFunctionNames
StreamlineSetstreamlineSet
Cameracamera = NULL
OptionsFileHandleroptionsFilehandler = NULL
FlowDatadataset = NULL
int chX
int chY
int vel
Arrowplotarrowplot = NULL
Shadershader = NULL

Function Documentation

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  ) 

GLUI callback function

Parameters:
id ID of the GLUI element, which triggered the callback

void glutDisplay ( void   ) 

GLUT display function

void glutKeyboard ( unsigned char  key,
int  x,
int  y 
)

GLUT keyboard function

Parameters:
key Which key is pressed
x X-Coordinate
y Y-Coordinate

void glutMotion ( int  screenX,
int  screenY 
)

GLUT motion function

Parameters:
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

Parameters:
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

Parameters:
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

Parameters:
filename Filename of the new data set

int main ( int  argc,
char **  argv 
)

main entry point

Parameters:
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

Parameters:
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


Variable Documentation

int actualButton = -1

int actualState = -1

GLuint arrowTex = 0

Camera* camera = NULL

int chX

int chY

FlowData* dataset = NULL

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

Shader* shader = NULL

float transOrthoHeight = 0

float transOrthoWidth = 0

int vel

int x = 0

x cutoff of the gui window

int y = 0

y cutoff


Generated on Tue Jan 20 23:44:10 2009 for FlowVis by  doxygen 1.5.7.1