ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/FastOpenGlDisplayer/soft/main.h
Revision: 1.39
Committed: Fri Jul 11 04:37:58 2008 UTC (16 years, 10 months ago) by querten
Content type: text/plain
Branch: MAIN
CVS Tags: Version_1_03, Version_1_02
Changes since 1.38: +1 -1 lines
Log Message:
Add Run and Event Number

File Contents

# Content
1
2 // SimEvent.h: interface for the SimEvent class.
3 //
4 //////////////////////////////////////////////////////////////////////
5
6 #ifndef _MAIN_H__
7 #define _MAIN_H__
8
9 #ifdef linux
10 #include <GL/gl.h>
11 #include <GL/glu.h>
12 #include "Includes/GLUT/glut.h"
13 #include <ext/hash_map>
14 using namespace __gnu_cxx;
15 typedef hash_map<unsigned int, char*, hash<unsigned int>, equal_to<unsigned int> > HASH_Map;
16 #else
17 #include <windows.h>
18 #include <gl/gl.h>
19 #include <gl/glu.h>
20 #include <gl/glut.h>
21 #pragma comment (lib,"glaux.lib")
22 #pragma comment (lib,"glu32.lib")
23 #pragma comment (lib,"opengl32.lib")
24 #pragma comment (lib,"glut.lib")
25 #pragma comment (lib,"glut32.lib")
26 #pragma comment (lib,"Includes/CURL/Lib/libcurl.lib")
27
28 #include <hash_map>
29 using namespace stdext;
30 typedef hash_map<unsigned int, char*, hash_compare<unsigned int, std::less<unsigned int> > > HASH_Map;
31 #endif
32
33 bool SCREENSAVER = false;
34
35 HASH_Map test;
36
37 #include <time.h>
38 time_t start;
39 time_t end;
40
41 #include <stdio.h>
42 #include <math.h>
43
44 #include "Includes/FROG/FROG_Objects.h"
45 #include "Includes/FROG/FROG_Events.h"
46 #include "Includes/FROG/FROG_Geometry.h"
47
48 #include "Includes/FROG/FROG_Element_Tools.h"
49
50 #include "Includes/FROG/Logo.h"
51 #include "Includes/FROG/Texture.h"
52 #include "Includes/FROG/FROG_ReadCards.h"
53 #include "Includes/FROG/FROG_Struct.h"
54 #include "Includes/FROG/FROG_Camera.h"
55 #include "Includes/FROG/FROG_Net.h"
56
57
58 int SAVE_WINDOW_W = 800;
59 int SAVE_WINDOW_H = 600;
60 int SAVE_WINDOW_X = 10;
61 int SAVE_WINDOW_Y = 10;
62
63
64 bool FULLSCREEN = false;
65 int WINDOW_WIDTH = 800;
66 int WINDOW_HEIGHT = 600;
67 int SCREENSHOT = 0;
68 char* SCREENSHOT_FORMAT = new char[255];
69
70 int TEMP_I = 0;
71
72 FROG_Camera Cam;
73
74 bool MouseStates[3];
75
76 GLuint LogoTexture;
77 GLuint LogoTxtTexture;
78
79 double t = 0;
80
81 std::string inputVisFile;
82 std::string inputVisFileFromCard;
83 std::vector<std::string> inputGeom;
84
85 int updateVisFileTime = -1;
86
87 FROG_Events* events;
88 FROG_Element_Event* event;
89
90 FROG_Geometry* geom;
91
92 char gSim = 0;
93 char gReco = 15;
94
95 unsigned int mCLicked_DetId = (unsigned int) -1;
96 bool mDisplayMother = false;
97 bool mLoading = true;
98 int mLoading_I = 0;
99
100 int eventNumber = 0;
101
102 bool mHelpScreen= false;
103 bool mRotate = true;
104
105
106 bool stateChanged = false;
107 float mDt = 0.005f;
108
109 bool print_FrameWork = false;
110
111 WidthAndColor WaC_BackGround = {1.0 , 0.0 , 1.0 , 0.0 , 1.0};
112 WidthAndColor WaC_Txt = {1.0 , 0.0 , 1.0 , 1.0 , 1.0};
113 WidthAndColor WaC_CMS_Framework = {1.0 , 1.0 , 0.5 , 1.0 , 0.3};
114 WidthAndColor WaC_LHC_Axis = {3.0 , 1.0 , 0.5 , 1.0 , 0.3};
115 WidthAndColor WaC_Selected_Object = {2.0 , 1.0 , 1.0 , 0.0 , 1.0};
116
117 FROG_ReadCards* Card;
118
119 void reshape (int w, int h);
120 void display();
121
122 void LoadCard(const char* inputCard );
123 void gl_select(int x, int y);
124 void list_hits(GLint hits, GLuint *names);
125
126 void* DownLoadFile(void* inputFile);
127 void updateEventsFile();
128
129 #ifndef linux
130 DWORD WINAPI WinDownLoadFile( LPVOID lpParam );
131 #endif
132
133
134 #endif
135