local_proto.h 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. #include <grass/raster.h>
  2. #include "group.h"
  3. #include "ps_info.h"
  4. #include "decorate.h"
  5. /* box.c */
  6. int box_path(double, double, double, double);
  7. int box_clip(double, double, double, double);
  8. int box_fill(double, double, double, double, int);
  9. int box_draw(double, double, double, double);
  10. /* catval.c */
  11. #if defined GRASS_VECTOR_H && defined GRASS_DBMI_H
  12. int load_catval_array_rgb(struct Map_info *, int, dbCatValArray *);
  13. int load_catval_array_rot(struct Map_info *, int, dbCatValArray *);
  14. int load_catval_array_size(struct Map_info *, int, dbCatValArray *);
  15. #endif
  16. /* chk_scale.c */
  17. int check_scale(char *);
  18. /* comment.c */
  19. int read_comment(char *);
  20. int do_comment(void);
  21. /* distance.c */
  22. double distance(double, double);
  23. /* do_grid.c */
  24. int do_grid(void);
  25. int do_grid_cross(void);
  26. int do_grid_numbers(void);
  27. /* do_geogrid */
  28. int do_geogrid(void);
  29. int do_geogrid_numbers(void);
  30. /* do_header.c */
  31. int do_map_header(const char *);
  32. int read_header_file(const char *);
  33. /* do_labels.c */
  34. int do_labels(int);
  35. int do_label(FILE *, int);
  36. /* do_masking.c */
  37. int do_masking(void);
  38. /* do_plt.c */
  39. int do_plt(int);
  40. /* do_psfiles.c */
  41. int do_psfiles(void);
  42. /* do_scalebar */
  43. int do_scalebar(void);
  44. /* do_vectors.c */
  45. int do_vectors(int);
  46. int do_vpoints(int);
  47. /* error.c */
  48. int error(const char *, const char *, const char *);
  49. /* fit_map.c */
  50. int fit_map_to_box(void);
  51. /* get_font.c */
  52. int get_font(char *);
  53. /* getgrid.c */
  54. int getgrid(void);
  55. int getgeogrid(void);
  56. /* get_scalebar.c */
  57. int read_scalebar(void);
  58. /* gprims.c */
  59. int draw_line(double, double, double, double);
  60. int start_line(double, double);
  61. int move_local(int, int);
  62. int cont_local(int, int);
  63. int set_line_width(double);
  64. int set_font_name(char *);
  65. int set_font_size(int);
  66. int show_text(double, double, char *);
  67. /* input.c */
  68. int input(int, char *, char *[]);
  69. int gobble_input(void);
  70. /* key_data.c */
  71. int key_data(char *, char **, char **);
  72. /* main.c */
  73. int usage(int);
  74. /* makeprocs.c */
  75. int make_procs(void);
  76. /* map_info.c */
  77. int map_info(void);
  78. /* map_setup.c */
  79. int map_setup(void);
  80. /* mtextbox.c */
  81. int multi_text_box_path(double, double, int, int, char *, int, float);
  82. int multi_lines(char *);
  83. /* outl_io.c */
  84. int o_io_init(void);
  85. int o_read_row(void *);
  86. #ifdef GRASS_RASTER_H
  87. RASTER_MAP_TYPE o_open_file(char *);
  88. #endif
  89. int o_close_file(void);
  90. char *xmalloc(int, char *);
  91. int xfree(char *, char *);
  92. char *xrealloc(char *, int, char *);
  93. #ifdef GRASS_GIS_H
  94. /* parse_list.c */
  95. int parse_val_list(char *, DCELL **);
  96. #endif
  97. /* ps_clrtbl.c */
  98. int PS_colortable(void);
  99. /* ps_fclrtbl.c */
  100. int PS_fcolortable(void);
  101. /* ps_colors.c */
  102. int get_color_number(char *);
  103. int get_color_rgb(int, float *, float *, float *);
  104. int color_name_is_ok(char *);
  105. char *get_color_name(int);
  106. int set_rgb_color(int);
  107. #ifdef PS_COLOR_H
  108. void unset_color(PSCOLOR *);
  109. void set_color(PSCOLOR *, int, int, int);
  110. void set_color_from_color(PSCOLOR *, int);
  111. int set_ps_color(PSCOLOR *);
  112. int color_none(PSCOLOR *);
  113. #endif
  114. /* ps_header.c */
  115. int write_PS_header(void);
  116. int write_bounding_box(void);
  117. /* ps_map.c */
  118. int ps_map(void);
  119. /* ps_outline.c */
  120. int ps_outline(void);
  121. int read_outline(void);
  122. int draw_outline(void);
  123. int o_alloc_bufs(int, int);
  124. int draw_top(void);
  125. int draw_rite(void);
  126. int draw_left(void);
  127. int draw_bot(void);
  128. /* ps_raster.c */
  129. int PS_make_mask(void);
  130. int PS_raster_plot(void);
  131. #ifdef GRASS_GIS_H
  132. int ps_write_mask_row(register CELL *);
  133. #endif
  134. /* ps_vlegend.c */
  135. int PS_vlegend(void);
  136. #ifdef GRASS_VECTOR_H
  137. /* ps_vpoints.c */
  138. int PS_vpoints_plot(struct Map_info *, int);
  139. /* ps_vlines.c */
  140. int PS_vlines_plot(struct Map_info *, int, int);
  141. /* ps_vareas.c */
  142. int PS_vareas_plot(struct Map_info *, int);
  143. /* vect.c */
  144. int adjust_line(struct line_pnts *);
  145. int construct_path(struct line_pnts *, double, int);
  146. #endif
  147. /* Read definition from script file and store for later use */
  148. /* r_cell.c */
  149. int read_cell(char *, char *);
  150. /* read_cfg.c */
  151. int set_paper(char *);
  152. void reset_map_location(void);
  153. void print_papers(void);
  154. /* r_border.c */
  155. int read_border(void);
  156. /* r_colortable.c */
  157. int read_colortable(void);
  158. /* r_group.c */
  159. int read_group(void);
  160. /* r_header.c */
  161. int read_header(void);
  162. /* r_info.c */
  163. int read_info(void);
  164. /* r_instructions.c */
  165. void read_instructions(int, int);
  166. /* r_labels.c */
  167. int read_labels(char *, char *);
  168. /* r_paper.c */
  169. int read_paper(void);
  170. /* r_plt.c */
  171. int read_point(double, double);
  172. int read_line(double, double, double, double);
  173. int read_rectangle(double, double, double, double);
  174. int read_eps(double, double);
  175. int add_to_plfile(char *);
  176. /* r_rgb.c */
  177. int read_rgb(char *key, char *data);
  178. /* r_text.c */
  179. int read_text(char *, char *, char *);
  180. /* r_vareas.c */
  181. int read_vareas(char *, char *);
  182. /* r_vlegend.c */
  183. int read_vlegend(void);
  184. /* r_vlines.c */
  185. int read_vlines(char *, char *);
  186. /* r_vpoints.c */
  187. int read_vpoints(char *, char *);
  188. /* r_wind.c */
  189. int read_wind(char *, char *);
  190. /* scale.c */
  191. double scale(char *);
  192. /* scan_gis.c */
  193. int scan_gis(char *, char *, char *, char *, char *, char *, int);
  194. /* scan_misc.c */
  195. int scan_easting(char *, double *);
  196. int scan_northing(char *, double *);
  197. int scan_resolution(char *, double *);
  198. /* scan_ref.c */
  199. int scan_ref(char *, int *, int *);
  200. int lowercase(register char *);
  201. /* session.c */
  202. int add_to_session(int, char *);
  203. int accept(void);
  204. int reject(void);
  205. int print_session(FILE *);
  206. /* show_scale.c */
  207. int show_scale(void);
  208. /* symbol.c */
  209. int symbol_draw(char *, double, double, double, double, double);
  210. #ifdef GRASS_SYMBOL_H
  211. #ifdef PS_COLOR_H
  212. int symbol_save(SYMBOL *, PSCOLOR *, PSCOLOR *, char *);
  213. #endif
  214. #endif
  215. /* textbox.c */
  216. int text_box_path(double, double, int, int, char *, float);
  217. /* vector.c */
  218. void vector_init(void);
  219. void vector_alloc(void);
  220. /* yesno.c */
  221. int yesno(char *, char *);
  222. /* eps.c */
  223. int eps_bbox(char *, double *, double *, double *, double *);
  224. int eps_trans(double, double, double, double, double, double, double, double,
  225. double *, double *);
  226. int eps_save(FILE *, char *, char *);
  227. int eps_draw_saved(char *, double, double, double, double);
  228. int eps_draw(FILE *, char *, double, double, double, double);
  229. int pat_save(FILE *, char *, char *);