26 static int Next_vect = 0;
46 for (i = 0; i < Next_vect && !found; i++) {
47 if (Vect_ID[i] ==
id) {
103 *numvects = Next_vect;
106 ret = (
int *)
G_malloc(Next_vect *
sizeof(
int));
111 for (i = 0; i < Next_vect; i++) {
138 for (i = 0; i < Next_vect && !found; i++) {
139 if (Vect_ID[i] ==
id) {
142 for (j = i; j < Next_vect; j++) {
143 Vect_ID[j] = Vect_ID[j + 1];
288 const char *width,
struct Colors *color_rules)
324 G_debug(4,
"GV_unset_style_thematic(): id=%d",
id);
434 for (i = 0; i < gv->
n_surfs; i++) {
436 for (j = i; j < gv->
n_surfs - 1; j++) {
467 for (i = 0; i < gv->
n_surfs; i++) {
491 for (i = 0; i < gv->
n_surfs; i++) {
510 for (
id = 0;
id < Next_vect;
id++) {
533 for (i = 0; i < gv->
n_surfs; i++) {
552 for (
id = 0;
id < Next_vect;
id++) {
void G_zero(void *, int)
Zero out a buffer, buf, of length i.
int G_debug(int, const char *,...) __attribute__((format(printf
char * G_store(const char *)
Copy string to allocated memory.
void gv_free_vectmem(geovect *)
Free allocated memory.
int gvd_vect(geovect *, geosurf *, int)
Draw vector set.
geoline * Gv_load_vect(const char *, int *)
Load vector map to memory.
int gv_num_vects(void)
Get number of loaded vector sets.
void gv_delete_vect(int)
Delete vector set (unload)
geovect * gv_get_vect(int)
Get vector set.
geovect * gv_get_new_vect(void)
Allocate memory for new vector set.
int gv_set_defaults(geovect *)
Set attributes of vector set to default values.
geosurf * gs_get_surf(int)
Get geosurf struct.
int Gv_load_vect_thematic(geovect *, struct Colors *)
Load styles for geolines based on thematic mapping.
int GV_get_vectname(int id, char **filename)
Get vector map name.
int GV_delete_vector(int id)
Delete vector set from list.
int * GV_get_vect_list(int *numvects)
Get list of vector sets.
int GV_Set_ClientData(int id, void *clientd)
Set client data.
int GV_load_vector(int id, const char *filename)
Load vector set.
int GV_new_vector(void)
Register new vector set.
void GV_draw_fastvect(int vid)
Draw vector set (fast mode)
int GV_unselect_surf(int hv, int hs)
Unselect surface.
int GV_get_style(int id, int *mem, int *color, int *width, int *use_z)
Get vector style.
void GV_alldraw_fastvect(void)
Draw all loaded vector sets (fast mode)
int GV_select_surf(int hv, int hs)
Select surface identified by hs to have vector identified by hv draped over it.
void * GV_Get_ClientData(int id)
Get client data.
void GV_set_trans(int id, float xtrans, float ytrans, float ztrans)
Set trans ?
void GV_draw_vect(int vid)
Draw vector set.
int GV_surf_is_selected(int hv, int hs)
Check if surface is selected.
int GV_set_style_thematic(int id, int layer, const char *color, const char *width, struct Colors *color_rules)
Set vector set style for thematic mapping.
int GV_num_vects(void)
Get number of available vector sets.
void GV_alldraw_vect(void)
Draw all loaded vector sets.
int GV_unset_style_thematic(int id)
Make style for thematic mapping inactive.
int GV_set_style(int id, int mem, int color, int width, int use_z)
Set vector style.
int GV_vect_exists(int id)
Check if vector set exists.
int GV_get_trans(int id, float *xtrans, float *ytrans, float *ztrans)
Get trans ?
gvstyle_thematic * tstyle
int drape_surf_id[MAX_SURFS]