26static int Next_vect = 0;
46 for (i = 0; i < Next_vect && !
found; i++) {
47 if (Vect_ID[i] ==
id) {
68 Vect_ID[Next_vect] =
nv->gvect_id;
71 G_debug(3,
"GV_new_vector(): id=%d",
nv->gvect_id);
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];
239 gv->style->color = color;
240 gv->style->width = width;
266 *color =
gv->style->color;
267 *width =
gv->style->width;
300 gv->tstyle->active = 1;
301 gv->tstyle->layer = layer;
303 gv->tstyle->color_column =
G_store(color);
305 gv->tstyle->width_column =
G_store(width);
324 G_debug(4,
"GV_unset_style_thematic(): id=%d",
id);
331 gv->tstyle->active = 0;
404 gv->drape_surf_id[
gv->n_surfs] =
hs;
434 for (i = 0; i <
gv->n_surfs; i++) {
435 if (
gv->drape_surf_id[i] ==
hs) {
436 for (
j = i;
j <
gv->n_surfs - 1;
j++) {
437 gv->drape_surf_id[
j] =
gv->drape_surf_id[
j + 1];
467 for (i = 0; i <
gv->n_surfs; i++) {
468 if (
hs ==
gv->drape_surf_id[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++) {
597 return (
gv->clientdata);
void G_zero(void *, int)
Zero out a buffer, buf, of length i.
char * G_store(const char *)
Copy string to allocated memory.
int G_debug(int, const char *,...) __attribute__((format(printf
void gv_free_vectmem(geovect *)
Free allocated memory.
geovect * gv_get_vect(int)
Get vector set.
int gvd_vect(geovect *, geosurf *, int)
Draw vector set.
geosurf * gs_get_surf(int)
Get geosurf struct.
int gv_num_vects(void)
Get number of loaded vector sets.
geoline * Gv_load_vect(const char *, int *)
Load vector map to memory.
void gv_delete_vect(int)
Delete vector set (unload)
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.
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_Set_ClientData(int id, void *clientd)
Set client data.
int * GV_get_vect_list(int *numvects)
Get list of vector sets.
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)
void * GV_Get_ClientData(int id)
Get client data.
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_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 ?
OGSF header file (structures)
Struct for vector map (thematic mapping)