15 #include <grass/glocale.h>
16 #include <grass/nviz.h>
53 else if (state_flag == 0)
82 if (type == MAP_OBJ_UNDEFINED) {
83 int *surf_list, num_surfs, *vol_list;
103 if (type == MAP_OBJ_SURF) {
106 else if (type == MAP_OBJ_VOL) {
178 return data->xyrange;
int Nviz_get_focus(nv_data *data, float *x, float *y, float *z)
Get focus.
void Nviz_init_view(nv_data *data)
void G_free(void *buf)
Free allocated memory.
int Nviz_set_focus_state(int state_flag)
Set focus state.
void GS_set_focus(float *realto)
Set focus.
int GVL_num_vols(void)
Get number of loaded volume sets.
int Nviz_set_focus_map(int type, int id)
Set focus based on loaded map.
int Nviz_set_light_color(nv_data *data, int num, int red, int green, int blue)
Set light color.
float Nviz_get_xyrange(nv_data *data)
Get xy range.
void GS_init_view(void)
Init viewpoint.
int Nviz_set_light_bright(nv_data *data, int num, double value)
Set light brightness.
int Nviz_set_light_ambient(nv_data *data, int num, double value)
Set light ambient.
void GS_set_focus_center_map(int id)
Set focus to map center.
float Nviz_get_longdim(nv_data *data)
Get largest dimension.
void GS_set_infocus(void)
Set focus.
void GS_set_nofocus(void)
Unset focus.
int Nviz_get_zrange(nv_data *data, float *min, float *max)
Get z range.
void GS_get_zrange_nz(float *min, float *max)
Get Z extents for all loaded surfaces.
void GVL_set_focus_center_map(int id)
Set focus on map center.
int GS_get_focus(float *realto)
Get focus.
int GS_num_surfs(void)
Get number of surfaces.
G_warning("category support for [%s] in mapset [%s] %s", name, mapset, type)
int Nviz_set_light_position(nv_data *data, int num, double x, double y, double z, double w)
Set light position.
int Nviz_set_focus(nv_data *data, float x, float y, float z)
Set focus.
int * GVL_get_vol_list(int *numvols)
Get list of loaded volume sets.
int GS_get_longdim(float *dim)
Get largest dimension.
int * GS_get_surf_list(int *numsurfs)
Get surface list.
int Nviz_has_focus(nv_data *data)
Test focus.