displaylib.dox 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. /*! \page displaylib GRASS Display Library
  2. by GRASS Development Team (http://grass.osgeo.org)
  3. This library provides a wide assortment of higher level graphics
  4. commands which in turn use the graphics raster library primitives. It
  5. is highly recommended that this section be used to understand how some
  6. of the GRASS graphics commands operate. Such modules like
  7. <tt>d.vect</tt>, <tt>d.graph</tt>, and <tt>d.rast</tt> demonstrate how
  8. these routines work together.
  9. The routines fall into four basic sets:
  10. -# frame creation and management;
  11. -# coordinate conversion routines;
  12. -# specialized efficient raster display routines, and;
  13. -# assorted miscellaneous routines like pop-up menus and line clipping.
  14. Note: All routines and global variables in this library, documented or
  15. undocumented, start with the prefix <b>D_</b>. To avoid name
  16. conflicts, programmers should not create variables or routines in
  17. their own modules which use this prefix.
  18. \section Loading_the_Display_Library Loading the Display Library
  19. The library is loaded by specifying
  20. \verbatim
  21. $(DISPLAYLIB)
  22. \endverbatim
  23. in the <tt>Makefile</tt>.
  24. \section ListOfFns List of functions
  25. The library functions are defined in <tt>display.h</tt> header.
  26. \code
  27. #include <grass/display.h>
  28. \endcode
  29. TODO: Order the list
  30. - D_update_conversions()
  31. - D_fit_d_to_u()
  32. - D_fit_u_to_d()
  33. - D_show_conversions()
  34. - D_do_conversions()
  35. - D_is_lat_lon()
  36. - D_get_d_to_a_xconv()
  37. - D_get_d_to_a_yconv()
  38. - D_get_d_to_u_xconv()
  39. - D_get_d_to_u_yconv()
  40. - D_get_a_to_u_xconv()
  41. - D_get_a_to_u_yconv()
  42. - D_get_a_to_d_xconv()
  43. - D_get_a_to_d_yconv()
  44. - D_get_u_to_d_xconv()
  45. - D_get_u_to_d_yconv()
  46. - D_get_u_to_a_xconv()
  47. - D_get_u_to_a_yconv()
  48. - D_get_ns_resolution()
  49. - D_get_ew_resolution()
  50. - D_get_u_west()
  51. - D_get_u_east()
  52. - D_get_u_north()
  53. - D_get_u_south()
  54. - D_get_a_west()
  55. - D_get_a_east()
  56. - D_get_a_north()
  57. - D_get_a_south()
  58. - D_get_d_west()
  59. - D_get_d_east()
  60. - D_get_d_north()
  61. - D_get_d_south()
  62. - D_set_region()
  63. - D_set_src()
  64. - D_get_src()
  65. - D_set_grid()
  66. - D_get_grid()
  67. - D_set_dst()
  68. - D_get_dst()
  69. - D_get_u()
  70. - D_get_a()
  71. - D_get_d()
  72. - D_d_to_a_row()
  73. - D_d_to_a_col()
  74. - D_d_to_u_row()
  75. - D_d_to_u_col()
  76. - D_a_to_u_row()
  77. - D_a_to_u_col()
  78. - D_a_to_d_row()
  79. - D_a_to_d_col()
  80. - D_u_to_d_row()
  81. - D_u_to_d_col()
  82. - D_u_to_a_row()
  83. - D_u_to_a_col()
  84. - D_set_clip()
  85. - D_clip_to_map()
  86. - D_set_clip_mode()
  87. - D_set_reduction()
  88. - D_line_width()
  89. - D_get_text_box()
  90. - D_pos_abs()
  91. - D_pos_rel()
  92. - D_move_abs()
  93. - D_move_rel()
  94. - D_cont_abs()
  95. - D_cont_rel()
  96. - D_line_abs()
  97. - D_line_rel()
  98. - D_polydots_abs()
  99. - D_polydots_rel()
  100. - D_polyline_abs()
  101. - D_polyline_rel()
  102. - D_polygon_abs()
  103. - D_polygon_rel()
  104. - D_box_abs()
  105. - D_box_rel()
  106. - D_begin()
  107. - D_end()
  108. - D_close()
  109. - D_stroke()
  110. - D_fill()
  111. - D_dots()
  112. - D_plot_icon()
  113. - D_draw_raster()
  114. - D_draw_d_raster()
  115. - D_draw_f_raster()
  116. - D_draw_c_raster()
  117. - D_draw_cell()
  118. - D_cell_draw_begin()
  119. - D_draw_raster_RGB()
  120. - D_cell_draw_end()
  121. - D_set_overlay_mode()
  122. - D_color()
  123. - D_c_color()
  124. - D_d_color()
  125. - D_f_color()
  126. - D_color_of_type()
  127. - D_setup()
  128. - D_setup_unity()
  129. - D_setup2()
  130. - D_symbol()
  131. - D_symbol2()
  132. - D_translate_color()
  133. - D_parse_color()
  134. - D_use_color()
  135. - D_color_number_to_RGB()
  136. - D_RGB_color()
  137. - D_erase()
  138. - D_open_driver()
  139. - D_close_driver()
  140. - D_get_window()
  141. - D__erase()
  142. - D_text_size()
  143. - D_text_rotation()
  144. - D_text()
  145. - D_font()
  146. - D_encoding()
  147. - D_font_list()
  148. - D_font_info()
  149. \section Authors Authors
  150. - Original author CERL
  151. - Major rewrite by Glynn Clements (2008)
  152. */