GRASS GIS 8 Programmer's Manual 8.3.2(2024)-exported
|
OGSF library - loading and manipulating point sets (lower level) More...
Go to the source code of this file.
Macros | |
#define | CHK_FREQ 50 |
#define | v_border 50 |
Functions | |
int | gs_point_in_region (geosurf *gs, float *pt, float *region) |
Check if point is in region. | |
void | gpd_obj (geosurf *gs, gvstyle *style, Point3 pt) |
Draw point representing object. | |
int | gpd_2dsite (geosite *gp, geosurf *gs, int do_fast UNUSED) |
Draw 2D point set. | |
int | gpd_3dsite (geosite *gp, float xo, float yo, int do_fast UNUSED) |
Draw 3D point set. | |
OGSF library - loading and manipulating point sets (lower level)
(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 gpd.c.
#define CHK_FREQ 50 |
Definition at line 22 of file gpd.c.
Referenced by gpd_2dsite(), and gpd_3dsite().
int gpd_2dsite | ( | geosite * | gp, |
geosurf * | gs, | ||
int do_fast | UNUSED ) |
Draw 2D point set.
Need to think about translations - If user translates surface, sites should automatically go with it, but translating sites should translate it relative to surface on which it's displayed
Handling mask checking here
gp | site (geosite) |
gs | surface (geosurf) |
do_fast | (unused) |
Definition at line 215 of file gpd.c.
References CHK_FREQ, gpd_obj(), GS_check_cancel(), gs_get_att_src(), gs_get_att_typbuff(), gs_point_in_region(), gs_point_is_masked(), gs_update_curmask(), gsd_checkpoint(), gsd_do_scale(), gsd_getwindow(), gsd_linewidth(), gsd_popmatrix(), gsd_pushmatrix(), gsd_translate(), NULL, viewcell_tri_interp(), X, and Y.
Referenced by GP_draw_site().
int gpd_3dsite | ( | geosite * | gp, |
float | xo, | ||
float | yo, | ||
int do_fast | UNUSED ) |
Draw 3D point set.
gp | site (geosite) |
xo,yo | |
do_fast | (unused) |
Definition at line 312 of file gpd.c.
References CHK_FREQ, gpd_obj(), GS_check_cancel(), GS_global_exag(), gsd_checkpoint(), gsd_do_scale(), gsd_getwindow(), gsd_linewidth(), gsd_popmatrix(), gsd_pushmatrix(), NULL, X, and Y.
Referenced by GP_draw_site().
void gpd_obj | ( | geosurf * | gs, |
gvstyle * | style, | ||
Point3 | pt ) |
Draw point representing object.
Do normal transforms before calling
Note gs: NULL if 3d obj or const elev surface
gs | surface (geosurf) |
style | object displaying style (highlighted or not) |
pt | 3d point (Point3) |
Definition at line 70 of file gpd.c.
References GS_global_exag(), GS_v3eq(), gsd_box(), gsd_color_func(), gsd_colormode(), gsd_cube(), gsd_diamond(), gsd_draw_asterisk(), gsd_draw_box(), gsd_draw_gyro(), gsd_popmatrix(), gsd_pushmatrix(), gsd_scale(), gsd_sphere(), and gsd_x().
Referenced by gpd_2dsite(), gpd_3dsite(), and GS_draw_X().
int gs_point_in_region | ( | geosurf * | gs, |
float * | pt, | ||
float * | region ) |
Check if point is in region.
Check for cancel every CHK_FREQ points
gs | surface (geosurf) |
pt | point (array(X,Y,Z)) |
region | region settings (array (top,bottom,left,right)) |
Definition at line 39 of file gpd.c.
References VCOL2X, VCOLS, VROW2Y, VROWS, X, and Y.
Referenced by gpd_2dsite().