Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F8724147
frog.h
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Subscribers
None
frog.h
View Options
// main.h
//
//////////////////////////////////////////////////////////////////////
#ifndef _MAIN_H__
#define _MAIN_H__
#define FROG_VERSION 1.108
#define FROG_AUTHORLIST "Loic.Quertenmont@cern.ch\nVincent.Roberfroid@cern.ch"
#include
"Includes/GL/glew.h"
#ifdef linux
#include
"Includes/GL/glxew.h"
#include
<GL/gl.h>
#include
<GL/glu.h>
#include
"Includes/GLUT/glut.h"
#elif macos
#include
"Includes/GL/glxew.h"
#include
<OpenGL/gl.h>
#include
<OpenGL/glu.h>
#include
<GLUT/glut.h>
#else
#include
<windows.h>
#include
"Includes/GL/wglew.h"
#include
<gl/gl.h>
#include
<gl/glu.h>
#include
<gl/glut.h>
#endif
bool
SCREENSAVER
=
false
;
bool
SHOOTER
=
false
;
#include
<time.h>
time_t
start
;
time_t
end
;
#include
<stdio.h>
#include
<math.h>
#include
"Includes/FROG/FROG_Objects.h"
#include
"Includes/FROG/FROG_Events.h"
#include
"Includes/FROG/FROG_Geometry.h"
#include
"Includes/FROG/FROG_Fonts.h"
#include
"Includes/FROG/FROG_Element_Tools.h"
#include
"Includes/FROG/FROG_Texture.h"
#include
"Includes/FROG/FROG_ReadCards.h"
#include
"Includes/FROG/FROG_Net_Tools.h"
#include
"Includes/FROG/FROG_View_Tools.h"
FROG_Fonts
*
Fonts
;
FROG_ReadCards
*
Card
;
FROG_Objects_Extended
*
frogObjects_
;
std
::
vector
<
FROG_View
*>
ActiveViews
;
FROG_View_Screen
*
ViewScreen
;
FROG_View
*
ViewMain
;
FROG_View_Menu
*
ViewMenu
;
int
SAVE_WINDOW_W
=
800
;
int
SAVE_WINDOW_H
=
600
;
int
SAVE_WINDOW_X
=
10
;
int
SAVE_WINDOW_Y
=
10
;
bool
FULLSCREEN
=
false
;
int
WINDOW_WIDTH
=
800
;
int
WINDOW_HEIGHT
=
600
;
int
SCREENSHOT
=
0
;
char
SCREENSHOT_FORMAT
[
255
]
=
{
"png"
};
int
TEMP_I
=
0
;
bool
MouseStates
[
3
];
GLuint
LogoTexture
;
GLuint
LogoTxtTexture
;
char
ScreenShotName
[
1024
]
=
{
"screenshot"
};
std
::
string
AbsolutePath
;
std
::
string
inputConfig
=
"config.txt"
;
std
::
string
inputVisFile
;
std
::
string
inputVisFileFromCard
;
std
::
vector
<
string
>
inputVisFileFromCommand
;
std
::
vector
<
std
::
string
>
inputGeom
;
// MultiThreading Variables
#ifdef linux
pthread_t
Thread_H
;
#elif macos
pthread_t
Thread_H
;
#else
HANDLE
Thread_H
=
NULL
;
DWORD
Thread_Id
=
0
;
#endif
bool
Thread_Run
=
false
;
float
SelectedObject_color
[
4
]
=
{
1
,
1
,
1
,
1
};
int
SelectedObject_Counter
=
0
;
//bool SelectedObject_DrawFlag = true;
bool
Geometry_WireFrame
=
false
;
int
updateVisFileTime
=
-
1
;
FROG_Events
*
events
;
FROG_Element_Event
*
event
;
FROG_Geometry
*
geom
;
char
gSim
=
0
;
char
gReco
=
15
;
//unsigned int mCLicked_DetId = (unsigned int) -1;
bool
mDisplayMother
=
false
;
bool
mLoading
=
true
;
int
mLoading_I
=
0
;
bool
mEventChanging
=
true
;
bool
mOpenGeom
=
false
;
unsigned
int
mAutomaticShooter_LastEvent
=
0
;
bool
mAutomaticShooter
=
false
;
int
eventNumber
=
0
;
int
eventTime
=
5
;
bool
mHelpScreen
=
false
;
bool
stateChanged
=
false
;
bool
print_FrameWork
=
false
;
float
BackGround_Color
[
4
]
=
{
0.0
,
0.0
,
0.0
,
1.0
};
float
Txt_Color
[
4
]
=
{
0.0
,
1.0
,
1.0
,
1.0
};
float
Framework_Color
[
4
]
=
{
1.0
,
0.5
,
1.0
,
0.3
};
float
Framework_Thickness
=
1.0
;
float
XAxis_Color
[
4
]
=
{
1.0
,
0.0
,
0.0
,
1.0
};
float
XAxis_Thickness
=
5
;
float
YAxis_Color
[
4
]
=
{
0.0
,
1.0
,
0.0
,
1.0
};
float
YAxis_Thickness
=
5
;
float
ZAxis_Color
[
4
]
=
{
0.0
,
0.0
,
1.0
,
1.0
};
float
ZAxis_Thickness
=
5
;
void
reshape
(
int
w
,
int
h
);
void
display
();
void
display2
();
void
displayForScreenShot
();
void
displaytext
();
void
processNormalKeys
(
unsigned
char
key
,
int
x
,
int
y
);
void
processSpecialKeys
(
int
key
,
int
x
,
int
y
)
;
void
processMouse
(
int
button
,
int
state
,
int
x
,
int
y
);
void
processMotion
(
int
x
,
int
y
);
void
processPassiveMotion
(
int
x
,
int
y
);
void
LoadCard
(
const
char
*
inputCard
);
void
gl_select
(
int
x
,
int
y
);
void
list_hits
(
GLint
hits
,
GLuint
*
names
);
void
AutomaticEventChanging
(
int
Extra
);
void
updateEventsFile
();
#endif
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Mon, Jan 20, 10:34 PM (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4234328
Default Alt Text
frog.h (3 KB)
Attached To
rFROGSVN frogsvn
Event Timeline
Log In to Comment