21 #define FIRST_SITE_ID 21720
37 G_debug(5,
"gp_get_site(%d)",
id);
39 for (gp = Site_top; gp; gp = gp->
next) {
60 G_debug(5,
"gp_get_prev_site(%d)",
id);
62 for (pp = Site_top; pp; pp = pp->
next) {
81 for (i = 0, gp = Site_top; gp; gp = gp->
next, i++)
84 G_debug(5,
"gp_num_sites(): n=%d", i);
105 for (lp = Site_top; lp->
next; lp = lp->
next)
162 for (gp = Site_top; gp; gp = gp->
next) {
164 for (i = 0; i < gp->
n_surfs; i++) {
167 for (j = i; j < gp->
n_surfs - 1; j++) {
269 if (fp == Site_top) {
270 if (Site_top->
next) {
282 for (gp = Site_top; gp && !found; gp = gp->
next) {
285 if (gp->
next == fp) {
323 for (gpt = fp->
points; gpt;) {
359 for (i = 0; i < nsurfs && i <
MAX_SURFS; i++) {
void G_zero(void *, int)
Zero out a buffer, buf, of length i.
void G_free(void *)
Free allocated memory.
int G_debug(int, const char *,...) __attribute__((format(printf
int GS_get_longdim(float *)
Get largest dimension.
geosurf * gs_get_surf(int)
Get geosurf struct.
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.
geosite * gp_get_last_site(void)
Get last point set.
void gp_delete_site(int id)
Delete point set and remove from list.
geosite * gp_get_site(int id)
Get geosite struct.
int gp_free_site(geosite *fp)
Free allocated geosite struct.
void gp_set_drapesurfs(geosite *gp, int hsurfs[], int nsurfs)
Set drape surfaces.
void gp_free_sitemem(geosite *fp)
Free geosite (lower level)
int gp_init_site(geosite *gp)
Initialize geosite struct.
int gp_set_defaults(geosite *gp)
Set default value for geosite struct.
int gp_num_sites(void)
Get number of loaded point sets.
void gp_update_drapesurfs(void)
Update drape surfaces.
int drape_surf_id[MAX_SURFS]
gvstyle_thematic * tstyle