21 #define FIRST_VECT_ID 20656 37 G_debug(5,
"gv_get_vect() id=%d",
id);
39 for (gv = Vect_top; gv; gv = gv->
next) {
60 G_debug(5,
"gv_get_prev_vect(): id=%d",
id);
62 for (pv = Vect_top; pv; pv = pv->
next) {
81 for (i = 0, gv = Vect_top; gv; gv = gv->
next, i++) ;
83 G_debug(5,
"gv_num_vects(): num=%d", i);
102 for (lv = Vect_top; lv->
next; lv = lv->
next) ;
159 for (gv = Vect_top; gv; gv = gv->
next) {
161 for (i = 0; i < gv->
n_surfs; i++) {
164 for (j = i; j < gv->
n_surfs - 1; j++) {
243 G_debug(5,
"gv_delete_vect(): id=%d",
id);
268 if (fv == Vect_top) {
269 if (Vect_top->
next) {
281 for (gv = Vect_top; gv && !found; gv = gv->
next) {
284 if (gv->
next == fv) {
322 for (gln = fv->
lines; gln;) {
323 if (gln->
dims == 2) {
328 if (gln->
dims == 3) {
365 for (i = 0; i < nsurfs && i <
MAX_SURFS; i++) {
geosurf * gs_get_surf(int)
Get geosurf struct.
void gv_delete_vect(int id)
Delete vector set (unload)
geovect * gv_get_prev_vect(int id)
Get previous vector set.
gvstyle_thematic * tstyle
void G_free(void *)
Free allocated memory.
void sub_Vectmem(int)
Tracking memory.
int gv_free_vect(geovect *fv)
Free allocated memory for geovect struct.
int drape_surf_id[MAX_SURFS]
void gv_update_drapesurfs(void)
Update drape surfaces.
int gv_set_defaults(geovect *gv)
Set attributes of vector set to default values.
struct g_vect_style * next
geovect * gv_get_vect(int id)
Get vector set.
geovect * gv_get_last_vect(void)
Get last loaded vector set.
void G_zero(void *, int)
Zero out a buffer, buf, of length i.
geovect * gv_get_new_vect(void)
Allocate memory for new vector set.
int gv_num_vects(void)
Get number of loaded vector sets.
int gv_init_vect(geovect *gv)
Initialize geovect struct.
int G_debug(int, const char *,...) __attribute__((format(printf
void gv_free_vectmem(geovect *fv)
Free allocated memory.
void gv_set_drapesurfs(geovect *gv, int *hsurfs, int nsurfs)
Set drape surfaces for vector set.