Vedit library - vertex manipulation. More...
#include <grass/vedit.h>
Go to the source code of this file.
Functions | |
int | Vedit_move_vertex (struct Map_info *Map, struct Map_info **BgMap, int nbgmaps, struct ilist *List, struct line_pnts *coord, double thresh_coords, double thresh_snap, double move_x, double move_y, double move_z, int move_first, int snap) |
Move all vertices in bounding box(es). | |
int | Vedit_add_vertex (struct Map_info *Map, struct ilist *List, struct line_pnts *coord, double thresh) |
Add new vertex to line. | |
int | Vedit_remove_vertex (struct Map_info *Map, struct ilist *List, struct line_pnts *coord, double thresh) |
Remove vertex from line. |
Vedit library - vertex manipulation.
(C) 2006-2008 by the GRASS Development Team
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file vertex.c.
int Vedit_add_vertex | ( | struct Map_info * | Map, | |
struct ilist * | List, | |||
struct line_pnts * | coord, | |||
double | thresh | |||
) |
Add new vertex to line.
Shape of line is not changed.
Map | vector map | |
List | list of lines | |
coord | points location | |
thresh | find line in given threshold |
Definition at line 197 of file vertex.c.
References Vect_destroy_cats_struct(), Vect_destroy_line_struct(), Vect_line_alive(), Vect_line_distance(), Vect_line_insert_point(), Vect_line_prune(), Vect_new_cats_struct(), Vect_new_line_struct(), Vect_points_distance(), Vect_read_line(), and Vect_rewrite_line().
int Vedit_move_vertex | ( | struct Map_info * | Map, | |
struct Map_info ** | BgMap, | |||
int | nbgmaps, | |||
struct ilist * | List, | |||
struct line_pnts * | coord, | |||
double | thresh_coords, | |||
double | thresh_snap, | |||
double | move_x, | |||
double | move_y, | |||
double | move_z, | |||
int | move_first, | |||
int | snap | |||
) |
Move all vertices in bounding box(es).
Map | vector map | |
BgMap,nbgmaps | list of background vector maps for snapping | |
List | list of selected lines | |
coord | points location | |
thresh_coords | threshold value for selecting lines | |
thresh_snap | threshold value used for snapping | |
move_x,move_y,move_z | direction (move_z is used when map is 3D) | |
move_first | move only first vertex found in the bounding box | |
snap | snapping mode (see vedit.h) |
Definition at line 36 of file vertex.c.
References Vect_destroy_cats_struct(), Vect_destroy_line_struct(), Vect_is_3d(), Vect_line_alive(), Vect_new_cats_struct(), Vect_new_line_struct(), Vect_points_distance(), Vect_read_line(), Vect_rewrite_line(), and Vedit_snap_point().
int Vedit_remove_vertex | ( | struct Map_info * | Map, | |
struct ilist * | List, | |||
struct line_pnts * | coord, | |||
double | thresh | |||
) |
Remove vertex from line.
Map | vector map | |
List | list of selected lines | |
coord | points location | |
thresh | threshold value to find a line |
Definition at line 285 of file vertex.c.
References Vect_destroy_cats_struct(), Vect_destroy_line_struct(), Vect_line_alive(), Vect_line_delete_point(), Vect_new_cats_struct(), Vect_new_line_struct(), Vect_points_distance(), Vect_read_line(), and Vect_rewrite_line().