Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

LifeVariables.h File Reference

#include <glui.h>
#include "Error.h"
#include "CVoxelData.h"
#include "MenuBar.h"
#include "StateBar.h"
#include "FileDialog.h"
#include "OptionPanel.h"
#include "Viewport.h"
#include "RawReader.h"
#include "Arrow2d.h"
#include "CGrid.h"
#include "Background.h"

Defines

#define DEFAULT_PATH   "./data/"
#define X_RES   900
#define Y_RES   700
#define DEBUG_MODE   1
#define FONT   GLUT_BITMAP_HELVETICA_10
#define BACKGROUND_RESAMPLING_FACTOR   3.0
#define SELECT_FILE_ID   9
#define OPEN_FILE_ID   10
#define SHOWOPENFILEDLG_ID   11
#define CONFIRMOPENFILEDLG_ID   12
#define CANCELOPENFILEDLG_ID   13
#define MODESELECT_ID   14
#define REFRESH_ID   15
#define ARROW_PLOT_SELECT_ID   16
#define ARROW_PLOT_GRID_SIZE_ID   17
#define STREAMLINE_PLOT_SELECT_ID   18
#define STREAMLINE_DISTANCE_ID   19
#define STREAMLINE_DTEST_ID   192
#define STREAMLINE_DT_ID   191
#define DATASET_1_ID   20
#define DATASET_2_ID   21
#define VALUE_RANGE_ID   22
#define VALUE_RANGE_ID2   23
#define ZOOM_IN_ID   24
#define ZOOM_OUT_ID   25
#define SEED_ON_OFF_ID   26
#define SEED_DEFINE_ID   27
#define UNIFORM_ARROW_PLOT_MODE   0
#define NONUNIFORM_ARROW_PLOT_MODE   1
#define DEFAULT_ARROW_PLOT_GRIDSIZE   100
#define MAX_ARROW_PLOT_GRIDSIZE   314
#define MIN_ARROW_PLOT_GRIDSIZE   3
#define EULER_INTEGRATION   0
#define RK2_INTEGRATION   1
#define DEFAULT_STREAMLINE_INTEGRATION   EULER_INTEGRATION
#define DEFAULT_STREAMLINE_DISTANCE   30
#define DEFAULT_STREAMLINE_DISTANCE_TEST   50
#define DEFAULT_STREAMLINE_DT   0.5

Enumerations

enum  ProgramState {
  START, LOADING, LOADED, ARROW_PLOT_MODE,
  SWITCHING, STREAMLINE_PLOT_MODE, UNLOADING, UNLOADED
}

Functions

void showGlDebugMessages ()
void renderString (int x, int y, void *font, string text)
void renderString (int x, int y, void *font, float nr)
void display ()
void reshape (int x, int y)
void idle ()
void eventListener (int msgNr)
void keyEvent (unsigned char key, int x, int y)

Variables

MenuBarmenuBar
StateBarstateBar
FileDialogfileDialog
OptionPaneloptionPanel
OrthographicCameramainCamera
RawReaderreader
BackgroundpressureBackground
sPoint2f seedPoint
CGrid gGrid

Define Documentation

#define ARROW_PLOT_GRID_SIZE_ID   17
 

The event generated when the user changes the grid size in arrow plot mode

#define ARROW_PLOT_SELECT_ID   16
 

The event generated when the user changes the arrow plot mode

#define BACKGROUND_RESAMPLING_FACTOR   3.0
 

The resampling factor for the background texture

#define CANCELOPENFILEDLG_ID   13
 

The event generated when canceling the file dlg.

#define CONFIRMOPENFILEDLG_ID   12
 

The event generated when confirming the file dlg.

#define DATASET_1_ID   20
 

The event generated when the user enables/disables the rendering for the first dataset

#define DATASET_2_ID   21
 

The event generated when the user enanbles/disables the rendering for the second dataset

#define DEBUG_MODE   1
 

The flag if the debugmode is enabled

#define DEFAULT_ARROW_PLOT_GRIDSIZE   100
 

The default distance of arrows in arrow plot mode

#define DEFAULT_PATH   "./data/"
 

The default path to search for data files.

#define DEFAULT_STREAMLINE_DISTANCE   30
 

The default dSep (distance between streamlines

#define DEFAULT_STREAMLINE_DISTANCE_TEST   50
 

#define DEFAULT_STREAMLINE_DT   0.5
 

The default dt for the streamline integration

#define DEFAULT_STREAMLINE_INTEGRATION   EULER_INTEGRATION
 

The option name for the Euler Integration

#define EULER_INTEGRATION   0
 

The option name for the Euler Integration

#define FONT   GLUT_BITMAP_HELVETICA_10
 

The font on self defined GUI elements

#define MAX_ARROW_PLOT_GRIDSIZE   314
 

The minimum distance of arrows in arrow plot mode

#define MIN_ARROW_PLOT_GRIDSIZE   3
 

The minimum distance of arrows in arrow plot mode

#define MODESELECT_ID   14
 

The event generated when changing between arrow plot mode and streamline plot mode

#define NONUNIFORM_ARROW_PLOT_MODE   1
 

The option name for the nonuniform arrow plot mode

#define OPEN_FILE_ID   10
 

The event generated when pressing the button beside the listbox

#define REFRESH_ID   15
 

The event generated when the display should be refreshed

#define RK2_INTEGRATION   1
 

The option name for the Runge Kutta Integration

#define SEED_DEFINE_ID   27
 

The event generated when the user defines a seed point with the mouse

#define SEED_ON_OFF_ID   26
 

The event generated when the user wants to define seed points

#define SELECT_FILE_ID   9
 

The event generated when changing the file selection in the list box.

#define SHOWOPENFILEDLG_ID   11
 

The event generated when pressing the add path button

#define STREAMLINE_DISTANCE_ID   19
 

The event generated when the user changes the distance of the streamlines

#define STREAMLINE_DT_ID   191
 

The event generated when the user changes the stepsize of the streamline integration

#define STREAMLINE_DTEST_ID   192
 

#define STREAMLINE_PLOT_SELECT_ID   18
 

The event generated when the user changes the streamline integration method

#define UNIFORM_ARROW_PLOT_MODE   0
 

The option name for the uniform arrow plot mode

#define VALUE_RANGE_ID   22
 

The event generated when the user changes the range of the min, max and peek value

#define VALUE_RANGE_ID2   23
 

The event generated when the user changes the range of the min, max and peek value for the 2nd dataset.

#define X_RES   900
 

The defualt x resolution

#define Y_RES   700
 

The default y resolution

#define ZOOM_IN_ID   24
 

The event generated when the user wants to zoom in

#define ZOOM_OUT_ID   25
 

The event generated when the user wants to zoom out


Enumeration Type Documentation

enum ProgramState
 

The program can reach these states of total destruction wich determine the content to be rendered in the main window. The states are evaluated in the display function of the main class and provide the following:

START
The State right after the start of the tool. In this state only the generic GUI is visible. The user can only click and select a file from the dropdown list or add/change the path to search for files.

LOADING
In this state, the program is loading some dataset from the disc. Thus the dataset is not rendered. If the loading succeeds, the program enters the LOADING_DONE state.

LOADED
In this state the volume data had been loaded from the disc.

ARROW_PLOT_MODE
In this state the program draws the arrow plot

STREAMLINE_PLOT_MODE
In this state the program draws the streamline plot.

UNLOADING
In this state the program cleans the memory allocated so far. Nothing is rendered to the screen. The state is left after the memory had been cleaned. The program enters then the state UNLOADED.
UNLOADED
In this state everything is cleaned - identical to START.
Enumeration values:
START 
LOADING 
LOADED 
ARROW_PLOT_MODE 
SWITCHING 
STREAMLINE_PLOT_MODE 
UNLOADING 
UNLOADED 


Function Documentation

void display  ) 
 

Method that is registered as rendering loop for GLUT and GLUI. Refer to LifeVariables.h for further description.

void eventListener int  control  ) 
 

This function is registered as callback for all events that happen on the Gui. Refer to LifeVariables.h for further description.

void idle  ) 
 

Idle function just for the lazy computers. Here is no magic so there is no further description in LifeVariables.h

void keyEvent unsigned char  key,
int  x,
int  y
 

Function to handle all keyboard events

Parameters:
key the key pressed

void renderString int  x,
int  y,
void *  font,
float  nr
 

Method to render an integer as BitmapText on the screen. Refer to LifeVariables for further description.

void renderString int  x,
int  y,
void *  font,
string  text
 

Method to render a string as BitmapText on the screen. Refer to LifeVariables for further description.

void reshape int  x,
int  y
 

Function to handle reshape events. Refer to LifeVariables.h for further description.

void showGlDebugMessages  ) 
 

Method to output debug messages from OpenGL. Refer to LifeVariables for further description.


Variable Documentation

FileDialog* fileDialog
 

The dialog to open a path where raw files can be found

CGrid gGrid
 

The regulary resampled grid for arrow plots

OrthographicCamera* mainCamera
 

The main rendering area which is left for the visualisation

MenuBar* menuBar
 

The panel that emulates a menubar

OptionPanel* optionPanel
 

The panel that contains options for the visualisation

Background* pressureBackground
 

The background texture for the first dataset

RawReader* reader
 

The reader class which is used to load the datasets

sPoint2f seedPoint
 

The current interactive seedPoint

StateBar* stateBar
 

The panel that emulates a statebar


Generated on Tue Jan 24 00:36:47 2006 for ZVis by  doxygen 1.4.1