GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-b4e4cb0fe9
defs/vedit.h
Go to the documentation of this file.
1 #ifndef GRASS_VEDITDEFS_H
2 #define GRASS_VEDITDEFS_H
3 
4 /* break.c */
5 int Vedit_split_lines(struct Map_info *, struct ilist *, struct line_pnts *,
6  double, struct ilist *);
7 int Vedit_connect_lines(struct Map_info *, struct ilist *, double);
8 
9 /* extend.c */
10 int Vedit_extend_lines(struct Map_info *, struct ilist *, int, int, double);
11 
12 /* cats.c */
13 int Vedit_modify_cats(struct Map_info *, struct ilist *, int, int,
14  struct cat_list *);
15 
16 /* copy.c */
17 int Vedit_copy_lines(struct Map_info *, struct Map_info *, struct ilist *);
18 
19 /* chtype.c */
20 int Vedit_chtype_lines(struct Map_info *, struct ilist *);
21 
22 /* delete.c */
23 int Vedit_delete_lines(struct Map_info *, struct ilist *);
24 int Vedit_delete_area_centroid(struct Map_info *, int);
25 int Vedit_delete_area(struct Map_info *, int);
26 int Vedit_delete_areas_cat(struct Map_info *, int, int);
27 
28 /* distance.c */
29 double Vedit_get_min_distance(struct line_pnts *, struct line_pnts *, int,
30  int *);
31 
32 /* flip.c */
33 int Vedit_flip_lines(struct Map_info *, struct ilist *);
34 
35 /* merge.c */
36 int Vedit_merge_lines(struct Map_info *, struct ilist *);
37 
38 /* move.c */
39 int Vedit_move_lines(struct Map_info *, struct Map_info **, int, struct ilist *,
40  double, double, double, int, double);
41 
42 /* render.c */
43 struct robject_list *Vedit_render_map(struct Map_info *, struct bound_box *,
44  int, double, double, int, int, double);
45 
46 /* select.c */
47 int Vedit_select_by_query(struct Map_info *, int, int, double, int,
48  struct ilist *);
49 
50 /* snap.c */
51 int Vedit_snap_point(struct Map_info *, int, double *, double *, double *,
52  double, int);
53 int Vedit_snap_line(struct Map_info *, struct Map_info **, int, int,
54  struct line_pnts *, double, int);
55 int Vedit_snap_lines(struct Map_info *, struct Map_info **, int, struct ilist *,
56  double, int);
57 
58 /* vertex.c */
59 int Vedit_move_vertex(struct Map_info *, struct Map_info **, int,
60  struct ilist *, struct line_pnts *, double, double,
61  double, double, double, int, int);
62 int Vedit_add_vertex(struct Map_info *Map, struct ilist *, struct line_pnts *,
63  double);
64 int Vedit_remove_vertex(struct Map_info *, struct ilist *, struct line_pnts *,
65  double);
66 
67 /* zbulk.c */
68 int Vedit_bulk_labeling(struct Map_info *, struct ilist *, double, double,
69  double, double, double, double);
70 
71 #endif /* GRASS_VEDITDEFS_H */
int Vedit_snap_point(struct Map_info *, int, double *, double *, double *, double, int)
Snap given point to the nearest primitive.
Definition: vedit/snap.c:28
int Vedit_extend_lines(struct Map_info *, struct ilist *, int, int, double)
Extend lines in given threshold.
Definition: extend.c:68
int Vedit_remove_vertex(struct Map_info *, struct ilist *, struct line_pnts *, double)
Remove vertex from line.
Definition: vertex.c:276
int Vedit_delete_area_centroid(struct Map_info *, int)
Delete area (centroid and set of boundaries) by centroid.
struct robject_list * Vedit_render_map(struct Map_info *, struct bound_box *, int, double, double, int, int, double)
Render vector features into list.
int Vedit_modify_cats(struct Map_info *, struct ilist *, int, int, struct cat_list *)
Add / remove categories.
int Vedit_chtype_lines(struct Map_info *, struct ilist *)
Change primitive type.
Definition: chtype.c:29
int Vedit_move_lines(struct Map_info *, struct Map_info **, int, struct ilist *, double, double, double, int, double)
Move selected primitives.
int Vedit_snap_lines(struct Map_info *, struct Map_info **, int, struct ilist *, double, int)
Snap lines/boundaries.
Definition: vedit/snap.c:170
int Vedit_delete_lines(struct Map_info *, struct ilist *)
Delete selected features.
int Vedit_delete_area(struct Map_info *, int)
Delete area (centroid + set of boundaries) by id.
int Vedit_move_vertex(struct Map_info *, struct Map_info **, int, struct ilist *, struct line_pnts *, double, double, double, double, double, int, int)
Move all vertices in bounding box(es)
Definition: vertex.c:33
int Vedit_add_vertex(struct Map_info *Map, struct ilist *, struct line_pnts *, double)
Add new vertex to line.
Definition: vertex.c:189
int Vedit_delete_areas_cat(struct Map_info *, int, int)
Delete vector areas of given category.
int Vedit_select_by_query(struct Map_info *, int, int, double, int, struct ilist *)
int Vedit_bulk_labeling(struct Map_info *, struct ilist *, double, double, double, double, double, double)
Lines z-bulk labeling.
Definition: zbulk.c:32
int Vedit_connect_lines(struct Map_info *, struct ilist *, double)
Connect lines in given threshold.
Definition: break.c:158
int Vedit_split_lines(struct Map_info *, struct ilist *, struct line_pnts *, double, struct ilist *)
Split selected lines on given position.
Definition: break.c:32
int Vedit_snap_line(struct Map_info *, struct Map_info **, int, int, struct line_pnts *, double, int)
Snap selected primitive to its nearest primitive.
Definition: vedit/snap.c:97
double Vedit_get_min_distance(struct line_pnts *, struct line_pnts *, int, int *)
Calculate distances between two lines.
int Vedit_copy_lines(struct Map_info *, struct Map_info *, struct ilist *)
Copy selected primitives.
int Vedit_merge_lines(struct Map_info *, struct ilist *)
Merge lines/boundaries.
Definition: merge.c:47
int Vedit_flip_lines(struct Map_info *, struct ilist *)
Flip direction of selected lines.
Definition: flip.c:25
Vector map info.
Definition: dig_structs.h:1243
Bounding box.
Definition: dig_structs.h:64
Category list.
Definition: dig_structs.h:1697
List of integers.
Definition: gis.h:709
Feature geometry info - coordinates.
Definition: dig_structs.h:1651