ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/FastOpenGlDisplayer/soft/main.h
Revision: 1.49
Committed: Fri Aug 22 03:14:31 2008 UTC (16 years, 8 months ago) by querten
Content type: text/plain
Branch: MAIN
Changes since 1.48: +1 -1 lines
Log Message:
Intermediate Version 1.077

File Contents

# User Rev Content
1 querten 1.1
2 querten 1.40 // main.h
3 querten 1.1 //
4     //////////////////////////////////////////////////////////////////////
5    
6     #ifndef _MAIN_H__
7     #define _MAIN_H__
8    
9 querten 1.49 #define FROG_VERSION 1.077
10 querten 1.45 #define FROG_AUTHORLIST "Loic.Quertenmont@cern.ch\nVincent.Roberfroid@cern.ch"
11 querten 1.44
12 querten 1.46 #include "Includes/GL/glew.h"
13 querten 1.1 #ifdef linux
14 querten 1.46 #include "Includes/GL/glxew.h"
15 querten 1.1 #include <GL/gl.h>
16     #include <GL/glu.h>
17 querten 1.46 #include "Includes/GLUT/glut.h"
18 roberfro 1.22 #else
19 querten 1.46 #include <windows.h>
20     #include "Includes/GL/wglew.h"
21 querten 1.1 #include <gl/gl.h>
22     #include <gl/glu.h>
23 querten 1.46 #include <gl/glut.h>
24 querten 1.1 #pragma comment (lib,"glaux.lib")
25     #pragma comment (lib,"glu32.lib")
26     #pragma comment (lib,"opengl32.lib")
27     #pragma comment (lib,"glut.lib")
28     #pragma comment (lib,"glut32.lib")
29 querten 1.34 #pragma comment (lib,"Includes/CURL/Lib/libcurl.lib")
30 querten 1.1 #endif
31 querten 1.35
32     bool SCREENSAVER = false;
33 querten 1.1
34 querten 1.12 #include <time.h>
35     time_t start;
36     time_t end;
37    
38 querten 1.1 #include <stdio.h>
39     #include <math.h>
40    
41 querten 1.25 #include "Includes/FROG/FROG_Objects.h"
42 roberfro 1.22 #include "Includes/FROG/FROG_Events.h"
43     #include "Includes/FROG/FROG_Geometry.h"
44 querten 1.21
45 querten 1.45 #include "Includes/FROG/FROG_Fonts.h"
46 querten 1.21 #include "Includes/FROG/FROG_Element_Tools.h"
47 querten 1.1
48 querten 1.40 #include "Includes/FROG/FROG_Texture.h"
49 querten 1.27 #include "Includes/FROG/FROG_ReadCards.h"
50 querten 1.40 #include "Includes/FROG/FROG_Net_Tools.h"
51 querten 1.41 #include "Includes/FROG/FROG_View_Tools.h"
52    
53 querten 1.45 FROG_Fonts* Fonts;
54 querten 1.41 FROG_ReadCards* Card;
55     FROG_Objects_Extended* frogObjects_;
56    
57     std::vector<FROG_View*> ActiveViews;
58 querten 1.42 FROG_View_Screen* ViewScreen;
59 querten 1.41 FROG_View* ViewMain;
60    
61 querten 1.43 unsigned int shadowMapTexture;
62 querten 1.1
63 querten 1.21
64 querten 1.1 int SAVE_WINDOW_W = 800;
65     int SAVE_WINDOW_H = 600;
66     int SAVE_WINDOW_X = 10;
67     int SAVE_WINDOW_Y = 10;
68    
69 querten 1.21
70 querten 1.19 bool FULLSCREEN = false;
71     int WINDOW_WIDTH = 800;
72     int WINDOW_HEIGHT = 600;
73     int SCREENSHOT = 0;
74 querten 1.47 char SCREENSHOT_FORMAT[255] = {"png"};
75    
76    
77 querten 1.1
78 querten 1.7 int TEMP_I = 0;
79 querten 1.1 bool MouseStates[3];
80    
81     GLuint LogoTexture;
82 querten 1.37 GLuint LogoTxtTexture;
83 querten 1.1
84 querten 1.4 std::string inputVisFile;
85 roberfro 1.36 std::string inputVisFileFromCard;
86 roberfro 1.22 std::vector<std::string> inputGeom;
87 querten 1.1
88 querten 1.40 // MultiThreading Variables
89     #ifdef linux
90     pthread_t Thread_H;
91     #else
92     HANDLE Thread_H = NULL;
93     DWORD Thread_Id = 0;
94     #endif
95     bool Thread_Run = false;
96    
97    
98    
99 roberfro 1.36 int updateVisFileTime = -1;
100    
101 roberfro 1.22 FROG_Events* events;
102 querten 1.26 FROG_Element_Event* event;
103 querten 1.1
104 querten 1.25 FROG_Geometry* geom;
105 querten 1.1
106 querten 1.13 char gSim = 0;
107 querten 1.7 char gReco = 15;
108 querten 1.1
109 querten 1.30 unsigned int mCLicked_DetId = (unsigned int) -1;
110 querten 1.21 bool mDisplayMother = false;
111 querten 1.1 bool mLoading = true;
112     int mLoading_I = 0;
113    
114     int eventNumber = 0;
115 querten 1.47 int eventTime = 5;
116 querten 1.1
117     bool mHelpScreen= false;
118 querten 1.17
119 roberfro 1.15 bool stateChanged = false;
120 querten 1.1
121 querten 1.17 bool print_FrameWork = false;
122 querten 1.16
123 querten 1.40 float BackGround_Color[4] = {0.0 , 0.0 , 0.0 , 1.0};
124     float Txt_Color[4] = {0.0 , 1.0 , 1.0 , 1.0};
125     float Framework_Color[4] = {1.0 , 0.5 , 1.0 , 0.3};
126     float Framework_Thickness = 1.0;
127     float ZAxis_Color[4] = {1.0 , 0.5 , 1.0 , 0.3};
128     float ZAxis_Thickness = 3;
129 querten 1.1
130     void reshape (int w, int h);
131     void display();
132 querten 1.43 void display2();
133     void displaytext();
134 querten 1.20
135 querten 1.1 void LoadCard(const char* inputCard );
136 roberfro 1.9 void gl_select(int x, int y);
137     void list_hits(GLint hits, GLuint *names);
138 querten 1.1
139 querten 1.47 void AutomaticEventChanging (int Extra);
140    
141 querten 1.40
142 roberfro 1.36 void updateEventsFile();
143    
144    
145 querten 1.2 #endif
146