2
#include <grass/raster.h>
4
/* overlay ground control points on the display */
6
int display_points(int in_color)
9
display_points_in_view(VIEW_MAP1, in_color,
10
group.points.e1, group.points.n1,
11
group.points.status, group.points.count);
13
display_points_in_view(VIEW_MAP1_ZOOM, in_color,
14
group.points.e1, group.points.n1,
15
group.points.status, group.points.count);
17
display_points_in_view(VIEW_MAP2, in_color,
18
group.points.e2, group.points.n2,
19
group.points.status, group.points.count);
21
display_points_in_view(VIEW_MAP2_ZOOM, in_color,
22
group.points.e2, group.points.n2,
23
group.points.status, group.points.count);
28
int display_points_in_view(View * view, int in_color,
29
double *east, double *north, int *status,
32
if (!view->cell.configured)
35
if (in_color && (*status > 0))
36
R_standard_color(GREEN);
37
else if (in_color && (*status == 0))
38
R_standard_color(RED);
40
R_standard_color(GREY);
42
display_one_point(view, *east++, *north++);
48
int display_one_point(View * view, double east, double north)
52
row = northing_to_row(&view->cell.head, north) + .5;
53
col = easting_to_col(&view->cell.head, east) + .5;
54
y = row_to_view(view, row);
55
x = col_to_view(view, col);
56
if (In_view(view, x, y))