GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
|
OGSF library - loading and manipulating point sets (lower level functions) More...
Go to the source code of this file.
Macros | |
#define | FIRST_SITE_ID 21720 |
Functions | |
geosite * | gp_get_site (int id) |
Get geosite struct. More... | |
geosite * | gp_get_prev_site (int id) |
Get previous geosite struct from list. More... | |
int | gp_num_sites (void) |
Get number of loaded point sets. More... | |
geosite * | gp_get_last_site (void) |
Get last point set. More... | |
geosite * | gp_get_new_site (void) |
Create new geosite instance and add it to list. More... | |
void | gp_update_drapesurfs (void) |
Update drape surfaces. More... | |
int | gp_set_defaults (geosite *gp) |
Set default value for geosite struct. More... | |
int | gp_init_site (geosite *gp) |
Initialize geosite struct. More... | |
void | gp_delete_site (int id) |
Delete point set and remove from list. More... | |
int | gp_free_site (geosite *fp) |
Free allocated geosite struct. More... | |
void | gp_free_sitemem (geosite *fp) |
Free geosite (lower level) More... | |
void | gp_set_drapesurfs (geosite *gp, int hsurfs[], int nsurfs) |
Set drape surfaces. More... | |
OGSF library - loading and manipulating point 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 gp.c.
#define FIRST_SITE_ID 21720 |
Definition at line 20 of file gp.c.
Referenced by gp_get_new_site().
void gp_delete_site | ( | int | id | ) |
Delete point set and remove from list.
id | point set id |
Definition at line 235 of file gp.c.
References G_debug(), gp_free_site(), and gp_get_site().
Referenced by GP_delete_site().
int gp_free_site | ( | geosite * | fp | ) |
Free allocated geosite struct.
fp | pointer to geosite struct |
Definition at line 258 of file gp.c.
References G_debug(), G_free(), gp_free_sitemem(), g_site::gsite_id, g_site::next, and NULL.
Referenced by gp_delete_site().
void gp_free_sitemem | ( | geosite * | fp | ) |
Free geosite (lower level)
fp | pointer to geosite struct |
Definition at line 307 of file gp.c.
Referenced by gp_free_site().
geosite* gp_get_last_site | ( | void | ) |
Get last point set.
Definition at line 93 of file gp.c.
References G_debug(), g_site::gsite_id, g_site::next, and NULL.
Referenced by gp_get_new_site().
geosite* gp_get_new_site | ( | void | ) |
Create new geosite instance and add it to list.
Definition at line 116 of file gp.c.
References FIRST_SITE_ID, G_debug(), G_malloc, G_zero(), gp_get_last_site(), g_site::gsite_id, g_site::hstyle, g_site::next, NULL, and g_site::style.
geosite* gp_get_prev_site | ( | int | id | ) |
Get previous geosite struct from list.
id | point set id |
Definition at line 55 of file gp.c.
References G_debug(), g_site::gsite_id, g_site::next, and NULL.
geosite* gp_get_site | ( | int | id | ) |
Get geosite struct.
id | point set id |
Definition at line 32 of file gp.c.
References G_debug(), g_site::gsite_id, g_site::next, and NULL.
Referenced by gp_delete_site(), GP_draw_site(), GP_Get_ClientData(), GP_get_trans(), GP_get_zmode(), GP_select_surf(), GP_Set_ClientData(), GP_set_trans(), GP_set_zmode(), GP_site_exists(), GP_surf_is_selected(), GP_unselect_surf(), GP_unset_style_thematic(), and Nviz_set_vpoint_attr_default().
int gp_init_site | ( | geosite * | gp | ) |
int gp_num_sites | ( | void | ) |
Get number of loaded point sets.
Definition at line 75 of file gp.c.
References G_debug(), and g_site::next.
Referenced by GP_num_sites().
int gp_set_defaults | ( | geosite * | gp | ) |
Set default value for geosite struct.
gp | pointer to geosite struct |
Definition at line 186 of file gp.c.
References g_vect_style::color, G_debug(), GS_get_longdim(), g_site::gsite_id, g_site::hstyle, NULL, g_vect_style::size, ST_X, g_site::style, g_vect_style::symbol, g_site::tstyle, and g_vect_style::width.
void gp_set_drapesurfs | ( | geosite * | gp, |
int | hsurfs[], | ||
int | nsurfs | ||
) |
Set drape surfaces.
gp | pointer to geosite struct |
hsurf | list of surfaces (id) |
nsurf | number of surfaces |
Definition at line 352 of file gp.c.
References g_site::drape_surf_id, and MAX_SURFS.
void gp_update_drapesurfs | ( | void | ) |
Update drape surfaces.
Call after surface is deleted
Definition at line 154 of file gp.c.
References g_site::drape_surf_id, gs_get_surf(), g_site::n_surfs, g_site::next, and NULL.