47 int num_surfs, *surf_list;
88 G_warning(
_(
"Maximum vector line maps loaded!"));
97 G_warning(
_(
"Error loading vector map <%s>"), name);
107 for (i = 0; i < num_surfs; i++) {
116 G_warning(
_(
"Maximum vector point maps loaded!"));
128 G_warning(
_(
"Error loading vector map <%s>"), name);
135 for (i = 0; i < num_surfs; i++) {
152 G_warning(
_(
"Error loading 3d raster map <%s>"), name);
160 G_warning(
_(
"Nviz_new_map_obj(): unsupported data type"));
181 const char *str_value,
double num_value,
nv_data * data)
197 value = (double)atof(str_value);
240 max = (rows > cols) ? rows : cols;
248 max = max2 + max2 / 2;
322 int rows, cols, depths;
326 max = (rows > cols) ? rows : cols;
327 max = (depths >
max) ? depths : max;
int GV_select_surf(int, int)
Select surface identified by hs to have vector identified by hv draped over it.
int GV_load_vector(int, const char *)
Load vector set.
int GVL_new_vol(void)
Create new volume set.
#define DEFAULT_SURF_COLOR
int GVL_num_vols(void)
Get number of loaded volume sets.
void G_free(void *)
Free allocated memory.
int GVL_load_vol(int, const char *)
Load 3d raster map to volume set.
int GP_num_sites(void)
Get number of loaded point sets.
int GS_set_drawmode(int, int)
Set draw mode.
int Nviz_set_attr(int id, int type, int desc, int src, const char *str_value, double num_value, nv_data *data)
int GVL_slice_set_drawmode(int, int)
Set slice draw mode.
void GS_set_att_defaults(float *, float *)
Set default attributes for map objects.
int Nviz_set_volume_attr_default(int id)
Set default volume attributes.
int GVL_isosurf_set_drawres(int, int, int, int)
Set isosurface draw resolution.
int Nviz_update_ranges(nv_data *)
Update ranges.
int GP_select_surf(int, int)
Select surface for given point set.
void GS_get_dims(int, int *, int *)
Get dimension of surface.
int GP_delete_site(int)
Delete registrated point set.
int GS_new_surface(void)
Add new surface.
int GS_set_att_const(int, int, float)
Set attribute constant.
geosite * gp_get_site(int)
Get geosite struct.
int GVL_slice_set_drawres(int, int, int, int)
Set slice draw resolution.
int Nviz_unset_attr(int id, int type, int desc)
int GP_new_site(void)
Create new point set.
int * GS_get_surf_list(int *)
Get surface list.
int GV_delete_vector(int)
Delete vector set from list.
int Nviz_set_vpoint_attr_default(int id)
Set default vector point attributes.
void GVL_get_dims(int, int *, int *, int *)
Get volume dimensions.
int GS_load_att_map(int, const char *, int)
Load raster map as attribute.
int GVL_delete_vol(int)
Delete volume set from list.
void G_warning(const char *,...) __attribute__((format(printf
void Nviz_set_surface_attr_default()
Set default surface attributes.
int GVL_isosurf_set_drawmode(int, int)
Set isosurface draw mode.
int Nviz_new_map_obj(int type, const char *name, double value, nv_data *data)
Create a new map object which can be one of surf, vect, vol or site.
int GS_set_drawres(int, int, int, int, int)
Set draw resolution for surface.
int GV_set_style(int, int, int, int, int)
Set vector style.
int GP_set_style(int, int, int, float, int)
Set point style.
int GV_num_vects(void)
Get number of available vector sets.
int GS_unset_att(int, int)
Unset attribute.
int GV_new_vector(void)
Register new vector set.
int GP_load_site(int, const char *)
Load point set from file.
int GS_num_surfs(void)
Get number of surfaces.