GRASS GIS 7 Programmer's Manual  7.5.svn(2017)-r71746
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vector/vedit/render.c File Reference

Vedit library - render vector features (used by wxGUI digitizer) More...

#include <math.h>
#include <grass/vedit.h>
Include dependency graph for vector/vedit/render.c:

Go to the source code of this file.

Functions

struct robject_listVedit_render_map (struct Map_info *Map, struct bound_box *box, int draw_flag, double center_easting, double center_northing, int map_width, int map_height, double map_res)
 Render vector features into list. More...
 

Detailed Description

Vedit library - render vector features (used by wxGUI digitizer)

(C) 2010-2011 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.

Author
Martin Landa <landa.martin gmail.com>

Definition in file vector/vedit/render.c.

Function Documentation

struct robject_list* Vedit_render_map ( struct Map_info Map,
struct bound_box box,
int  draw_flag,
double  center_easting,
double  center_northing,
int  map_width,
int  map_height,
double  map_res 
)

Render vector features into list.

Parameters
Mappointer to Map_info structure
boxbounding box of region to be rendered
draw_flagtypes of objects to be rendered (see vedit.h)
center_easing,center_northing,map_width,map_height,map_resvalues used for conversion en->xy
Returns
pointer to robject_list structure

Definition at line 61 of file vector/vedit/render.c.

References DRAW_AREA, DRAW_DIRECTION, DRAW_NODEONE, DRAW_NODETWO, DRAW_VERTEX, bound_box::E, robject::fid, G_debug(), GV_LINES, GV_POINTS, boxlist::id, robject_list::item, list, bound_box::N, boxlist::n_values, robject_list::nitems, NULL, bound_box::S, state, Vect_destroy_boxlist(), Vect_new_boxlist(), Vect_select_areas_by_box(), Vect_select_lines_by_box(), and bound_box::W.