grass  7.8.6
About: GRASS (Geographic Resources Analysis Support System) is a raster- and vector-based GIS, image processing system, graphics production system and spatial modeling system.
  Fossies Dox: grass-7.8.6.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

gvd.c File Reference

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"
Include dependency graph for gvd.c:

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...
 

Detailed Description

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.

Author
Bill Brown USACERL (December 1993)
Doxygenized by Martin Landa (June 2008)

Definition in file gvd.c.

Macro Definition Documentation

◆ CHK_FREQ

#define CHK_FREQ   5

Definition at line 23 of file gvd.c.

Function Documentation

◆ gs_clip_segment()

int gs_clip_segment ( geosurf gs,
float *  bgn,
float *  end,
float *  region 
)

Clip segment.

Todo:
to use fast clipping and move to gs.c
Parameters
gssurface
bgnbegin point
endend point
regionregion settings
Returns
1 segment inside region
0 segment outside region

Definition at line 39 of file gvd.c.

References region, VCOL2X, VCOLS, VROW2Y, VROWS, X, Y, and g_surf::yrange.

Referenced by gvd_vect().

◆ gvd_draw_lineonsurf()

void gvd_draw_lineonsurf ( geosurf gs,
float *  bgn,
float *  end,
int  color 
)

Draw line on surface.

Parameters
gssurface
bgnfirst line point
endend line point
colorcolor 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().

◆ gvd_vect()

int gvd_vect ( geovect gv,
geosurf gs,
int  do_fast 
)