GRASS GIS 8 Programmer's Manual
8.2.2dev(2023)-3d2c704037
|
OGSF library - loading and manipulating vector sets (lower level functions) More...
#include <stdio.h>
#include <stdlib.h>
#include <grass/gis.h>
#include <grass/ogsf.h>
#include "rowcol.h"
Go to the source code of this file.
Macros | |
#define | CHK_FREQ 5 |
Functions | |
int | gs_clip_segment (geosurf *gs, float *bgn, float *end, float *region) |
Clip segment. More... | |
int | gvd_vect (geovect *gv, geosurf *gs, int do_fast) |
Draw vector set. More... | |
void | gvd_draw_lineonsurf (geosurf *gs, float *bgn, float *end, int color) |
Draw line on surface. More... | |
OGSF library - loading and manipulating vector sets (lower level functions)
(C) 1999-2008, 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.
Definition in file gvd.c.
int gs_clip_segment | ( | geosurf * | gs, |
float * | bgn, | ||
float * | end, | ||
float * | region | ||
) |
void gvd_draw_lineonsurf | ( | geosurf * | gs, |
float * | bgn, | ||
float * | end, | ||
int | color | ||
) |
Draw line on surface.
gs | surface |
bgn | first line point |
end | end line point |
color | color value |
Definition at line 300 of file gvd.c.
References gs_point_is_masked(), gsd_bgnline(), gsd_color_func(), gsd_endline(), gsd_vert_func(), and gsdrape_get_segments().
Draw vector set.
Need to think about translations - If user translates surface, vector should automatically go with it, but translating vector should translate it relative to surface on which it's displayed?
Handling mask checking here, but may be more appropriate to handle in get_drape_segments?
gv | vector set |
gs | surface |
do_fast | non-zero for fast mode |
Definition at line 79 of file gvd.c.
Referenced by GV_draw_fastvect(), and GV_draw_vect().