GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-36359e2344
|
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 | ||
) |
Clip segment.
gs | surface |
bgn | begin point |
end | end point |
region | region settings |
Definition at line 40 of file gvd.c.
Referenced by gvd_vect().
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 299 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.
References g_vect_style_thematic::active, g_surf::att, ATT_TOPO, CHK_FREQ, CM_COLOR, g_vect_style::color, CONST_ATT, gsurf_att::constant, g_line::dims, g_vect::fastlines, 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(), g_vect::gvect_id, g_line::highlighted, g_vect::hstyle, g_vect::lines, malloc(), MAP_ATT, g_line::next, g_line::norm, g_line::npts, NULL, OGSF_LINE, OGSF_POLYGON, g_surf::ox, g_surf::oy, g_line::p2, g_line::p3, src, g_line::style, g_vect::style, g_vect::tstyle, g_line::type, g_vect::use_z, g_vect_style::width, X, g_surf::x_trans, g_vect::x_trans, Y, g_surf::y_trans, g_vect::y_trans, Z, g_surf::z_trans, and g_vect::z_trans.
Referenced by GV_draw_fastvect(), and GV_draw_vect().