HOPS
HOPS class reference
psplot.h
Go to the documentation of this file.
1 #ifndef PSPLOT_H
2 #define PSPLOT_H
3 
4 #define TRUE 1
5 #define FALSE 0
6 
7 #include "sizelimits.h"
8  /* Page layout definitions */
9 #define MIN_BASE_PLOT 20
10 #define MAX_BASE_PLOT 60
11 #define MIN_SCAN_PLOT 35
12 #define MAX_SCAN_PLOT 70
13  /* Colour definitions */
14 #define UNPROC 19
15 #define MINUS 20
16 #define TEXT 21
17 #define ACTIVE 22
18 #define INACTIVE 23
19 #define TAG_COLOUR 24
20  /* Button coordinates */
21 #define PREV_BUTTON 140., 280., 960., 998.
22 #define NEXT_BUTTON 320., 460., 960., 998.
23 #define SELECT_BUTTON 500., 640., 960., 998.
24 #define FPLOT_BUTTON 680., 820., 960., 998.
25 #define QUIT_BUTTON 860., 998., 960., 998.
26 #define RETAIN_BUTTON 0., 75., 900., 940.
27 #define BAND_XORIGIN 0.
28 #define BAND_YORIGIN 850.
29 #define BAND_SIZE 40.
30  /* Button return values */
31 #define PREV -1
32 #define NEXT -2
33 #define SELECT -3
34 #define FPLOT -4
35 #define QUIT -5
36 #define RETAIN -6
37 #define BLAB -7
38 #define SLAB -8
39 #define KEY -9
40 #define DATA_PT -10
41 #define NODATA -11
42 #define NOTHING -12
43 #define BAND -100
44  /* Plotting area coordinates */
45 #define PLOT_XMIN 140.
46 #define PLOT_XMAX 1000.
47 #define PLOT_YMIN 100.
48 #define PLOT_YMAX 820.
49  /* Label areas */
50 #define SCANLABEL 140., 1000., 822., 958.
51 #define BASELABEL 110., 138., 100., 820.
52  /* Info display area */
53 #define INFO 65., 200., 10., 70.
54 #define INFO_X 65.
55 #define INFO_Y 10.
56 
57 #define GUARD_BAND 2.0
58  /* Standardized quality codes */
59 #define QUALITIES " 0123456789ABCDEFGH.-"
60 #define KEY_XMIN 400.
61 #define KEY_YMIN 50.
62 #define KEYINC 20.
63 
64 
66  {
69  int flag[MAXBANDS];
70  };
71 
73  {
74  char id[3];
75  int alloced;
77  struct psplot_cell *scan;
78  };
79 
81  {
82  char stn;
84  int minus; /* Boolean, but could contain reason code */
85  };
86 
88  {
89  int scantime;
90  int seconds;
92  char scan_name[32];
94  int nst;
95  };
96 
98  {
99  int npages;
101  int scanpage;
102  int basepage;
105  int band;
106  float base_sep;
107  float scan_sep;
108  float tagsize;
109  float xgb_fract;
110  float ygb_fract;
111  };
112 
114  {
115  char fgroup[3];
117  };
118 
119 struct ps_array
120  {
122  int nscans;
125  int ntagged;
126  int qtagged[17];
127  int retain;
132  struct psplot_plotparam param;
134  };
135 
136 struct ps_count
137  {
138  char baseline[3];
139  char band;
140  int nqual[22];
141  };
142 
143 #endif /* PSPLOT_H */
Definition: difx2mark4.h:102
int fplot_open
Definition: psplot.h:124
char fglist[MAXBANDS]
Definition: psplot.h:83
char fgroup[3]
Definition: psplot.h:115
int nbaselines
Definition: psplot.h:121
int colour_index[MAXBANDS]
Definition: psplot.h:68
int scans_per_page
Definition: psplot.h:103
struct psplot_cell * scan
Definition: psplot.h:77
char band
Definition: psplot.h:139
int qtagged[17]
Definition: psplot.h:126
float base_sep
Definition: psplot.h:106
int minus
Definition: psplot.h:84
float tagsize
Definition: psplot.h:108
int alloced
Definition: psplot.h:75
float xgb_fract
Definition: psplot.h:109
int band
Definition: psplot.h:105
int tagged[MAXBANDS]
Definition: psplot.h:76
char stn
Definition: psplot.h:82
int nqual[22]
Definition: psplot.h:140
int scantime
Definition: psplot.h:89
struct psplot_baseline baseline[MAXBASE]
Definition: psplot.h:133
char scan_name[32]
Definition: psplot.h:92
int data_index[MAXBANDS]
Definition: psplot.h:67
float scan_sep
Definition: psplot.h:107
int flag[MAXBANDS]
Definition: psplot.h:69
struct psplot_fgroup fglist[MAXGROUPS]
Definition: psplot.h:128
int npages
Definition: psplot.h:99
char subgroups[MAXBANDS]
Definition: psplot.h:129
int seconds
Definition: psplot.h:90
int retain
Definition: psplot.h:127
int scanpage
Definition: psplot.h:101
int basepage
Definition: psplot.h:102
int displayed
Definition: psplot.h:123
int nbasepage
Definition: psplot.h:100
int ntagged
Definition: psplot.h:125
struct psplot_plotparam param
Definition: psplot.h:132
float ygb_fract
Definition: psplot.h:110
char subgroups[MAXBANDS]
Definition: psplot.h:116
struct psplot_scantime * time
Definition: psplot.h:131
int nscans
Definition: psplot.h:122
char stnlist[MAXSTEXP]
Definition: psplot.h:130
int base_per_page
Definition: psplot.h:104
int nst
Definition: psplot.h:94
int tagged[MAXBANDS]
Definition: psplot.h:91
char baseline[3]
Definition: psplot.h:138
Definition: psplot.h:120
Definition: psplot.h:137
Definition: psplot.h:73
Definition: psplot.h:66
Definition: psplot.h:114
Definition: psplot.h:98
Definition: psplot.h:88
Definition: psplot.h:81
#define MAXBASE
Definition: sizelimits.h:12
#define MAXGROUPS
Definition: sizelimits.h:3
#define MAXSTEXP
Definition: sizelimits.h:4
#define MAXBANDS
Definition: sizelimits.h:2