20 #define FIRST_SITE_ID 21720 36 G_debug(5,
"gp_get_site(%d)",
id);
38 for (gp = Site_top; gp; gp = gp->
next) {
59 G_debug(5,
"gp_get_prev_site(%d)",
id);
61 for (pp = Site_top; pp; pp = pp->
next) {
80 for (i = 0, gp = Site_top; gp; gp = gp->
next, i++) ;
82 G_debug(5,
"gp_num_sites(): n=%d", i);
103 for (lp = Site_top; lp->
next; lp = lp->
next) ;
159 for (gp = Site_top; gp; gp = gp->
next) {
161 for (i = 0; i < gp->
n_surfs; i++) {
164 for (j = i; j < gp->
n_surfs - 1; j++) {
266 if (fp == Site_top) {
267 if (Site_top->
next) {
279 for (gp = Site_top; gp && !found; gp = gp->
next) {
282 if (gp->
next == fp) {
320 for (gpt = fp->
points; gpt;) {
356 for (i = 0; i < nsurfs && i <
MAX_SURFS; i++) {
int gp_free_site(geosite *fp)
Free allocated geosite struct.
geosurf * gs_get_surf(int)
Get geosurf struct.
int gp_set_defaults(geosite *gp)
Set default value for geosite struct.
int drape_surf_id[MAX_SURFS]
void G_free(void *)
Free allocated memory.
geosite * gp_get_last_site(void)
Get last point set.
int gp_num_sites(void)
Get number of loaded point sets.
void gp_set_drapesurfs(geosite *gp, int hsurfs[], int nsurfs)
Set drape surfaces.
gvstyle_thematic * tstyle
geosite * gp_get_site(int id)
Get geosite struct.
void gp_update_drapesurfs(void)
Update drape surfaces.
geosite * gp_get_new_site(void)
Create new geosite instance and add it to list.
geosite * gp_get_prev_site(int id)
Get previous geosite struct from list.
void G_zero(void *, int)
Zero out a buffer, buf, of length i.
void gp_free_sitemem(geosite *fp)
Free geosite (lower level)
int gp_init_site(geosite *gp)
Initialize geosite struct.
int GS_get_longdim(float *)
Get largest dimension.
void gp_delete_site(int id)
Delete point set and remove from list.
int G_debug(int, const char *,...) __attribute__((format(printf