GRASS GIS 8 Programmer's Manual  8.2.2dev(2023)-3d2c704037
vedit.h
Go to the documentation of this file.
1 #ifndef GRASS_VEDIT_H
2 #define GRASS_VEDIT_H
3 
4 #include <grass/gis.h>
5 #include <grass/vector.h>
6 
7 #define NO_SNAP 0 /* snapping disabled */
8 #define SNAP 1 /* snapping enabled for nodes */
9 #define SNAPVERTEX 2 /* snapping enabled for vertex also */
10 
11 #define QUERY_UNKNOWN -1
12 #define QUERY_LENGTH 0 /* select by line length */
13 #define QUERY_DANGLE 1 /* select dangles */
14 
15 /* used by Vedit_render_map() */
16 #define TYPE_POINT 0x01
17 #define TYPE_LINE 0x02
18 #define TYPE_BOUNDARYNO 0x04
19 #define TYPE_BOUNDARYTWO 0x08
20 #define TYPE_BOUNDARYONE 0x10
21 #define TYPE_CENTROIDIN 0x20
22 #define TYPE_CENTROIDOUT 0x40
23 #define TYPE_CENTROIDDUP 0x80
24 #define TYPE_NODEONE 0x100
25 #define TYPE_NODETWO 0x200
26 #define TYPE_VERTEX 0x400
27 #define TYPE_AREA 0x800
28 #define TYPE_ISLE 0x1000
29 #define TYPE_DIRECTION 0x2000
30 
31 #define DRAW_POINT 0x01
32 #define DRAW_LINE 0x02
33 #define DRAW_BOUNDARYNO 0x04
34 #define DRAW_BOUNDARYTWO 0x08
35 #define DRAW_BOUNDARYONE 0x10
36 #define DRAW_CENTROIDIN 0x20
37 #define DRAW_CENTROIDOUT 0x40
38 #define DRAW_CENTROIDDUP 0x80
39 #define DRAW_NODEONE 0x100
40 #define DRAW_NODETWO 0x200
41 #define DRAW_VERTEX 0x400
42 #define DRAW_AREA 0x800
43 #define DRAW_DIRECTION 0x1000
44 
45 struct rpoint {
46  /* screen coordinates */
47  int x, y;
48 };
49 
50 struct robject {
51  /* object to be rendered */
52  int fid; /* feature id */
53  int type;
54  int npoints;
55  struct rpoint *point; /* list of points */
56 };
57 
58 struct robject_list {
59  /* list of objects to be rendered */
60  int nitems;
61  struct robject **item;
62 };
63 
64 #include <grass/defs/vedit.h>
65 
66 #endif /* GRASS_VEDIT_H */
struct rpoint * point
Definition: vedit.h:55
int type
Definition: vedit.h:53
int nitems
Definition: vedit.h:60
struct robject ** item
Definition: vedit.h:61
Definition: vedit.h:50
int y
Definition: vedit.h:47
int fid
Definition: vedit.h:52
int npoints
Definition: vedit.h:54
Definition: vedit.h:45
int x
Definition: vedit.h:47