GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
#include <grass/gis.h>
#include <grass/display.h>
Go to the source code of this file.
Data Structures | |
struct | rectangle |
struct | vector |
Functions | |
int | D_do_conversions (const struct Cell_head *window, int t, int b, int l, int r) |
initialize conversions More... | |
int | D_is_lat_lon (void) |
double | D_get_ns_resolution (void) |
double | D_get_ew_resolution (void) |
double | D_get_u_to_d_xconv (void) |
double | D_get_u_to_d_yconv (void) |
double | D_get_u_west (void) |
double | D_get_u_east (void) |
double | D_get_u_north (void) |
double | D_get_u_south (void) |
double | D_get_a_west (void) |
double | D_get_a_east (void) |
double | D_get_a_north (void) |
double | D_get_a_south (void) |
double | D_get_d_west (void) |
double | D_get_d_east (void) |
double | D_get_d_north (void) |
double | D_get_d_south (void) |
void | D_get_u (double x[2][2]) |
void | D_get_a (int x[2][2]) |
void | D_get_d (int x[2][2]) |
double | D_u_to_a_row (double U_row) |
earth to array (north) More... | |
double | D_u_to_a_col (double U_col) |
earth to array (east More... | |
double | D_a_to_d_row (double A_row) |
array to screen (row) More... | |
double | D_a_to_d_col (double A_col) |
array to screen (column) More... | |
double | D_u_to_d_row (double U_row) |
earth to screen (north) More... | |
double | D_u_to_d_col (double U_col) |
earth to screen (east) More... | |
double | D_d_to_u_row (double D_row) |
screen to earth (y) More... | |
double | D_d_to_u_col (double D_col) |
screen to earth (x) More... | |
double | D_d_to_a_row (double D_row) |
screen to array (y) More... | |
double | D_d_to_a_col (double D_col) |
screen to array (x) More... | |
double D_a_to_d_col | ( | double | A_col | ) |
array to screen (column)
Returns an x value in the screen coordinate system when provided the corresponding column value in the array coordinate system.
column |
Definition at line 319 of file cnversions.c.
References D, rectangle::west, and vector::x.
double D_a_to_d_row | ( | double | A_row | ) |
array to screen (row)
Returns a y value in the screen coordinate system when provided the corresponding row value in the array coordinate system.
row |
Definition at line 302 of file cnversions.c.
References D, rectangle::north, and vector::y.
double D_d_to_a_col | ( | double | D_col | ) |
screen to array (x)
Returns a column value in the array coordinate system when provided the corresponding x value in the screen coordinate system.
x |
Definition at line 415 of file cnversions.c.
References D, rectangle::west, and vector::x.
double D_d_to_a_row | ( | double | D_row | ) |
screen to array (y)
Returns a row value in the array coordinate system when provided the corresponding y value in the screen coordinate system.
y |
Definition at line 399 of file cnversions.c.
References D, rectangle::north, and vector::y.
double D_d_to_u_col | ( | double | D_col | ) |
screen to earth (x)
Returns an east value in the earth coordinate system when provided the corresponding x value in the screen coordinate system.
x |
Definition at line 383 of file cnversions.c.
References D, rectangle::west, and vector::x.
double D_d_to_u_row | ( | double | D_row | ) |
screen to earth (y)
Returns a north value in the earth coordinate system when provided the corresponding y value in the screen coordinate system.
y |
Definition at line 367 of file cnversions.c.
References D, rectangle::north, and vector::y.
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.
region | |
top | |
bottom | |
left | |
right |
Definition at line 69 of file cnversions.c.
References D, rectangle::east, rectangle::north, rectangle::south, rectangle::west, vector::x, and vector::y.
Referenced by D_cell_draw_setup(), and D_setup().
void D_get_a | ( | int | x[2][2] | ) |
Definition at line 244 of file cnversions.c.
References rectangle::east, int, rectangle::north, rectangle::south, and rectangle::west.
Referenced by D_cell_draw_setup().
double D_get_a_east | ( | void | ) |
Definition at line 206 of file cnversions.c.
References rectangle::east.
double D_get_a_north | ( | void | ) |
Definition at line 210 of file cnversions.c.
References rectangle::north.
double D_get_a_south | ( | void | ) |
Definition at line 214 of file cnversions.c.
References rectangle::south.
double D_get_a_west | ( | void | ) |
Definition at line 202 of file cnversions.c.
References rectangle::west.
void D_get_d | ( | int | x[2][2] | ) |
Definition at line 252 of file cnversions.c.
Referenced by D_cell_draw_setup().
double D_get_d_east | ( | void | ) |
Definition at line 223 of file cnversions.c.
References D.
Referenced by D_set_clip_window_to_map_window().
double D_get_d_north | ( | void | ) |
Definition at line 227 of file cnversions.c.
References D.
Referenced by D_set_clip_window_to_map_window().
double D_get_d_south | ( | void | ) |
Definition at line 231 of file cnversions.c.
References D.
Referenced by D_set_clip_window_to_map_window().
double D_get_d_west | ( | void | ) |
Definition at line 219 of file cnversions.c.
References D.
Referenced by D_set_clip_window_to_map_window().
double D_get_ew_resolution | ( | void | ) |
Definition at line 171 of file cnversions.c.
References vector::x.
double D_get_ns_resolution | ( | void | ) |
Definition at line 167 of file cnversions.c.
References vector::y.
void D_get_u | ( | double | x[2][2] | ) |
Definition at line 236 of file cnversions.c.
References rectangle::east, rectangle::north, rectangle::south, and rectangle::west.
double D_get_u_east | ( | void | ) |
Definition at line 189 of file cnversions.c.
References rectangle::east.
Referenced by D_clip_to_map().
double D_get_u_north | ( | void | ) |
Definition at line 193 of file cnversions.c.
References rectangle::north.
Referenced by D_clip_to_map().
double D_get_u_south | ( | void | ) |
Definition at line 197 of file cnversions.c.
References rectangle::south.
Referenced by D_clip_to_map().
double D_get_u_to_d_xconv | ( | void | ) |
Definition at line 176 of file cnversions.c.
References vector::x.
double D_get_u_to_d_yconv | ( | void | ) |
Definition at line 180 of file cnversions.c.
References vector::y.
double D_get_u_west | ( | void | ) |
Definition at line 185 of file cnversions.c.
References rectangle::west.
Referenced by D_clip_to_map().
int D_is_lat_lon | ( | void | ) |
Definition at line 162 of file cnversions.c.
Referenced by D_box_clip(), D_cont_clip(), D_polydots_clip(), D_polygon_clip(), D_polygon_cull(), D_polyline_clip(), and D_polyline_cull().
double D_u_to_a_col | ( | double | U_col | ) |
earth to array (east
Returns a column value in the array coordinate system when provided the corresponding east value in the earth coordinate system.
east |
Definition at line 286 of file cnversions.c.
References rectangle::west, and vector::x.
double D_u_to_a_row | ( | double | U_row | ) |
earth to array (north)
Returns a row value in the array coordinate system when provided the corresponding north value in the earth coordinate system.
north |
Definition at line 270 of file cnversions.c.
References rectangle::north, and vector::y.
double D_u_to_d_col | ( | double | U_col | ) |
earth to screen (east)
Returns an x value in the screen coordinate system when provided the corresponding east value in the earth coordinate system.
east |
Definition at line 351 of file cnversions.c.
References D, rectangle::west, and vector::x.
double D_u_to_d_row | ( | double | U_row | ) |
earth to screen (north)
Returns a y value in the screen coordinate system when provided the corresponding north value in the earth coordinate system.
north |
Definition at line 335 of file cnversions.c.
References D, rectangle::north, and vector::y.