25 static int Next_vect = 0;
45 for (i = 0; i < Next_vect && !found; i++) {
46 if (Vect_ID[i] ==
id) {
102 *numvects = Next_vect;
105 ret = (
int *)
G_malloc(Next_vect *
sizeof(
int));
110 for (i = 0; i < Next_vect; i++) {
137 for (i = 0; i < Next_vect && !found; i++) {
138 if (Vect_ID[i] ==
id) {
141 for (j = i; j < Next_vect; j++) {
142 Vect_ID[j] = Vect_ID[j + 1];
288 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++) {
geosurf * gs_get_surf(int)
Get geosurf struct.
void gv_delete_vect(int)
Delete vector set (unload)
int gv_set_defaults(geovect *)
Set attributes of vector set to default values.
void * GV_Get_ClientData(int id)
Get client data.
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_load_vector(int id, const char *filename)
Load vector set.
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.
gvstyle_thematic * tstyle
void GV_alldraw_vect(void)
Draw all loaded vector sets.
int GV_delete_vector(int id)
Delete vector set from list.
geoline * Gv_load_vect(const char *, int *)
Load vector map to memory.
int gv_num_vects(void)
Get number of loaded vector sets.
int GV_get_trans(int id, float *xtrans, float *ytrans, float *ztrans)
Get trans ?
int drape_surf_id[MAX_SURFS]
int GV_Set_ClientData(int id, void *clientd)
Set client data.
int GV_get_vectname(int id, char **filename)
Get vector map name.
int GV_vect_exists(int id)
Check if vector set exists.
void GV_draw_vect(int vid)
Draw vector set.
int GV_unselect_surf(int hv, int hs)
Unselect surface.
int GV_set_style(int id, int mem, int color, int width, int use_z)
Set vector style.
int GV_num_vects(void)
Get number of available vector sets.
void GV_draw_fastvect(int vid)
Draw vector set (fast mode)
int GV_surf_is_selected(int hv, int hs)
Check if surface is selected.
void gv_free_vectmem(geovect *)
Free allocated memory.
geovect * gv_get_new_vect(void)
Allocate memory for new vector set.
int Gv_load_vect_thematic(geovect *, struct Colors *)
Load styles for geolines based on thematic mapping.
int gvd_vect(geovect *, geosurf *, int)
Draw vector set.
int GV_unset_style_thematic(int id)
Make style for thematic mapping inactive.
void G_zero(void *, int)
Zero out a buffer, buf, of length i.
void GV_set_trans(int id, float xtrans, float ytrans, float ztrans)
Set trans ?
char * G_store(const char *)
Copy string to allocated memory.
int GV_select_surf(int hv, int hs)
Select surface identified by hs to have vector identified by hv draped over it.
geovect * gv_get_vect(int)
Get vector set.
int * GV_get_vect_list(int *numvects)
Get list of vector sets.
int G_debug(int, const char *,...) __attribute__((format(printf
int GV_new_vector(void)
Register new vector set.