Fixed text file permissions
[snark14.git] / tools / Display / variables.hpp
1 /** @file variables.hpp
2     @package snark14Display
3     @author Bruno M. Carvalho and Deniz Sarioz
4     licensed under (open-source) QPL v1.0
5     which accompanies this distribution in the file QPL
6 */
7
8 #ifndef _VARIABLES_H
9 #define _VARIABLES_H
10
11 #define NaI 2147483647;
12
13 #include <cstdlib>
14 #include <cstdio>
15 #include <DIGFile.h>
16 #include <DIGFileSnarkProj.h>
17 // #include <PRJFile.h>
18 #include <qwidget.h>
19
20 #include "image.hpp"
21 #include "proj.hpp"
22 #include "eval_helper.hpp"
23
24 #ifdef SNARKDISPLAY_H
25 bool openprojfil=false; //(JD 1/27/04)
26 bool openrecfil=false,phantomexists=false;
27 int Sizex,Sizey,maxSizex,maxSizey,numimages;
28 unsigned int prjnum,usrays;
29 bool allglobal, alldifference;
30 double globalmax= -100000,globalmin=100000,lowglobalthresh,highglobalthresh;
31 double globaldiffmax= -100000, globaldiffmin = 100000;
32 Snarkimage **imageset;
33 Snarkproj *projfil;
34 DIGFile digrecfil;
35 // PRJFile digprojfil;
36 DIGFileSnarkProj digprojfil;
37 DIGDataFormat dataformat,projformat;
38 const char *nameproj,*projname,**settitles;
39 unsigned int **imageindexes;
40 bool *displaywindowactive;
41 char **imagetitles,**titlesmeas;
42 eval_execution_set myEES; // class defined in eval_helper.hpp
43 QWidget *desk;
44 #else
45 extern bool openprojfil; //(JD 1/27/04)
46 extern bool openrecfil,phantomexists;
47 extern int Sizex,Sizey,maxSizex,maxSizey,numimages;
48 extern unsigned int prjnum,usrays;
49 extern bool allglobal, alldifference;
50 extern double globalmax,globalmin,lowglobalthresh,highglobalthresh;
51 extern double globaldiffmax, globaldiffmin;
52 extern Snarkimage **imageset;
53 extern Snarkproj *projfil;
54 extern DIGFile digrecfil;
55 // extern PRJFile digprojfil;
56 extern DIGFileSnarkProj digprojfil;
57 extern DIGDataFormat dataformat,projformat;
58 extern const char *nameproj,*projname,**settitles;
59 extern unsigned int** imageindexes;
60 extern bool *displaywindowactive;
61 extern char **imagetitles,**titlesmeas;
62 extern eval_execution_set myEES; // class defined in eval_helper.hpp
63 extern QWidget *desk;
64
65 namespace sd_line_t {
66   extern int WIDTH;
67   extern int HEIGHT;
68   extern int XWINPAD;
69   extern int YWINPAD;
70   extern double Y_HALF_FUDGE_FACTOR;
71   extern int X_HALF_FUDGE_INCREMENT;
72 }
73
74 #endif
75
76 #endif /* _VARIABLES_H has to be here! or code will be reincluded! */