|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-ddeab64dbf
|

Go to the source code of this file.
array to screen (column)
Returns an x value in the screen coordinate system when provided the corresponding column value in the array coordinate system.
| A_col | column |
Definition at line 486 of file cnversions.c.
References D.
array to screen (row)
Returns a y value in the screen coordinate system when provided the corresponding row value in the array coordinate system.
| A_row | row |
Definition at line 471 of file cnversions.c.
References D.
array to earth (column)
Returns an x value in the earth coordinate system when provided the corresponding column value in the array coordinate system.
| A_col | column |
Definition at line 457 of file cnversions.c.
array to earth (row)
Returns a y value in the earth coordinate system when provided the corresponding row value in the array coordinate system.
| A_row | row |
Definition at line 442 of file cnversions.c.
screen to array (x)
Returns a column value in the array coordinate system when provided the corresponding x value in the screen coordinate system.
| D_col | x |
Definition at line 400 of file cnversions.c.
References D.
screen to array (y)
Returns a row value in the array coordinate system when provided the corresponding y value in the screen coordinate system.
| D_row | y |
Definition at line 386 of file cnversions.c.
References D.
screen to earth (x)
Returns an east value in the earth coordinate system when provided the corresponding x value in the screen coordinate system.
| D_col | x |
Definition at line 428 of file cnversions.c.
References D.
Referenced by D_get_text_box().
screen to earth (y)
Returns a north value in the earth coordinate system when provided the corresponding y value in the screen coordinate system.
| D_row | y |
Definition at line 414 of file cnversions.c.
References D.
Referenced by D_get_text_box().
initialize conversions
The relationship between the earth region and the top, bottom, left, and right screen coordinates is established, which then allows conversions between all three coordinate systems to be performed. Note this routine is called by D_setup.
| window | region |
| t | top |
| b | bottom |
| l | left |
| r | right |
Definition at line 143 of file cnversions.c.
References b, D_fit_d_to_u(), D_set_dst(), D_set_region(), D_show_conversions(), D_update_conversions(), l, r, and t.
Referenced by D_setup().
Definition at line 97 of file cnversions.c.
References D.
Referenced by D_do_conversions(), and D_setup2().
Definition at line 102 of file cnversions.c.
References D.
Definition at line 239 of file cnversions.c.
Definition at line 243 of file cnversions.c.
Definition at line 247 of file cnversions.c.
Definition at line 184 of file cnversions.c.
Definition at line 188 of file cnversions.c.
Definition at line 176 of file cnversions.c.
Referenced by D_get_ew_resolution().
Definition at line 180 of file cnversions.c.
Referenced by D_get_ns_resolution().
Definition at line 235 of file cnversions.c.
Definition at line 369 of file cnversions.c.
Referenced by D_raster_draw_begin().
Definition at line 256 of file cnversions.c.
References D.
Referenced by D_set_clip_window_to_map_window().
Definition at line 260 of file cnversions.c.
References D.
Referenced by D_set_clip_window_to_map_window().
Definition at line 264 of file cnversions.c.
References D.
Referenced by D_set_clip_window_to_map_window().
Definition at line 160 of file cnversions.c.
Definition at line 164 of file cnversions.c.
Definition at line 168 of file cnversions.c.
Definition at line 172 of file cnversions.c.
Definition at line 252 of file cnversions.c.
References D.
Referenced by D_set_clip_window_to_map_window().
returns frame bounds in destination coordinate system
D_get_dst() returns the frame bounds in the destination coordinate system (used by R_* commands). The various D_setup() commands all set the destination coordinate system to the current frame reported by R_get_window().
| t | top |
| b | bottom |
| l | left |
| r | right |
Definition at line 345 of file cnversions.c.
Referenced by D_erase().
Definition at line 213 of file cnversions.c.
References D_get_a_to_u_xconv().
Definition at line 209 of file cnversions.c.
References D_get_a_to_u_yconv().
returns frame bounds in source coordinate system
D_get_src() returns the frame bounds in the source coordinate system (used by D_* functions)
| t | top |
| b | bottom |
| l | left |
| r | right |
Definition at line 297 of file cnversions.c.
Referenced by D_clip_to_map().
Definition at line 353 of file cnversions.c.
References x.
Definition at line 222 of file cnversions.c.
Definition at line 226 of file cnversions.c.
Definition at line 230 of file cnversions.c.
Definition at line 200 of file cnversions.c.
Definition at line 204 of file cnversions.c.
Definition at line 192 of file cnversions.c.
Definition at line 196 of file cnversions.c.
Definition at line 218 of file cnversions.c.
Definition at line 155 of file cnversions.c.
Referenced by D_dots().
Definition at line 322 of file cnversions.c.
Referenced by D_do_conversions(), D_setup2(), and D_setup_unity().
Definition at line 305 of file cnversions.c.
Referenced by D_set_region().
Definition at line 269 of file cnversions.c.
References Cell_head::cols, D_set_grid(), D_set_src(), Cell_head::east, Cell_head::north, Cell_head::proj, PROJECTION_LL, Cell_head::rows, Cell_head::south, and Cell_head::west.
Referenced by D_do_conversions().
Definition at line 276 of file cnversions.c.
Referenced by D_set_region(), D_setup2(), and D_setup_unity().
earth to array (east
Returns a column value in the array coordinate system when provided the corresponding east value in the earth coordinate system.
| U_col | east |
Definition at line 542 of file cnversions.c.
earth to array (north)
Returns a row value in the array coordinate system when provided the corresponding north value in the earth coordinate system.
| U_row | north |
Definition at line 528 of file cnversions.c.
earth to screen (east)
Returns an x value in the screen coordinate system when provided the corresponding east value in the earth coordinate system.
| U_col | east |
Definition at line 514 of file cnversions.c.
References D.
Referenced by D_dots(), and D_pos_abs().
earth to screen (north)
Returns a y value in the screen coordinate system when provided the corresponding north value in the earth coordinate system.
| U_row | north |
Definition at line 500 of file cnversions.c.
References D.
Referenced by D_dots(), and D_pos_abs().
Definition at line 90 of file cnversions.c.
References D.
Referenced by D_do_conversions(), D_setup2(), and D_setup_unity().