display.h 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. #ifndef GRASS_DISPLAYDEFS_H
  2. #define GRASS_DISPLAYDEFS_H
  3. /* cnversions.c */
  4. void D_update_conversions(void);
  5. void D_fit_d_to_u(void);
  6. void D_fit_u_to_d(void);
  7. void D_show_conversions(void);
  8. void D_do_conversions(const struct Cell_head *, double, double, double, double);
  9. int D_is_lat_lon(void);
  10. double D_get_d_to_a_xconv(void);
  11. double D_get_d_to_a_yconv(void);
  12. double D_get_d_to_u_xconv(void);
  13. double D_get_d_to_u_yconv(void);
  14. double D_get_a_to_u_xconv(void);
  15. double D_get_a_to_u_yconv(void);
  16. double D_get_a_to_d_xconv(void);
  17. double D_get_a_to_d_yconv(void);
  18. double D_get_u_to_d_xconv(void);
  19. double D_get_u_to_d_yconv(void);
  20. double D_get_u_to_a_xconv(void);
  21. double D_get_u_to_a_yconv(void);
  22. double D_get_ns_resolution(void);
  23. double D_get_ew_resolution(void);
  24. double D_get_u_west(void);
  25. double D_get_u_east(void);
  26. double D_get_u_north(void);
  27. double D_get_u_south(void);
  28. double D_get_a_west(void);
  29. double D_get_a_east(void);
  30. double D_get_a_north(void);
  31. double D_get_a_south(void);
  32. double D_get_d_west(void);
  33. double D_get_d_east(void);
  34. double D_get_d_north(void);
  35. double D_get_d_south(void);
  36. void D_set_region(const struct Cell_head *);
  37. void D_set_src(double, double, double, double);
  38. void D_get_src(double *, double *, double *, double *);
  39. void D_set_grid(int, int, int, int);
  40. void D_get_grid(int *, int *, int *, int *);
  41. void D_set_dst(double, double, double, double);
  42. void D_get_dst(double *, double *, double *, double *);
  43. void D_get_u(double [2][2]);
  44. void D_get_a(int [2][2]);
  45. void D_get_d(double [2][2]);
  46. double D_d_to_a_row(double);
  47. double D_d_to_a_col(double);
  48. double D_d_to_u_row(double);
  49. double D_d_to_u_col(double);
  50. double D_a_to_u_row(double);
  51. double D_a_to_u_col(double);
  52. double D_a_to_d_row(double);
  53. double D_a_to_d_col(double);
  54. double D_u_to_d_row(double);
  55. double D_u_to_d_col(double);
  56. double D_u_to_a_row(double);
  57. double D_u_to_a_col(double);
  58. /* draw2.c */
  59. void D_set_clip(double, double, double, double);
  60. void D_clip_to_map(void);
  61. void D_set_clip_mode(int);
  62. void D_set_reduction(double);
  63. void D_line_width(double);
  64. void D_get_text_box(const char *, double *, double *, double *, double *);
  65. void D_pos_abs(double, double);
  66. void D_pos_rel(double, double);
  67. void D_move_abs(double, double);
  68. void D_move_rel(double, double);
  69. void D_cont_abs(double, double);
  70. void D_cont_rel(double, double);
  71. void D_line_abs(double, double, double, double);
  72. void D_line_rel(double, double, double, double);
  73. void D_polydots_abs(const double *, const double *, int);
  74. void D_polydots_rel(const double *, const double *, int);
  75. void D_polyline_abs(const double *, const double *, int);
  76. void D_polyline_rel(const double *, const double *, int);
  77. void D_polygon_abs(const double *, const double *, int);
  78. void D_polygon_rel(const double *, const double *, int);
  79. void D_box_abs(double, double, double, double);
  80. void D_box_rel(double, double);
  81. void D_begin(void);
  82. void D_end(void);
  83. void D_close(void);
  84. void D_stroke(void);
  85. void D_fill(void);
  86. void D_dots(void);
  87. /* icon.c */
  88. void D_plot_icon(double, double, int, double, double);
  89. /* raster.c */
  90. int D_draw_raster(int, const void *, struct Colors *, RASTER_MAP_TYPE);
  91. int D_draw_d_raster(int, const DCELL *, struct Colors *);
  92. int D_draw_f_raster(int, const FCELL *, struct Colors *);
  93. int D_draw_c_raster(int, const CELL *, struct Colors *);
  94. void D_raster_draw_begin(void);
  95. int D_draw_raster_RGB(int, const void *, const void *, const void *,
  96. struct Colors *, struct Colors *, struct Colors *,
  97. RASTER_MAP_TYPE, RASTER_MAP_TYPE, RASTER_MAP_TYPE);
  98. void D_raster_draw_end(void);
  99. /* raster2.c */
  100. int D_set_overlay_mode(int);
  101. int D_color(CELL, struct Colors *);
  102. int D_c_color(CELL, struct Colors *);
  103. int D_d_color(DCELL, struct Colors *);
  104. int D_f_color(FCELL, struct Colors *);
  105. int D_color_of_type(const void *, struct Colors *, RASTER_MAP_TYPE);
  106. /* setup.c */
  107. void D_setup(int);
  108. void D_setup_unity(int);
  109. void D_setup2(int, int, double, double, double, double);
  110. /* symbol.c */
  111. void D_symbol(const SYMBOL *, double, double, const RGBA_Color *,
  112. const RGBA_Color *);
  113. void D_symbol2(const SYMBOL *, double, double, const RGBA_Color *,
  114. const RGBA_Color *);
  115. /* tran_colr.c */
  116. int D_translate_color(const char *);
  117. int D_parse_color(const char *, int);
  118. int D_use_color(int);
  119. int D_color_number_to_RGB(int, int *, int *, int *);
  120. void D_RGB_color(int, int, int);
  121. /* window.c */
  122. void D_erase(const char *);
  123. /* r_raster.c */
  124. int D_open_driver(void);
  125. void D_close_driver(void);
  126. int D_save_command(const char *);
  127. void D__erase(void);
  128. void D_text_size(double, double);
  129. void D_text_rotation(double);
  130. void D_text(const char *);
  131. void D_font(const char *);
  132. void D_encoding(const char *);
  133. void D_font_list(char ***, int *);
  134. void D_font_info(char ***, int *);
  135. void D_get_clip_window(double *, double *, double *, double *);
  136. void D_set_clip_window(double, double, double, double);
  137. void D_get_frame(double *, double *, double *, double *);
  138. void D_get_screen(double *, double *, double *, double *);
  139. void D_set_clip_window_to_map_window(void);
  140. void D_set_clip_window_to_screen_window(void);
  141. const char *D_get_file(void);
  142. #endif /* GRASS_DISPLAYDEFS_H */