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