2
#include <grass/vector.h>
3
#include <grass/display.h>
4
#include <grass/glocale.h>
5
#include "local_proto.h"
8
int display_vert(struct Map_info *Map, int type, LATTR *lattr, double dsize)
12
struct line_pnts *Points;
14
msize = dsize * (D_d_to_u_col(2.0) - D_d_to_u_col(1.0)); /* do it better */
16
G_debug(1, "display vertices:");
17
Points = Vect_new_line_struct();
19
D_RGB_color(lattr->color.R, lattr->color.G, lattr->color.B);
22
Vect_set_constraint_type(Map, type);
24
ltype = Vect_read_next_line(Map, Points, NULL);
27
G_fatal_error(_("Unable to read vector map"));
32
if (!(ltype & GV_LINES))
35
for (i = 0; i < Points->n_points; i++) {
36
D_plot_icon(Points->x[i], Points->y[i], G_ICON_CROSS, 0, msize);
39
Vect_remove_constraints(Map);
41
Vect_destroy_line_struct(Points);