ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/FastOpenGlDisplayer/soft/main.h
(Generate patch)

Comparing UserCode/FastOpenGlDisplayer/soft/main.h (file contents):
Revision 1.37 by querten, Thu Jul 10 13:56:39 2008 UTC vs.
Revision 1.65 by querten, Sun Nov 9 17:18:02 2008 UTC

# Line 1 | Line 1
1  
2 < // SimEvent.h: interface for the SimEvent class.
2 > // main.h
3   //
4   //////////////////////////////////////////////////////////////////////
5  
6   #ifndef _MAIN_H__
7   #define _MAIN_H__
8  
9 + #define FROG_VERSION 1.105
10 + #define FROG_AUTHORLIST "Loic.Quertenmont@cern.ch\nVincent.Roberfroid@cern.ch"
11 +
12 + #include "Includes/GL/glew.h"
13   #ifdef linux
14 + #include "Includes/GL/glxew.h"
15   #include <GL/gl.h>
16   #include <GL/glu.h>
17 < #include "Includes/GLUT/glut.h"
18 < #include <ext/hash_map>
19 < using namespace __gnu_cxx;
20 < typedef hash_map<unsigned int, char*, hash<unsigned int>, equal_to<unsigned int> > HASH_Map;
17 > #include "Includes/GLUT/glut.h"  
18 > #elif macos
19 > #include "Includes/GL/glxew.h"
20 > #include <OpenGL/gl.h>
21 > #include <OpenGL/glu.h>
22 > #include <GLUT/glut.h>
23   #else
24 < #include <windows.h>
24 > #include <windows.h>
25 > #include <atlconv.h>
26 > #include "Includes/GL/wglew.h"
27   #include <gl/gl.h>
28   #include <gl/glu.h>
29 < #include <gl/glut.h>
29 > #include <gl/glut.h>
30   #pragma comment (lib,"glaux.lib")
31   #pragma comment (lib,"glu32.lib")
32   #pragma comment (lib,"opengl32.lib")
33   #pragma comment (lib,"glut.lib")
34   #pragma comment (lib,"glut32.lib")
35   #pragma comment (lib,"Includes/CURL/Lib/libcurl.lib")
36 + #pragma comment (lib,"Includes/ZLIB/Lib/zdll.lib")
37  
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;
38   #endif
39  
40   bool SCREENSAVER = false;
41 <
35 < HASH_Map test;
41 > bool SHOOTER     = false;
42  
43   #include <time.h>
44   time_t start;
# Line 45 | Line 51 | time_t end;
51   #include "Includes/FROG/FROG_Events.h"
52   #include "Includes/FROG/FROG_Geometry.h"
53  
54 + #include "Includes/FROG/FROG_Fonts.h"
55   #include "Includes/FROG/FROG_Element_Tools.h"
56  
57 < #include "Includes/FROG/Logo.h"
51 < #include "Includes/FROG/Texture.h"
57 > #include "Includes/FROG/FROG_Texture.h"
58   #include "Includes/FROG/FROG_ReadCards.h"
59 < #include "Includes/FROG/FROG_Struct.h"
60 < #include "Includes/FROG/FROG_Camera.h"
55 < #include "Includes/FROG/FROG_Net.h"
59 > #include "Includes/FROG/FROG_Net_Tools.h"
60 > #include "Includes/FROG/FROG_View_Tools.h"
61  
62 + FROG_Fonts* Fonts;
63 + FROG_ReadCards* Card;
64 + FROG_Objects_Extended* frogObjects_;
65 +
66 + std::vector<FROG_View*> ActiveViews;
67 + FROG_View_Screen* ViewScreen;
68 + FROG_View* ViewMain;
69 + FROG_View_Menu* ViewMenu;
70  
71   int SAVE_WINDOW_W = 800;
72   int SAVE_WINDOW_H = 600;
# Line 65 | Line 78 | bool  FULLSCREEN        = false;
78   int   WINDOW_WIDTH      = 800;
79   int   WINDOW_HEIGHT     = 600;
80   int   SCREENSHOT        = 0;
81 < char* SCREENSHOT_FORMAT = new char[255];
81 > char  SCREENSHOT_FORMAT[255] = {"png"};
82  
70 int TEMP_I = 0;
83  
72 FROG_Camera Cam;
84  
85 + int TEMP_I = 0;
86   bool MouseStates[3];
87  
88   GLuint LogoTexture;
89   GLuint LogoTxtTexture;
90  
79 double t = 0;
80
91   std::string inputVisFile;
92   std::string inputVisFileFromCard;
93   std::vector<std::string> inputGeom;
94  
95 + // MultiThreading Variables
96 + #ifdef linux
97 +   pthread_t Thread_H;
98 + #elif macos
99 +   pthread_t Thread_H;
100 + #else
101 +   HANDLE Thread_H   = NULL;
102 +   DWORD  Thread_Id  = 0;
103 + #endif
104 + bool   Thread_Run = false;
105 +
106 + float SelectedObject_color[4] = {1,1,1,1};
107 + int   SelectedObject_Counter  = 0;
108 + //bool  SelectedObject_DrawFlag = true;
109 +
110 +
111   int updateVisFileTime = -1;
112  
113   FROG_Events* events;
# Line 92 | Line 118 | FROG_Geometry* geom;
118   char gSim       = 0;
119   char gReco      = 15;
120  
121 < unsigned int mCLicked_DetId = (unsigned int) -1;
121 > //unsigned int mCLicked_DetId = (unsigned int) -1;
122   bool mDisplayMother  = false;
123   bool mLoading   = true;
124   int  mLoading_I = 0;
125 + bool mEventChanging = true;
126 +
127 + unsigned int mAutomaticShooter_LastEvent = 0;
128 + bool mAutomaticShooter = false;
129 +
130  
131   int eventNumber = 0;
132 + int eventTime   = 5;
133  
134   bool  mHelpScreen= false;
103 bool  mRotate    = true;
104
135  
136   bool stateChanged = false;
107 float mDt                = 0.005f;
137  
138   bool print_FrameWork = false;
139  
140 < WidthAndColor WaC_BackGround        = {1.0 , 0.0 , 1.0 , 0.0 , 1.0};
141 < WidthAndColor WaC_Txt               = {1.0 , 0.0 , 1.0 , 1.0 , 1.0};
142 < WidthAndColor WaC_CMS_Framework     = {1.0 , 1.0 , 0.5 , 1.0 , 0.3};
143 < WidthAndColor WaC_LHC_Axis          = {3.0 , 1.0 , 0.5 , 1.0 , 0.3};
144 < WidthAndColor WaC_Selected_Object   = {2.0 , 1.0 , 1.0 , 0.0 , 1.0};
145 <
117 < FROG_ReadCards* Card;
140 > float BackGround_Color[4] = {0.0 , 0.0 , 0.0 , 1.0};
141 > float Txt_Color[4]        = {0.0 , 1.0 , 1.0 , 1.0};
142 > float Framework_Color[4]  = {1.0 , 0.5 , 1.0 , 0.3};
143 > float Framework_Thickness =  1.0;
144 > float ZAxis_Color[4]      = {1.0 , 0.5 , 1.0 , 0.3};
145 > float ZAxis_Thickness     =  3;
146  
147   void reshape (int w, int h);
148   void display();
149 + void display2();
150 + void displayForScreenShot();
151 + void displaytext();
152  
153   void LoadCard(const char* inputCard );
154   void gl_select(int x, int y);
155   void list_hits(GLint hits, GLuint *names);
156  
157 < char* get_char_ptr(const std::string& str);
158 < void* DownLoadFile(void* inputFile);
157 > void AutomaticEventChanging (int Extra);
158 >
159 >
160   void updateEventsFile();
161  
162  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines