G:/src/main.cpp File Reference

#include "FlowData.h"
#include "TransferFunktion.h"
#include "GameLevel.h"
#include "Timer.h"
#include <windows.h>
#include <iostream>
#include <stdlib.h>
#include <io.h>
#include <glew.h>
#include <openglut.h>
#include <GL/glui.h>
#include <il.h>
Include dependency graph for main.cpp:

Go to the source code of this file.

Defines

#define MAXADDCHANNELS   3

Enumerations

enum  GLUICONTROL { GLUI_SYNC = 0, GLUI_EXIT, GLUI_PIC, STREAMLINEMOD }

Functions

void glutIdle (void)
void drawChannel ()
void drawArrows ()
void drawStreamlineTex (int iter)
void updateStreamlines ()
void drawStreamlines ()
void updateTransferFunction ()
void glutDisplay (void)
void glutReshape (int width, int height)
void glutMouse (int button, int state, int x, int y)
void glutMouseWheel (int w, int d, int x, int y)
void glutMotion (int x, int y)
void glutKeyboard (unsigned char key, int x, int y)
void glutClose ()
void recalcStreamData ()
void recalcStreamData2 ()
void GLUIcontrol (int control)
char * loadFile (char *fileName)
void openFile (int control)
void loadSaveTransferfunktion (int control)
void initGLUI ()
void initTextures ()
void initShaders ()
int main (int argc, char **argv)

Variables

HWND g_hWindow
int g_iWindow
int g_iWidth = 768
int g_iHeight = 768
float g_x0 = 0.0f
float g_y0 = 0.0f
float g_fRatio = 1.0f
float g_xyRatio = 1.0f
float g_fPicWidth
float g_fPicHeight
GLint shOriginf2
GLint shSizef2
const int rangeX = 516
const int rangeY = 516
double dTime
int chX
int chY
int vel
int numAddChannels = -1
int g_iChannel = 0
GLuint g_uVelocityTex
GLuint g_uValueTex
GLUI_Listbox * channelList
GLint shChannel
GLint pH
GLint shUseTF
GLint shDrawArrows
GLint shArrowSize
GLint shArrowScaling
int g_iArrowScaling
int g_iArrows
char * vertexShader
char * fragmentShader
float * lut [1+MAXADDCHANNELS]
TransferFunktion * tf [1+MAXADDCHANNELS]
TransferFunktionPunkt * tfp = NULL
unsigned int g_uTFTex = 1
GLuint g_uArrowTex
int g_iArrowDist = 20
int g_iArrowSize = 10
FlowData * dataset
GLuint g_uStreamlineFBO [2]
GLuint g_uStreamlineTex [4]
GLenum att_point [] = {GL_COLOR_ATTACHMENT0_EXT, GL_COLOR_ATTACHMENT1_EXT}
int read_tex = 0
int write_tex = 1
GLint shSLIterator
GLint shSLStepsize
GLint shSLxPix
GLint shSLyPix
GLint shPicRatio
GLint shIntegration
float * SLtex
float * SLtex2
GLuint texture
float * streamlineSeeds
float * streamlineSeedsRK
int g_iSeeds
int g_iSteps
float g_iStepsize
int g_iWeightedSL = 1
FlowChannel * Xchan
FlowChannel * Ychan
FlowChannel * Xvelos
FlowChannel * Yvelos
int g_iEuler = 1
int g_iRungeKutta = 1
int g_iGamePause = 1
GameLevel * level = NULL
GLuint g_uBallTex
GLuint g_uWallTex
GLuint g_uRacketTex
GLuint g_uBrickTex
GLuint g_uOverTex
GLuint g_uWinTex

Define Documentation

#define MAXADDCHANNELS   3

Definition at line 38 of file main.cpp.


Enumeration Type Documentation

Enumerator:
GLUI_SYNC 
GLUI_EXIT 
GLUI_PIC 
STREAMLINEMOD 

Definition at line 104 of file main.cpp.


Function Documentation

void drawArrows (  ) 

Definition at line 146 of file main.cpp.

Here is the caller graph for this function:

void drawChannel (  ) 

Definition at line 132 of file main.cpp.

Here is the caller graph for this function:

void drawStreamlines (  ) 

Definition at line 513 of file main.cpp.

Here is the caller graph for this function:

void drawStreamlineTex ( int  iter  ) 

Definition at line 177 of file main.cpp.

Here is the caller graph for this function:

void GLUIcontrol ( int  control  ) 

Definition at line 966 of file main.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void glutClose (  ) 

Definition at line 792 of file main.cpp.

Here is the caller graph for this function:

void glutDisplay ( void   ) 

Definition at line 563 of file main.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void glutIdle ( void   ) 

Definition at line 122 of file main.cpp.

Here is the caller graph for this function:

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

Definition at line 768 of file main.cpp.

Here is the caller graph for this function:

void glutMotion ( int  x,
int  y 
)

Definition at line 754 of file main.cpp.

Here is the caller graph for this function:

void glutMouse ( int  button,
int  state,
int  x,
int  y 
)

Definition at line 714 of file main.cpp.

Here is the caller graph for this function:

void glutMouseWheel ( int  w,
int  d,
int  x,
int  y 
)

Definition at line 748 of file main.cpp.

Here is the caller graph for this function:

void glutReshape ( int  width,
int  height 
)

Definition at line 667 of file main.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void initGLUI (  ) 

Definition at line 1275 of file main.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void initShaders (  ) 

Definition at line 1521 of file main.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void initTextures (  ) 

Definition at line 1338 of file main.cpp.

Here is the caller graph for this function:

char* loadFile ( char *  fileName  ) 

Definition at line 1065 of file main.cpp.

Here is the caller graph for this function:

void loadSaveTransferfunktion ( int  control  ) 

Definition at line 1231 of file main.cpp.

Here is the caller graph for this function:

int main ( int  argc,
char **  argv 
)

Definition at line 1576 of file main.cpp.

Here is the call graph for this function:

void openFile ( int  control  ) 

valueTex[i*rangeX*3+j];

Definition at line 1084 of file main.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void recalcStreamData (  ) 

Definition at line 799 of file main.cpp.

void recalcStreamData2 (  ) 

Definition at line 876 of file main.cpp.

void updateStreamlines (  ) 

Definition at line 280 of file main.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void updateTransferFunction (  ) 

Definition at line 550 of file main.cpp.

Here is the caller graph for this function:


Variable Documentation

GLenum att_point[] = {GL_COLOR_ATTACHMENT0_EXT, GL_COLOR_ATTACHMENT1_EXT}

Definition at line 74 of file main.cpp.

GLUI_Listbox* channelList

Definition at line 45 of file main.cpp.

int chX

Definition at line 39 of file main.cpp.

int chY

Definition at line 40 of file main.cpp.

FlowData* dataset

Definition at line 71 of file main.cpp.

double dTime

Definition at line 35 of file main.cpp.

Definition at line 57 of file main.cpp.

float g_fPicHeight

Definition at line 28 of file main.cpp.

float g_fPicWidth

Definition at line 28 of file main.cpp.

float g_fRatio = 1.0f

Definition at line 27 of file main.cpp.

HWND g_hWindow

Definition at line 22 of file main.cpp.

int g_iArrowDist = 20

Definition at line 67 of file main.cpp.

int g_iArrows

Definition at line 55 of file main.cpp.

Definition at line 54 of file main.cpp.

int g_iArrowSize = 10

Definition at line 68 of file main.cpp.

int g_iChannel = 0

Definition at line 43 of file main.cpp.

int g_iEuler = 1

Definition at line 100 of file main.cpp.

int g_iGamePause = 1

Definition at line 102 of file main.cpp.

int g_iHeight = 768

Definition at line 24 of file main.cpp.

int g_iRungeKutta = 1

Definition at line 101 of file main.cpp.

int g_iSeeds

Definition at line 90 of file main.cpp.

int g_iSteps

Definition at line 91 of file main.cpp.

float g_iStepsize

Definition at line 92 of file main.cpp.

int g_iWeightedSL = 1

Definition at line 93 of file main.cpp.

int g_iWidth = 768

Definition at line 24 of file main.cpp.

int g_iWindow

Definition at line 23 of file main.cpp.

GLuint g_uArrowTex

Definition at line 66 of file main.cpp.

GLuint g_uBallTex

Definition at line 114 of file main.cpp.

GLuint g_uBrickTex

Definition at line 117 of file main.cpp.

GLuint g_uOverTex

Definition at line 118 of file main.cpp.

GLuint g_uRacketTex

Definition at line 116 of file main.cpp.

GLuint g_uStreamlineFBO[2]

Definition at line 72 of file main.cpp.

GLuint g_uStreamlineTex[4]

Definition at line 73 of file main.cpp.

unsigned int g_uTFTex = 1

Definition at line 63 of file main.cpp.

GLuint g_uValueTex

Definition at line 44 of file main.cpp.

Definition at line 44 of file main.cpp.

GLuint g_uWallTex

Definition at line 115 of file main.cpp.

GLuint g_uWinTex

Definition at line 119 of file main.cpp.

float g_x0 = 0.0f

Definition at line 26 of file main.cpp.

float g_xyRatio = 1.0f

Definition at line 27 of file main.cpp.

float g_y0 = 0.0f

Definition at line 26 of file main.cpp.

GameLevel* level = NULL

Definition at line 112 of file main.cpp.

float* lut[1+MAXADDCHANNELS]

Definition at line 60 of file main.cpp.

int numAddChannels = -1

Definition at line 42 of file main.cpp.

GLint pH

Definition at line 49 of file main.cpp.

const int rangeX = 516

Definition at line 32 of file main.cpp.

const int rangeY = 516

Definition at line 33 of file main.cpp.

int read_tex = 0

Definition at line 75 of file main.cpp.

Definition at line 53 of file main.cpp.

GLint shArrowSize

Definition at line 52 of file main.cpp.

GLint shChannel

Definition at line 46 of file main.cpp.

GLint shDrawArrows

Definition at line 51 of file main.cpp.

Definition at line 82 of file main.cpp.

GLint shOriginf2

Definition at line 29 of file main.cpp.

GLint shPicRatio

Definition at line 81 of file main.cpp.

GLint shSizef2

Definition at line 30 of file main.cpp.

GLint shSLIterator

Definition at line 77 of file main.cpp.

GLint shSLStepsize

Definition at line 78 of file main.cpp.

GLint shSLxPix

Definition at line 79 of file main.cpp.

GLint shSLyPix

Definition at line 80 of file main.cpp.

GLint shUseTF

Definition at line 50 of file main.cpp.

float* SLtex

Definition at line 83 of file main.cpp.

float* SLtex2

Definition at line 84 of file main.cpp.

Definition at line 88 of file main.cpp.

Definition at line 89 of file main.cpp.

GLuint texture

Definition at line 86 of file main.cpp.

TransferFunktion* tf[1+MAXADDCHANNELS]

Definition at line 61 of file main.cpp.

TransferFunktionPunkt* tfp = NULL

Definition at line 62 of file main.cpp.

int vel

Definition at line 41 of file main.cpp.

char* vertexShader

Definition at line 56 of file main.cpp.

int write_tex = 1

Definition at line 76 of file main.cpp.

FlowChannel* Xchan

Definition at line 95 of file main.cpp.

FlowChannel* Xvelos

Definition at line 97 of file main.cpp.

FlowChannel* Ychan

Definition at line 96 of file main.cpp.

FlowChannel* Yvelos

Definition at line 98 of file main.cpp.


Generated on Wed Jan 20 14:59:27 2010 for FlowVis by  doxygen 1.6.1