File: displaylib.dox

package info (click to toggle)
grass 8.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 277,040 kB
  • sloc: ansic: 460,798; python: 227,732; cpp: 42,026; sh: 11,262; makefile: 7,007; xml: 3,637; sql: 968; lex: 520; javascript: 484; yacc: 450; asm: 387; perl: 157; sed: 25; objc: 6; ruby: 4
file content (277 lines) | stat: -rw-r--r-- 3,434 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
/*! \page displaylib GRASS Display Library

by GRASS Development Team (https://grass.osgeo.org)

This library provides a wide assortment of higher level graphics
commands which in turn use the graphics library primitives. It is
highly recommended that this section be used to understand how some of
the GRASS graphics commands operate. Such modules like
<tt>d.vect</tt>, <tt>d.graph</tt>, and <tt>d.rast</tt> demonstrate how
these routines work together.

The routines fall into four basic sets:
-# frame creation and management;
-# coordinate conversion routines;
-# specialized efficient raster display routines, and;
-# assorted miscellaneous routines like pop-up menus and line clipping.

Note: All routines and global variables in this library, documented or
undocumented, start with <em>D_</em> prefix. To avoid name
conflicts, programmers should not create variables or routines in
their own modules which use this prefix.

\section displayLibFns List of functions

The library functions are defined in <tt>display.h</tt> header:

\code
#include <grass/display.h>
\endcode

- D_a_to_d_col()

- D_a_to_d_row()

- D_a_to_u_col()

- D_a_to_u_row()

- D_begin()

- D_box_abs()

- D_box_rel()

- D_c_color()

- D_cell_draw_begin()

- D_cell_draw_end()

- D_clip_to_map()

- D_close()

- D_close_driver()

- D_color()

- D_color_number_to_RGB()

- D_color_of_type()

- D_cont_abs()

- D_cont_rel()

- D_d_color()

- D_do_conversions()

- D_dots()

- D_draw_cell()

- D_draw_c_raster()

- D_draw_d_raster()

- D_draw_f_raster()

- D_draw_raster()

- D_draw_raster_RGB()

- D_d_to_a_col()

- D_d_to_a_row()

- D_d_to_u_col()

- D_d_to_u_row()

- D_encoding()

- D_end()

- D_erase()

- D__erase()

- D_f_color()

- D_fill()

- D_fit_d_to_u()

- D_fit_u_to_d()

- D_font()

- D_font_info()

- D_font_list()

- D_get_a()

- D_get_a_east()

- D_get_a_north()

- D_get_a_south()

- D_get_a_to_d_xconv()

- D_get_a_to_d_yconv()

- D_get_a_to_u_xconv()

- D_get_a_to_u_yconv()

- D_get_a_west()

- D_get_d()

- D_get_d_east()

- D_get_d_north()

- D_get_d_south()

- D_get_dst()

- D_get_d_to_a_xconv()

- D_get_d_to_a_yconv()

- D_get_d_to_u_xconv()

- D_get_d_to_u_yconv()

- D_get_d_west()

- D_get_ew_resolution()

- D_get_grid()

- D_get_ns_resolution()

- D_get_src()

- D_get_text_box()

- D_get_u()

- D_get_u_east()

- D_get_u_north()

- D_get_u_south()

- D_get_u_to_a_xconv()

- D_get_u_to_a_yconv()

- D_get_u_to_d_xconv()

- D_get_u_to_d_yconv()

- D_get_u_west()

- D_get_window()

- D_is_lat_lon()

- D_line_abs()

- D_line_rel()

- D_line_width()

- D_move_abs()

- D_move_rel()

- D_open_driver()

- D_parse_color()

- D_plot_icon()

- D_polydots_abs()

- D_polydots_rel()

- D_polygon_abs()

- D_polygon_rel()

- D_polyline_abs()

- D_polyline_rel()

- D_pos_abs()

- D_pos_rel()

- D_RGB_color()

- D_save_command()

- D_set_clip()

- D_set_clip_mode()

- D_set_dst()

- D_set_grid()

- D_set_overlay_mode()

- D_set_reduction()

- D_set_region()

- D_set_src()

- D_setup()

- D_setup2()

- D_setup_unity()

- D_show_conversions()

- D_stroke()

- D_symbol()

- D_symbol2()

- D_text()

- D_text_rotation()

- D_text_size()

- D_translate_color()

- D_update_conversions()

- D_use_color()

- D_u_to_a_col()

- D_u_to_a_row()

- D_u_to_d_col()

- D_u_to_d_row()

\section Authors Authors

- Original author CERL
- Major rewrite by Glynn Clements (2008)
- Minor updates by Martin Landa <landa.martin gmail.com> (2011)

*/