22 #define FIRST_VECT_ID 20656
38 G_debug(5,
"gv_get_vect() id=%d",
id);
40 for (gv = Vect_top; gv; gv = gv->
next) {
61 G_debug(5,
"gv_get_prev_vect(): id=%d",
id);
63 for (pv = Vect_top; pv; pv = pv->
next) {
82 for (i = 0, gv = Vect_top; gv; gv = gv->
next, i++)
85 G_debug(5,
"gv_num_vects(): num=%d", i);
104 for (lv = Vect_top; lv->
next; lv = lv->
next)
162 for (gv = Vect_top; gv; gv = gv->
next) {
164 for (i = 0; i < gv->
n_surfs; i++) {
167 for (j = i; j < gv->
n_surfs - 1; j++) {
246 G_debug(5,
"gv_delete_vect(): id=%d",
id);
271 if (fv == Vect_top) {
272 if (Vect_top->
next) {
284 for (gv = Vect_top; gv && !found; gv = gv->
next) {
287 if (gv->
next == fv) {
325 for (gln = fv->
lines; gln;) {
326 if (gln->
dims == 2) {
331 if (gln->
dims == 3) {
368 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
void sub_Vectmem(int)
Tracking memory.
geosurf * gs_get_surf(int)
Get geosurf struct.
int gv_free_vect(geovect *fv)
Free allocated memory for geovect struct.
void gv_update_drapesurfs(void)
Update drape surfaces.
int gv_init_vect(geovect *gv)
Initialize geovect struct.
void gv_delete_vect(int id)
Delete vector set (unload)
int gv_num_vects(void)
Get number of loaded vector sets.
geovect * gv_get_last_vect(void)
Get last loaded vector set.
geovect * gv_get_new_vect(void)
Allocate memory for new vector set.
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.
geovect * gv_get_vect(int id)
Get vector set.
geovect * gv_get_prev_vect(int id)
Get previous vector set.
int gv_set_defaults(geovect *gv)
Set attributes of vector set to default values.
struct g_vect_style * next
gvstyle_thematic * tstyle
int drape_surf_id[MAX_SURFS]