Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

global.h

Go to the documentation of this file.
00001 //***************************************************************************
00002 #ifndef GLOBAL_H
00003 #define GLOBAL_H
00004 //***************************************************************************
00005 #include "semaphore.h"
00006 #include "vector3.h"
00007 #include "wakevortex.h"
00008 #include "airport.h"
00009 #include "average.h"
00010 #include "mythread.h"
00011 #include <GL/gl.h>
00012 //***************************************************************************
00013 #ifdef BERGEN
00014 #include "bergen.h"
00015 extern bergenSample *sound;
00016 #endif
00017 
00018 enum 
00019 {
00020         DRAW_NONE = 0,
00021         DRAW_LINE,
00022         DRAW_BSPLINE,
00023         DRAW_POINTS,
00024 
00025         NO_AIRCRAFT = 0,
00026         SIMPLE_AIRCRAFT,
00027         DRAW_747
00028 };
00029 
00030 #define NUM_VORTEX_DRAW_MODES 4
00031 #define NUM_AIRCRAFT_DRAW_MODES 3
00032 
00033 extern char vortex_draw_mode_string[NUM_VORTEX_DRAW_MODES][20];
00034 typedef struct {
00035         double Azimuth;
00036         int no_culling;
00037         double noise_in_dB;
00038         int recv_count;
00039         int plane_info_flag;
00040         int absolute_range_flag;
00041         int inducedvelocity_flag;
00042         int vortex_draw_mode;
00043         int aircraft_draw_mode;
00044         int server_running;
00045         int soundserverflag;
00046         int localsoundflag;
00047         int pause_display;
00048         int tracking_flag;
00049         int trackingID;
00050         int sound_on;
00051         int kneighbors;
00052         double min_dist;
00053         double max_dist;
00055         int     totFrameCount;
00056         double  fpsRate;
00058         int     sleepdelay;
00059         int     isLagging;
00060         int     time_per_iter;
00061         double sim_clock_time;
00062         double sim_time;
00063         int comm_delay_per_iter;
00064         double initial_dt;
00065         vector3 viewpos;
00066         int ntotal;
00067         int shm_flag;
00068         int thread_flag;
00069         int init_vortex_size;
00070         int nwakemax;
00071         int window_height;
00072         int window_width;
00073         GLboolean show_timer;
00074         GLboolean fullscreen;
00075         double max_tracking_dist_in_km;
00076         int exit_cave;
00077         Average<double> comm_speed;
00078         Average<double> ms_per_frame;
00079         double startTime;
00080         int colormapType;
00081         int bspline_pts_per_segment;
00082         double airport_center[3];
00083         char sound_file[200];
00084         char plane_objfile[200];
00085         char vortex_server[200];
00086         char sound_server[200];
00087         char present_working_directory[500];
00088         char airport_file[200];
00089         char vortex_inp_file[200];
00091         int view_mode;
00093         int vortex_server_port;
00094 
00095 } GlobalStruct;
00096 extern GlobalStruct GV;
00097 
00098 extern char colormapTypes[][20];
00099 extern int colormapType;
00100 extern Airport *myAirport;
00101 
00102 DEFINE_TEMPLATE_THREAD_CLASS(VortexThread, Vortex);
00103 extern VortexThread *vortexThread;
00104 extern Semaphore vortex_lock;
00105 extern Semaphore cavesem;
00106 extern Vortex *vort;                  // For wake-vortex calculations
00107 //***************************************************************************
00108 #endif // GLOBAL_H
00109 //***************************************************************************

Generated on Sun Jun 16 17:36:41 2002 for Anirudh's Vortex-Wake Simulation Code by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001