~ubuntu-branches/ubuntu/precise/grass/precise

« back to all changes in this revision

Viewing changes to imagery/i.ortho.photo/i.photo.2image/globals.h

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Paolo Lovergine
  • Date: 2011-04-13 17:08:41 UTC
  • mfrom: (8.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20110413170841-ss1t9bic0d0uq0gz
Tags: 6.4.1-1
* New upstream version.
* Now build-dep on libjpeg-dev and current libreadline6-dev.
* Removed patch swig: obsolete.
* Policy bumped to 3.9.2, without changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "defs.h"
 
2
 
 
3
#ifndef GLOBAL
 
4
#  define GLOBAL extern
 
5
#  define INIT(x)
 
6
#else
 
7
#  define INIT(x) = x
 
8
#endif
 
9
 
 
10
GLOBAL int SCREEN_TOP;
 
11
GLOBAL int SCREEN_BOTTOM;
 
12
GLOBAL int SCREEN_LEFT;
 
13
GLOBAL int SCREEN_RIGHT;
 
14
 
 
15
GLOBAL Window *INFO_WINDOW;
 
16
GLOBAL Window *MENU_WINDOW;
 
17
GLOBAL Window *PROMPT_WINDOW;
 
18
 
 
19
GLOBAL View *VIEW_MAP1;
 
20
GLOBAL View *VIEW_TITLE1;
 
21
GLOBAL View *VIEW_MAP1_ZOOM;
 
22
GLOBAL View *VIEW_TITLE1_ZOOM;
 
23
 
 
24
GLOBAL View *VIEW_CAM_REF;
 
25
GLOBAL View *VIEW_CAM_TITLE;
 
26
 
 
27
GLOBAL View *VIEW_MENU;
 
28
 
 
29
/* GLOBAL Block block; */
 
30
GLOBAL struct Ortho_Image_Group group;
 
31
 
 
32
GLOBAL char interrupt_char;
 
33
GLOBAL char *tempfile1;
 
34
GLOBAL char *tempfile2;
 
35
GLOBAL char *tempfile3;
 
36
 
 
37
GLOBAL char *digit_points;      /* digitizer control points */
 
38
GLOBAL int use_camera_file INIT(0);     /* is there a digitizer out there? */
 
39
 
 
40
/* group file list, target cell,vector files */
 
41
GLOBAL char *group_list INIT(NULL);
 
42
GLOBAL char *cell_list INIT(NULL);
 
43
GLOBAL char *vect_list INIT(NULL);
 
44
 
 
45
GLOBAL int from_keyboard INIT(-1);      /* input method */
 
46
GLOBAL int from_file INIT(-1);
 
47
GLOBAL int from_screen INIT(-1);
 
48
GLOBAL int from_flag INIT(0);
 
49
 
 
50
GLOBAL int dotsize INIT(4);
 
51
 
 
52
GLOBAL int COLOR[10];
 
53
 
 
54
#define BLACK   COLOR[0]
 
55
#define BLUE    COLOR[1]
 
56
#define BROWN   COLOR[2]
 
57
#define GREEN   COLOR[3]
 
58
#define GREY    COLOR[4]
 
59
#define ORANGE  COLOR[5]
 
60
#define PURPLE  COLOR[6]
 
61
#define RED     COLOR[7]
 
62
#define WHITE   COLOR[8]
 
63
#define YELLOW  COLOR[9]
 
64
 
 
65
double row_to_northing();
 
66
double col_to_easting();
 
67
double northing_to_row();
 
68
double easting_to_col();
 
69
 
 
70
#undef INIT
 
71
/* analyze.c */
 
72
int analyze(void);
 
73
 
 
74
/* ask.c */
 
75
int ask_gis_files(char *, char *, char *, char *, int);
 
76
 
 
77
/* ask_mag.c */
 
78
int ask_magnification(int *);
 
79
int draw_mag(void);
 
80
 
 
81
/* assign.c */
 
82
/* call.c */
 
83
int call(int (*)(), char *);
 
84
 
 
85
/* cam_ref.c */
 
86
int get_cam_ref(void);
 
87
 
 
88
/* cell.c */
 
89
int plotcell(int, int);
 
90
 
 
91
/* cellhd.c */
 
92
int Outline_cellhd(View *, struct Cell_head *);
 
93
 
 
94
/* colors.c */
 
95
int set_colors(struct Colors *);
 
96
 
 
97
/* conv.c */
 
98
int view_to_col(View *, int);
 
99
int view_to_row(View *, int);
 
100
int col_to_view(View *, int);
 
101
int row_to_view(View *, int);
 
102
double row_to_northing(struct Cell_head *, int, double);
 
103
double col_to_easting(struct Cell_head *, int, double);
 
104
double northing_to_row(struct Cell_head *, double);
 
105
double easting_to_col(struct Cell_head *, double);
 
106
 
 
107
/* curses.c */
 
108
int Begin_curses(void);
 
109
int End_curses(void);
 
110
int Suspend_curses(void);
 
111
int Resume_curses(void);
 
112
int Curses_allow_interrupts(int);
 
113
int Curses_clear_window(Window *);
 
114
int Curses_outline_window(Window *);
 
115
int Curses_write_window(Window *, int, int, char *);
 
116
int Curses_replot_screen(void);
 
117
int Curses_prompt_gets(char *, char *);
 
118
int Beep(void);
 
119
int Curses_getch(int);
 
120
 
 
121
/* digit.c */
 
122
int setup_digitizer(void);
 
123
int digitizer_point(double *, double *);
 
124
 
 
125
/* dot.c */
 
126
int dot(int, int);
 
127
int save_under_dot(int, int);
 
128
int restore_under_dot(void);
 
129
int release_under_dot(void);
 
130
 
 
131
/* drawcam.c */
 
132
int drawcam(void);
 
133
 
 
134
/* drawcam2.c */
 
135
int drawcam(void);
 
136
 
 
137
/* drawcell.c */
 
138
int drawcell(View *);
 
139
 
 
140
/* driver.c */
 
141
int driver(void);
 
142
 
 
143
/* equ.c */
 
144
int Compute_equation(void);
 
145
 
 
146
/* find.c */
 
147
int find_target_files(void);
 
148
 
 
149
/* graphics.c */
 
150
int Init_graphics(void);
 
151
int Outline_box(int, int, int, int);
 
152
int Text_width(char *);
 
153
int Text(char *, int, int, int, int, int);
 
154
int Uparrow(int, int, int, int);
 
155
int Downarrow(int, int, int, int);
 
156
 
 
157
/* group.c */
 
158
int prepare_group_list(void);
 
159
int choose_groupfile(char *, char *);
 
160
 
 
161
/* input.c */
 
162
int Input_pointer(Objects *);
 
163
int Input_box(Objects *, int, int);
 
164
int Input_other(int (*)(), char *);
 
165
int Menu_msg(char *);
 
166
int Start_mouse_in_menu(void);
 
167
 
 
168
/* main.c */
 
169
#ifdef __GNUC_MINOR__
 
170
int quit(int) __attribute__ ((__noreturn__));
 
171
#else
 
172
int quit(int);
 
173
#endif
 
174
int error(const char *, int);
 
175
 
 
176
/* mark.c */
 
177
int mark(int, int, int);
 
178
int mark_point(View *, int, int);
 
179
 
 
180
/* mouse.c */
 
181
int Mouse_pointer(int *, int *, int *);
 
182
int Mouse_box_anchored(int, int, int *, int *, int *);
 
183
int Get_mouse_xy(int *, int *);
 
184
int Set_mouse_xy(int, int);
 
185
 
 
186
/* points.c */
 
187
int display_ref_points(int);
 
188
int display_ref_points_in_view(View *, int, double *, double *, int *, int);
 
189
int display_one_point(View *, double, double);
 
190
 
 
191
/* target.c */
 
192
int get_target(void);
 
193
int select_current_env(void);
 
194
int select_target_env(void);
 
195
 
 
196
/* title.c */
 
197
int display_title(View *);
 
198
 
 
199
/* use_camera.c */
 
200
int setup_camera_file(void);
 
201
 
 
202
/* view.c */
 
203
int Configure_view(View *, char *, char *, double, double);
 
204
int In_view(View *, int, int);
 
205
int Erase_view(View *);
 
206
double magnification(View *);
 
207
 
 
208
/* where.c */
 
209
int where(int, int);
 
210
 
 
211
/* zoom.c */
 
212
int zoom(void);
 
213
 
 
214
/* zoom_box.c */
 
215
int zoom_box(void);
 
216
 
 
217
/* zoom_pnt.c */
 
218
int zoom_point(void);