1 #ifndef GRASS_NVIZDEFS_H 2 #define GRASS_NVIZDEFS_H 77 double,
int,
int,
int,
int);
79 double,
int,
int,
int,
int);
int Nviz_get_focus(nv_data *, float *, float *, float *)
Get focus.
double Nviz_get_exag()
Get view z-exag value.
int Nviz_init_light(nv_data *, int)
Init new light.
int Nviz_set_viewpoint_persp(int)
Change viewpoint perspective (field of view)
struct render_window * Nviz_new_render_window()
Allocate memory for render window.
int Nviz_set_light_ambient(nv_data *, int, double)
Set light ambient.
int Nviz_set_fence_color(nv_data *, int)
Set appropriate fence color.
int Nviz_make_current_render_window(const struct render_window *)
Make window current for rendering.
void Nviz_unset_rotation(void)
Stop scene rotation.
void Nviz_draw_fringe(nv_data *data)
void Nviz_flythrough(nv_data *, float *, int *, int)
Fly through the scene.
int Nviz_set_cplane_translation(nv_data *, int, float, float, float)
Set the translation for the current clip plane.
void Nviz_destroy_render_window(struct render_window *)
Free render window.
int Nviz_change_exag(nv_data *, double)
Change z-exag value.
void Nviz_init_rotation(void)
Stop scene rotation.
void Nviz_init_view(nv_data *)
int Nviz_new_light(nv_data *)
Define new light.
int Nviz_load_image(GLubyte *, int, int, int)
Load image into texture.
int Nviz_get_cplane_rotation(nv_data *, int, float *, float *, float *)
Get the rotation values for the current clip plane.
int Nviz_draw_cplane(nv_data *, int, int)
Draw the clip plane.
int Nviz_set_arrow(nv_data *, int, int, float, unsigned int)
Sets the North Arrow position and return world coords.
int Nviz_set_focus_map(int, int)
Set focus based on loaded map.
int Nviz_create_render_window(struct render_window *, void *, int, int)
Create render window.
int Nviz_get_exag_height(double *, double *, double *)
Get view height.
int Nviz_off_cplane(nv_data *, int)
Turn off (make inactive) the given clip plane.
int Nviz_set_attr(int, int, int, int, const char *, double, nv_data *)
int Nviz_update_ranges(nv_data *)
Update ranges.
int Nviz_draw_all_site(void)
Draw all loaded vector point sets.
void Nviz_delete_arrow(nv_data *)
Deletes the North Arrow.
int Nviz_get_cplane_translation(nv_data *, int, float *, float *, float *)
Get the translation values for the current clip plane.
struct scalebar_data * Nviz_set_scalebar(nv_data *, int, int, int, float, unsigned int)
Sets the scale bar position and return world coords.
void Nviz_draw_model(nv_data *)
Draw lighting model.
int Nviz_get_zrange(nv_data *, float *, float *)
Get z range.
void Nviz_get_viewpoint_position(double *, double *)
int Nviz_set_cplane_rotation(nv_data *, int, float, float, float)
Set the rotation for the current clip plane.
int Nviz_has_focus(nv_data *)
Test focus.
void Nviz_init_render_window(struct render_window *)
Initialize render window.
struct fringe_data * Nviz_set_fringe(nv_data *, int, unsigned long, double, int, int, int, int)
int Nviz_set_light_position(nv_data *, int, double, double, double, double)
Set light position.
int Nviz_new_map_obj(int, const char *, double, nv_data *)
Create a new map object which can be one of surf, vect, vol or site.
int Nviz_resize_window(int, int)
GL canvas resized.
int Nviz_draw_all_vol(void)
Draw all loaded volume sets.
int Nviz_set_light_bright(nv_data *, int, double)
Set light brightness.
void Nviz_del_texture(int)
Delete texture.
void Nviz_get_modelview(double *)
Get current modelview matrix.
void Nviz_destroy_data(nv_data *)
Free allocated space by nv_data struct.
int Nviz_set_volume_attr_default()
float Nviz_get_xyrange(nv_data *)
Get xy range.
void Nviz_get_max_texture(int *)
Get maximum texture size.
void Nviz_set_2D(int, int)
Set ortho view for drawing images.
void Nviz_set_surface_attr_default()
Set default surface attributes.
int Nviz_draw_all_surf(nv_data *)
Draw all loaded surfaces.
int Nviz_set_cplane_here(nv_data *, int, float, float)
void Nviz_set_bgcolor(nv_data *, int)
Set background color.
int Nviz_set_viewpoint_twist(int)
Change viewpoint twist.
int Nviz_color_from_str(const char *)
Get color value from color string (name or RGB triplet)
int Nviz_get_current_cplane(nv_data *)
Get the current active cutplane.
float Nviz_get_longdim(nv_data *)
Get largest dimension.
int Nviz_draw_arrow(nv_data *)
Draws the North Arrow.
struct scalebar_data * Nviz_new_scalebar(nv_data *, int, float *, float, unsigned int)
int Nviz_set_light_color(nv_data *, int, int, int, int)
Set light color.
int Nviz_set_focus_state(int)
Set focus state.
void Nviz_init_data(nv_data *)
Initialize Nviz data.
void Nviz_draw_image(int, int, int, int, int)
Draw image as texture.
void Nviz_draw_scalebar(nv_data *)
Draws the Scale bar.
int Nviz_unset_attr(int, int, int)
int Nviz_set_vpoint_attr_default()
int Nviz_on_cplane(nv_data *, int)
Turn on (make current) the given clip plane.
int Nviz_get_bgcolor(nv_data *)
Get background color.
void Nviz_get_viewpoint_height(double *)
int Nviz_num_cplanes(nv_data *)
Return the number of clip planes objects currently allocated.
int Nviz_set_focus(nv_data *, float, float, float)
Set focus.
void Nviz_delete_scalebar(nv_data *, int)
Deletes scale bar.
int Nviz_new_cplane(nv_data *, int)
Creates a clip plane object.
int Nviz_draw_all(nv_data *)
Draw all map objects (in full resolution) and decorations.
int Nviz_look_here(double, double)
Change focused point.
int Nviz_set_viewpoint_position(double, double)
Change position of view.
struct fringe_data * Nviz_new_fringe(nv_data *, int, unsigned long, double, int, int, int, int)
int Nviz_draw_quick(nv_data *, int)
Draw all surfaces in wireframe (quick mode)
void Nviz_set_rotation(double, double, double, double)
Set rotation parameters.
int Nviz_draw_all_vect(void)
Draw all loaded vector sets (lines)
int Nviz_set_viewpoint_height(double)
Change viewpoint height.