Linuxpops  3.01.04
Spectral Anaysis Package for Single Dish Data
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
strings_and_things.h
Go to the documentation of this file.
1 #ifndef STRINGS_AND_THINGS_H
2 #define STRINGS_AND_THINGS_H
3 
4 #define MAX_LABEL_LENGTH 128
5 #define MAX_IMAGE_LABELS 64
6 #define MAX_IMAGE_MARKERS 32
7 #define MAX_IMAGE_HLINES 32
8 #define MAX_IMAGE_FORKS 32
9 #define MAX_FORK_TINES 8
10 #define MAX_TBLOCK_LABELS 8
11 #define MAX_IMAGE_GAUSS_RESULTS 8
12 #define MAX_PSTAMPS 16
13 
14 #ifndef MAGIC_SIZE
15 #define MAGIC_SIZE 16
16 #endif
17 
18 #define LABEL_CENTER 0
19 #define LABEL_LEFT 1
20 #define LABEL_RIGHT 2
21 #define LABEL_DOWN 3
22 
23 struct IMAGE_LABELS {
24  int used;
25  int color;
26  int direct;
27  int nohead;
28  int size;
29  int pad;
30  float x;
31  float y;
33 };
34 
35 
36 struct IMAGE_MARKERS {
37  int used;
38  int color;
39  float x;
40  float y;
41  float y2;
42  float pad;
43 };
44 
45 
46 struct IMAGE_HLINE {
47  int used;
48  int color;
49  float value;
50  float pad;
51 };
52 
53 
54 struct FORK_TINE {
55  float x;
56  float y;
57 };
58 
59 struct IMAGE_FORKS {
60  int used;
61  int color;
62  int ntines;
63  int pad;
64  float crossT;
65  float topT;
68 };
69 
70 
71 
73  int used;
74  int color;
75  float x;
76  float y;
77  char date[80];
78 };
79 
80 
81 struct PLOT_BOX {
82  float x; /* Location on the plot in lower-axis units */
83  float y;
84  float w; /* width & height in lower-axis units */
85  float h;
86 };
87 
88 
89 struct TITLE_BLOCK {
90  int used; /* If true, draw */
91  int color; /* Color to use */
92  int drawbox; /* If True, draw box around */
93  int nlabels; /* Contains number of labels used */
94 
95  struct PLOT_BOX box;
97 };
98 
99 
101  int used;
102  int pad;
103 
104  double x;
105  double y;
106 
107  char string[128];
108 };
109 
110 
111 struct IMAGE_GAUSS {
112  int used;
113  int color;
114 
116 };
117 
118 
119 
120 struct STAMP {
121  int used;
122  int color;
123  int size;
124  int pad;
125 
126  double linexmin;
127  double linexmax;
128  double stampULx;
129  double stampULy;
130  double stampLRx;
131  double stampLRy;
132 
133  double ymax;
134 
136 };
137 
138 
140  int nstamps;
141  int pad;
142 
144 };
145 
146 
149 
152  struct IMAGE_LABELS labels[MAX_IMAGE_LABELS]; /* Plot Labels */
153  struct IMAGE_MARKERS markers[MAX_IMAGE_MARKERS]; /* Plot Markers */
154  struct IMAGE_HLINE hlines[MAX_IMAGE_HLINES]; /* User assigned horizontal T markers */
155  struct IMAGE_FORKS forks[MAX_IMAGE_FORKS]; /* plot markers for hyper-fine lines */
156  struct IMAGE_GAUSS gauss; /* User place Gaussian info */
157  struct IMAGE_PSTAMPS pstamp; /* Small plots overlayed on main plot */
158 };
159 
160 #endif
struct PLOT_BOX box
char label[MAX_LABEL_LENGTH]
double stampULy
struct STAMP stamps[MAX_PSTAMPS]
#define MAX_TBLOCK_LABELS
double stampULx
double stampLRx
#define MAX_IMAGE_HLINES
struct IMAGE_LABELS labels[MAX_TBLOCK_LABELS]
struct IMAGE_LABELS labels[MAX_IMAGE_LABELS]
#define MAX_IMAGE_FORKS
struct FORK_TINE tines[MAX_FORK_TINES]
struct IMAGE_HLINE hlines[MAX_IMAGE_HLINES]
struct IMAGE_FORKS forks[MAX_IMAGE_FORKS]
struct IMAGE_MARKERS markers[MAX_IMAGE_MARKERS]
double stampLRy
#define MAX_IMAGE_GAUSS_RESULTS
char label[MAX_LABEL_LENGTH]
char label[MAX_LABEL_LENGTH]
#define MAX_IMAGE_MARKERS
struct IMAGE_PSTAMPS pstamp
struct IMAGE_DATE_STRING date
#define MAX_PSTAMPS
struct IMAGE_GAUSS gauss
#define MAX_LABEL_LENGTH
struct GAUSS_INFO_RESULTS results[MAX_IMAGE_GAUSS_RESULTS]
double linexmin
#define MAX_IMAGE_LABELS
#define MAX_FORK_TINES
double linexmax
char magic[MAGIC_SIZE]
struct TITLE_BLOCK tblock
#define MAGIC_SIZE