GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
OGSF library - loading and manipulating vector sets (lower level functions) More...
#include <stdio.h>
#include <stdlib.h>
#include <grass/gis.h>
#include <grass/gstypes.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)
GRASS OpenGL gsurf OGSF Library
(C) 1999-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 gvd.c.
#define CHK_FREQ 5 |
Definition at line 27 of file gvd.c.
Referenced by gvd_vect().
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 280 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 83 of file gvd.c.
References CHK_FREQ, free(), G_debug(), G_free(), GS_check_cancel(), gs_clip_segment(), gs_get_att_src(), GS_get_scale(), gs_get_zrange(), gs_point_is_masked(), gs_update_curmask(), gsd_bgnline(), gsd_color_func(), gsd_colormode(), gsd_do_scale(), gsd_endline(), gsd_linewidth(), gsd_popmatrix(), gsd_pushmatrix(), gsd_translate(), gsd_vert_func(), gsdrape_get_segments(), gv_decimate_lines(), malloc(), NULL, X, and Y.
Referenced by GV_draw_fastvect(), and GV_draw_vect().