1 #ifndef GRASS_OGSFDEFS_H 2 #define GRASS_OGSFDEFS_H 16 int GK_add_key(
float,
unsigned long,
int,
float);
35 const char *,
struct Colors *);
87 int GS_get_att(
int,
int,
int *,
float *,
char *);
174 void GS_zoom_setup(
int *,
int *,
int *,
int *,
int *,
int *);
178 int GS_draw_legend(
const char *, GLuint,
int,
int *,
float *,
int *);
193 void GS_v3eq(
float *,
float *);
201 int GS_v3dir(
float *,
float *,
float *);
202 void GS_v2dir(
float *,
float *,
float *);
234 int GVL_get_region(
float *,
float *,
float *,
float *,
float *,
float *);
361 void gs_err(
const char *);
458 void gs_put_label(
const char *, GLuint,
int,
unsigned long,
int *);
464 void gsd_box(
float *,
int,
float *);
471 void gsd_cube(
float *,
unsigned long,
float);
478 int gsd_north_arrow(
float *,
float, GLuint,
unsigned long,
unsigned long);
481 void gsd_3darrow(
float *,
unsigned long,
float,
float,
float *,
float);
482 int gsd_scalebar(
float *,
float, GLuint,
unsigned long,
unsigned long);
483 int gsd_scalebar_v2(
float *,
float, GLuint,
unsigned long,
unsigned long);
492 void gsd_disc(
float,
float,
float,
float);
531 int gsd_getimage(
unsigned char **,
unsigned int *,
unsigned int *);
544 int gsd_writeView(
unsigned char **,
unsigned int,
unsigned int);
556 int gsd_wall(
float *,
float *,
float *);
601 int segs_intersect(
float,
float,
float,
float,
float,
float,
float,
float,
657 double,
double,
double);
683 void P_scale(
float,
float,
float);
687 void P_rot(
float,
char);
734 GLuint
gsd_put_legend(
const char *, GLuint,
int,
int *,
float *,
int *);
int gsd_wire_surf_func(geosurf *, int(*)())
ADD.
int gs_mapcolor(typbuff *, gsurf_att *, int)
Call this one when you already know att_src is MAP_ATT.
void GS_setlight_ambient(int, float, float, float)
Set light ambient.
int GS_coordpair_repeats(float *, float *, int)
ADD.
int GVL_slice_add(int)
Add slice.
int gsds_findh(const char *, IFLAG *, IFLAG *, int)
Get handle to gsds.
void * GVL_get_window()
Get window.
int gpd_2dsite(geosite *, geosurf *, int)
Draw 2D point set.
geovol * gvl_get_vol(int)
Get volume set structure.
geosurf * gs_get_surf(int)
Get geosurf struct.
int GVL_get_region(float *, float *, float *, float *, float *, float *)
Get region extent settings.
int GK_move_key(float, float, float)
Move keyframe.
int gsd_ortho_wall(int, int, geosurf **, Point3 **, float *)
ADD.
void gv_delete_vect(int)
Delete vector set (unload)
int GV_select_surf(int, int)
Select surface identified by hs to have vector identified by hv draped over it.
void gsd_litvert_func2(float *, unsigned long, float *)
ADD.
void gs_put_label(const char *, GLuint, int, unsigned long, int *)
Put label.
void gsd_endtfan(void)
ADD.
size_t free_data_buffs(dataset *, int)
Free data buffer.
void Gs_pack_colors(const char *, int *, int, int)
Pack color table.
double GS_geodistance(double *, double *, const char *)
Calculate distance between 2 coordinates.
int gv_set_defaults(geovect *)
Set attributes of vector set to default values.
void gsd_frontbuffer(void)
Draw to the front buffer.
int gvl_file_newh(const char *, IFLAG)
Get handle for given file name and type.
int GS_get_drawmode(int, int *)
Get draw mode.
int gvl_file_set_slices_param(geovol_file *, int, int)
Set parameters for slice reading.
int Gs_loadmap_as_int(struct Cell_head *, const char *, int *, struct BM *, int *)
Load raster map as integer map.
int GS_get_fov(void)
Get fied of view.
int gsds_newh(const char *)
Get handle to gsds.
int GVL_isosurf_add(int)
Add isosurface.
void GK_clear_keys(void)
Deletes all keyframes, resets field masks.
int GS_get_val_at_xy(int, int, char *, float, float)
Get RGB color at given point.
int gs_mask_defined(geosurf *)
Check if mask is defined.
void P_transform(int, float(*)[4], float(*)[4])
Transform array of vectors using current T matrix.
void gvl_file_get_min_max(geovol_file *, double *, double *)
Get minimum and maximum value in volume file.
int GV_load_vector(int, const char *)
Load vector set.
int GP_site_exists(int)
Check if point set exists.
int GVL_new_vol(void)
Create new volume set.
void gsd_flush(void)
Mostly for flushing drawing commands across a network.
void gsd_surf2real(geosurf *, Point3)
Convert surface to real coordinates.
int gs_distance_onsurf(geosurf *, float *, float *, float *, int)
Calculate distance on surface.
int GP_set_style_thematic(int, int, const char *, const char *, const char *, const char *, struct Colors *)
Set point set style for thematic mapping.
int gsd_surf_func(geosurf *, int(*)())
Define user function.
geosite * gp_get_new_site(void)
Create new geosite instance and add it to list.
void gsd_blend(int)
Specify pixel arithmetic.
void GK_showtension_start(void)
Viewnode * gk_make_linear_framesfromkeys(Keylist *, int, int, int)
Generate viewnode from keyframe list (linear interpolation)
int gs_getall_surfaces(geosurf **)
Get array of geosurf structs.
void GS_set_viewdir(float *)
Set viewdir.
int gs_get_datacenter(float *)
Get data center point.
int gp_set_defaults(geosite *)
Set default value for geosite struct.
void * GP_Get_ClientData(int)
Get client data.
int gsbm_or_masks(struct BM *, struct BM *)
Mask bitmap (mask type OR)
int GVL_slice_move_up(int, int)
Move up slice.
void GVL_set_draw_wire(int, int)
Set drawing wire box.
void gvd_draw_lineonsurf(geosurf *, float *, float *, int)
Draw line on surface.
void do_label_display(GLuint, float *, const char *)
Display label.
float gv_line_length(geoline *)
Get line width.
int gsd_coarse_surf_map(geosurf *)
Draw coarse surface.
int gvl_file_get_file_type(geovol_file *)
Get file type for given handle.
typbuff * gsds_get_typbuff(int, IFLAG)
Get data buffer.
int Gp_set_color(const char *, geopoint *)
void gsd_fringe_vert_poly(float, geosurf *, int, int)
Draw fringe outline in y direction.
int gs_masked(typbuff *, int, int, int)
Should only be called when setting up the current mask (gs_bm.c)
int gvl_file_free_datah(int)
Free geovol_file structure for given handle.
geovect * gv_get_last_vect(void)
Get last loaded vector set.
void GK_showtension_stop(void)
Show tension stop ?
int GS_write_ppm(const char *)
Save current GL screen to ppm file.
void GS_v3sub(float *, float *)
Subtract vectors.
int XY_intersect_plane(float *, float *)
Check for intersection (point and plane)
int gsd_arrow(float *, unsigned long, float, float *, float, geosurf *)
ADD.
int gln_num_points(geoline *)
Get number of line vertices.
void GS_draw_flowline_at_xy(int, float, float)
Draw flow-line on surace.
int gvl_num_vols(void)
Get number of loaded volume sets.
geovol_slice * gvl_slice_get_slice(int, int)
Get geovol_slice struct.
void gsd_update_cpnorm(int)
ADD.
int gvl_free_vol(geovol *)
Free geovol struct.
int Gs_update_attrange(geosurf *, int)
Update no_zero ranges for attribute (actually no_null now)
void GS_draw_surf(int)
Draw surface.
void gsd_box(float *, int, float *)
Draw box.
int * GP_get_site_list(int *)
Get list of point sets.
int GVL_isosurf_get_maskmode(int, int, int *)
Get isosurface mask mode.
int GK_delete_key(float, float, int)
int gsd_wire_surf_map(geosurf *)
ADD.
void gsd_finish(void)
Finish.
int gv_decimate_lines(geovect *)
Decimate line.
int GS_get_att(int, int, int *, float *, char *)
Get attributes.
int gsd_make_nice_number(float *)
ADD.
int _viewcell_tri_interp(geosurf *, Point3)
ADD.
int gvld_slice(geovol *, int)
Draw slice.
int GVL_slice_set_transp(int, int, int)
Set slice trans ?
2D/3D raster map header (used also for region)
int gs_get_data_avg_zmax(float *)
Get average z-max value.
void GS_set_focus(float *)
Set focus.
void gsd_bgnpolygon(void)
Delimit the vertices of a primitive or a group of like primitives.
int Gvl_unload_colors_data(void *)
Unload color table.
int GS_has_transparency(void)
Check for transparency.
int gvl_get_yextents(geovol *, float *, float *)
Get volume y-extent value.
int RayCvxPolyhedronInt(Point3, Point3, double, Point4 *, int, double *, int *)
Ray-Convex Polyhedron Intersection Test.
void gsd_switchlight(int, int)
Switch light on/off.
int GVL_num_vols(void)
Get number of loaded volume sets.
void print_surf_fields(geosurf *)
Debugging, print geosurf fields to stderr.
int gs_los_intersect1(int, float(*)[3], float *)
Crude method of intersecting line of sight with closest part of surface.
void print_256lookup(int *)
Debugging, 256 integer values from buffer.
int gs_get_zrange(float *, float *)
Get z-range.
void GVL_draw_vol(int)
Draw volume set.
int GS_write_tif(const char *)
Write data to tif file.
int Gs_get_cat_label(const char *, int, int, char *)
Get categories/labels.
int gs_set_att_type(geosurf *, int, int)
Set attribute type.
unsigned char gvl_read_char(int, const unsigned char *)
Read char.
void GS_draw_all_list(void)
Draw all glLists.
void GK_set_numsteps(int)
Set the number of frames to be interpolated from keyframes.
void GVL_alldraw_vol(void)
Draw all volume sets.
unsigned long gk_get_mask_sofar(float, Keylist *)
Get mask value.
void gsd_checkwindow(int *, int *, double *, double *)
GLuint gsd_set_font(const char *)
int gsd_get_los(float(*)[3], short, short)
ADD.
geosite * gp_get_prev_site(int)
Get previous geosite struct from list.
int gs_setlos_enterdata(Point3 *)
void init_vars(geosurf *)
Init variables.
void gs_delete_surf(int)
Remove geosurf struct from list.
geovol_isosurf * gvl_isosurf_get_isosurf(int, int)
Get isosurface of given volume set.
int gvl_isosurf_set_att_map(geovol_isosurf *, int, const char *)
Set attribute map.
void gsd_popmatrix(void)
Pop the current matrix stack.
int gvl_file_get_value(geovol_file *, int, int, int, void *)
Get value for volume file at x, y, z.
int gs_get_att_src(geosurf *, int)
Get attribute source.
int gvl_file_is_null_value(geovol_file *, void *)
Check for null value.
void GVL_alldraw_wire(void)
Draw all volume sets in wire mode.
int segs_intersect(float, float, float, float, float, float, float, float, float *, float *)
Line intersect.
void gsd_endpolygon(void)
Delimit the vertices of a primitive or a group of like primitives.
int gsd_nline_onsurf(geosurf *, float *, float *, float *, int)
Multiline on surface, fix z-values.
int gsds_free_data_buff(int, int)
Free allocated buffer.
void gsd_call_label(void)
Call display list and draw defined labels – called from gsd_prim (gsd_call_lists) ...
void gsd_real2model(Point3)
Convert real to model coordinates.
int Point_on_plane(Point3, Point3, Point3, Point3)
Check if point is on plane.
void GS_libinit(void)
Initialize OGSF library.
int gsd_zup_twist(geoview *)
ADD.
void GS_set_viewport(int, int, int, int)
Set viewport.
void gsdiff_set_SDref(geosurf *)
ADD.
void GS_draw_wire(int)
Draw surface wire.
int Gs_loadmap_as_char(struct Cell_head *, const char *, unsigned char *, struct BM *, int *)
Load raster map as integer map.
void GS_v3add(float *, float *)
Sum vectors.
int GV_set_style_thematic(int, int, const char *, const char *, struct Colors *)
Set vector set style for thematic mapping.
int GS_new_light(void)
Add new model light.
void GS_init_rotation(void)
Reset scene rotation.
int GS_get_cat_at_xy(int, int, char *, float, float)
Get surface category on given position.
int Gs_loadmap_as_bitmap(struct Cell_head *, const char *, struct BM *)
Load raster map as integer map.
double Gs_distance(double *, double *)
Calculates distance in METERS between two points in current projection (2D)
Point3 * gsdrape_get_allsegments(geosurf *, float *, float *, int *)
Get all segments.
void gsd_deflight(int, struct lightdefs *)
Define light.
int GS_look_here(int, int)
Send screen coords sx and sy, lib traces through surfaces; sets new center to point of nearest inters...
geosite * gp_get_last_site(void)
Get last point set.
int GVL_load_vol(int, const char *)
Load 3d raster map to volume set.
double GS_get_aspect(void)
Get aspect value.
geovect * gv_get_prev_vect(int)
Get previous vector set.
void print_frto(float(*)[4])
Debugging, print 'from/to' model coordinates to stderr.
void primitive_cone(unsigned long)
Primitives only called after transforms.
void GS_zoom_setup(int *, int *, int *, int *, int *, int *)
Get zoom setup.
void GS_get_trans(int, float *, float *, float *)
Get translation values (surface position)
void GS_set_rotation(double, double, double, double)
Set rotation params.
int GK_add_key(float, unsigned long, int, float)
Add keyframe.
void gvl_delete_vol(int)
Remove volume set from list.
void print_bm(struct BM *)
Print bitmap to stderr.
int GS_get_wire_color(int, int *)
Get wire color.
int gvl_isosurf_set_att_changed(geovol_isosurf *, int)
Set attribute changed.
int GP_num_sites(void)
Get number of loaded point sets.
int GS_setall_drawres(int, int, int, int)
Set all draw resolutions.
void GS_alldraw_cplane_fences(void)
Draw all cplace fences ?
int gsds_get_changed(int)
ADD.
void GS_set_wire_color(int, int)
Set wire color.
int gsd_get_txtheight(int size)
Get text height.
void gsd_end_legend_viewport(void)
ADD.
geoline * Gv_load_vect(const char *, int *)
Load vector map to memory.
int gvl_slice_freemem(geovol_slice *)
Free geovol_slice struct.
double get_key_neighbors(int, double, double, int, Keylist **, Keylist **, Keylist **, Keylist **, Keylist **, double *, double *)
int gvl_get_zrange(float *, float *)
Get volume z-range value.
int gvl_get_yrange(float *, float *)
Get volume y-range value.
void GS_draw_lighting_model(void)
Draw lighting model.
int GS_set_drawmode(int, int)
Set draw mode.
int gsbm_xor_masks(struct BM *, struct BM *)
Mask bitmap (mask type XOR)
void gsd_shademodel(int)
Set shaded model.
int GVL_isosurf_set_att_map(int, int, int, const char *)
Set isosurface map attribute.
unsigned int GS_background_color(void)
Get background color.
void GS_set_focus_real(float *)
Set real focus.
void GS_set_cplane(int)
Set cplace.
int GVL_slice_get_pos(int, int, float *, float *, float *, float *, float *, float *, int *)
Get slice position.
int gs_get_xrange(float *, float *)
Get x-range.
int calc_norm(geosurf *, int, int, unsigned int)
Calculate normals.
void GS_get_from(float *)
Get viewpoint 'from' position.
int GS_v3normalize(float *, float *)
Change v2 so that v1v2 is a unit vector.
void gvl_align_data(int, unsigned char **)
Append data to buffer.
void gsd_cplane_off(int)
Turn off clip plane.
int gsd_surf_map(geosurf *)
Draw surface using triangle fan instead of strip.
double lin_interp(float, float, float)
Linear interpolation.
int GVL_slice_set_drawmode(int, int)
Set slice draw mode.
int gsd_wall(float *, float *, float *)
ADD.
void gsd_fringe_horiz_line(float, geosurf *, int, int)
Draw fringe outline in x direction.
void GS_set_exag(int, float)
Set Z exag for surface.
int GV_Set_ClientData(int, void *)
Set client data.
void interp_first_last(geosurf *, float *, float *, Point3, Point3)
ADD.
void gsd_calllist(int)
ADD.
int Gs_save_3dview(const char *, geoview *, geodisplay *, struct Cell_head *, geosurf *)
Save 3dview.
void GS_clear(int)
Clear view.
void GVL_draw_wire(int)
Draw volume in wire mode.
void print_realto(float *)
Debugging, print 'to' real coordinates to stderr.
int seg_intersect_vregion(geosurf *, float *, float *)
Check if segment intersect vector region.
void GK_update_tension(void)
Update tension.
void gsd_get_cplanes_state(int *)
Get cplane state.
int gv_num_vects(void)
Get number of loaded vector sets.
int GS_is_masked(int, float *)
Check if point is masked ?
int GP_unselect_surf(int, int)
Unselect surface.
int GS_setall_drawmode(int)
Set all draw-modes.
void GS_unset_rotation(void)
Stop scene rotation.
void GS_get_drawres(int, int *, int *, int *, int *)
Get draw resolution of surface.
int gs_get_xextents(geosurf *, float *, float *)
Get x-extent values.
void GV_set_trans(int, float, float, float)
Set trans ?
void GS_set_att_defaults(float *, float *)
Set default attributes for map objects.
void GS_set_cancel(int)
Set cancel.
void GS_moveto_real(float *)
Move position to (real)
int gsd_getimage(unsigned char **, unsigned int *, unsigned int *)
Get image of current GL screen.
int gv_init_vect(geovect *)
Initialize geovect struct.
int get_mapatt(typbuff *, int, float *)
Get map attributes.
int GVL_isosurf_set_drawres(int, int, int, int)
Set isosurface draw resolution.
int P3toPlane(Point3, Point3, Point3, float *)
Define plane.
int gk_draw_path(Viewnode *, int, Keylist *)
Draw path.
void print_view_fields(geoview *)
Debugging, print geoview fields to stderr.
int gsd_norm_arrows(geosurf *)
ADD.
int GS_v3norm(float *)
Change v1 so that it is a unit vector (2D)
void GS_set_cplane_rot(int, float, float, float)
Set cplace rotation.
void GS_alldraw_wire(void)
Draw all wires.
int gs_free_surf(geosurf *)
Free geosurf struct.
int gs_get_att_type(geosurf *, int)
Get attribute type.
int gv_num_points(geovect *)
Get number of points in vector.
void GS_v3cross(float *, float *, float *)
Get the cross product v3 = v1 cross v2.
int Gvl_load_colors_data(void **, const char *)
Load color table.
int gp_num_sites(void)
Get number of loaded point sets.
int GS_save_3dview(const char *, int)
Save 3d view.
void gsd_def_cplane(int, float *, float *)
Define cplace.
void gsd_surf2model(Point3)
Convert surface to model coordinates.
void P_rot(float, char)
Rotate matrix.
void gsd_cplane_setrot(int, float, float, float)
ADD.
int GP_select_surf(int, int)
Select surface for given point set.
int gp_free_site(geosite *)
Free allocated geosite struct.
void gp_update_drapesurfs(void)
Update drape surfaces.
int gs_num_datah_reused(int)
Get number of reused values.
int Gp_load_sites_thematic(geosite *, struct Colors *)
Load styles for geopoints based on thematic mapping.
float GS_distance(float *, float *)
Calculate distance.
int GS_get_zextents(int, float *, float *, float *)
Get z-extent for a single surface.
int gvl_init_vol(geovol *, double, double, double, int, int, int, double, double, double)
Initialize geovol structure.
void gsd_bgntstrip(void)
ADD.
void gsd_draw_cplane(int)
Draw cplane.
void gsd_init_lightmodel(void)
Initialize model light.
void dir_to_slope_aspect(float *, float *, float *, int)
ADD.
void sub_Vectmem(int)
Tracking memory.
void gpd_obj(geosurf *, gvstyle *, Point3)
Draw point representing object.
int GV_vect_exists(int)
Check if vector set exists.
void show_colormode(void)
Print color mode to stderr.
int GP_surf_is_selected(int, int)
Check if surface is selected.
void GS_get_dims(int, int *, int *)
Get dimension of surface.
int GS_get_selected_point_on_surface(int, int, int *, float *, float *, float *)
Get selected point of surface.
void gs_free_unshared_buffs(geosurf *)
Free unshared buffers of geosurf struct.
int gvl_file_get_data_type(geovol_file *)
Get data type for given handle.
int GP_delete_site(int)
Delete registrated point set.
int gvl_isosurf_set_att_const(geovol_isosurf *, int, float)
Set isosurface attribute constant.
void correct_twist(Keylist *)
Correct twist value.
void GS_set_cplane_trans(int, float, float, float)
Set cplace trans.
int gsd_wire_surf_const(geosurf *, float)
ADD.
void GS_lights_on(void)
Switch on all lights.
int GVL_isosurf_get_drawmode(int, int *)
Get isosurface draw mode.
void Gs_pack_colors_float(const char *, float *, int *, int, int)
Pack color table (floating-point map)
int gs_set_att_const(geosurf *, int, float)
Set attribute constant value.
void gsd_colormode(int)
Set color mode.
int GS_new_surface(void)
Add new surface.
int GS_set_SDsurf(int)
Set surface as Scaled Difference surface.
void gsd_rot(float, char)
ADD.
int Gs_build_256lookup(const char *, int *)
Build color table (256)
void gsd_def_clipplane(int, double *)
Define clip plane.
int GVL_isosurf_get_att(int, int, int, int *, float *, char *)
Get isosurface attributes.
int GVL_slice_num_slices(int)
Get number or slices.
void GS_set_focus_center_map(int)
Set focus to map center.
int GS_get_region(float *, float *, float *, float *)
Get 2D region extent.
void gp_set_drapesurfs(geosite *, int *, int)
float gsdiff_do_SD(float, int)
ADD.
void * GS_Get_ClientData(int)
Get client data.
void GVL_isosurf_get_drawres(int, int *, int *, int *)
Get draw resolution for isosurface.
int gsds_set_changed(int, IFLAG)
ADD.
void gsd_disc(float, float, float, float)
ADD.
geosurf * gs_get_prev_surface(int)
Get previous geosurf struct.
void gsd_diamond(float *, unsigned long, float)
Draw diamond symbol.
int gvld_wire_vol(geovol *)
Draw volume in wire mode (bounding box)
void GS_set_cxl_func(void(*)(void))
Set cxl function.
void GK_update_frames(void)
Recalculate path using the current number of frames requested.
void gs_set_defaults(geosurf *, float *, float *)
Set default attribute values.
int gv_free_vect(geovect *)
Free allocated memory for geovect struct.
int in_vregion(geosurf *, float *)
ADD.
void gsd_backface(int)
ADD.
int gsd_checkpoint(float *, int *, int *, double *, double *)
void GS_get_zrange_nz(float *, float *)
Get Z extents for all loaded surfaces.
int GS_set_att_const(int, int, float)
Set attribute constant.
void gsdiff_set_SDscale(float)
Set scale.
void gp_free_sitemem(geosite *)
Free geosite (lower level)
geosite * gp_get_site(int)
Get geosite struct.
void gs_set_maskmode(int)
Set geosurf mask mode.
void GK_show_site(int)
Show point sets.
int P_popmatrix(void)
Pop top of matrix stack, placing it into the current transformation matrix.
int GVL_slice_get_transp(int, int, int *)
Get slice trans ?
void GS_get_to(float *)
Get 'to' model coordinates.
void gsd_color_func(unsigned int)
Set current color.
int gs_update_curmask(geosurf *)
Update current maps.
void GS_delete_list(GLuint)
Delete pre-defined list.
void gsd_swaptmesh(void)
ADD.
int GVL_slice_set_drawres(int, int, int, int)
Set slice draw resolution.
void GS_unset_SDsurf(void)
Unset Scaled Difference surface.
void gsd_3dcursor(float *)
Draw 3d cursor.
int GS_get_fencecolor(void)
Get fence color.
void gsd_set_view(geoview *, geodisplay *)
Set view.
void gsd_fringe_vert_line(float, geosurf *, int, int)
Draw fringe outline in y direction.
int gsdrape_set_surface(geosurf *)
ADD.
void GVL_libinit(void)
Library initialization for volumes.
void GS_set_twist(int)
Set viewpoint twist value.
int GVL_slice_set_pos(int, int, float, float, float, float, float, float, int)
Get slice position.
void gsd_bgn_legend_viewport(GLint, GLint, GLint, GLint)
ADD.
void gk_free_key(Keylist *)
Free keyframe list.
void GP_set_trans(int, float, float, float)
Set transformation params.
void gs_init(void)
Initialize library.
void gsd_endline(void)
End line.
int Gs_load_3dview(const char *, geoview *, geodisplay *, struct Cell_head *, const geosurf *)
Load 3dview.
void gsd_bgnqstrip(void)
ADD.
int gvld_wire_slices(geovol *)
Draw wire slices.
int gvl_isosurf_freemem(geovol_isosurf *)
Free geovol_isosurf struct.
void GS_draw_lighting_model1(void)
Draw lighting model.
void GV_draw_vect(int)
Draw vector set.
void GS_setlight_color(int, float, float, float)
Set light color.
void gsd_translate(float, float, float)
Multiply the current matrix by a translation matrix.
void gsd_viewport(int, int, int, int)
Set the viewport.
void GVL_init_region(void)
Initialize 3D region.
int get_txtdescender(void)
Get text descender.
int gp_init_site(geosite *)
Initialize geosite struct.
char * gvl_file_get_name(int)
Get file name for given handle.
void GS_unset_cplane(int)
Unset clip place (turn off)
void GS_alldraw_surf(void)
Draw all surfaces.
void GK_show_list(int)
Show list.
void GK_set_tension(float)
Set value for tension when interpmode is KF_SPLINE.
void gsd_x(geosurf *, float *, int, float)
Draw X symbol.
int GP_Set_ClientData(int, void *)
Set client data.
void gsd_bothbuffers(void)
Draw to the front and back buffers.
void print_site_fields(geosite *)
int GV_unset_style_thematic(int)
Make style for thematic mapping inactive.
void GP_alldraw_site(void)
Draw all available point sets.
int GP_new_site(void)
Create new point set.
void gsd_line_onsurf(geosurf *, float *, float *)
Line on surface, fix z-values.
int GS_draw_nline_onsurf(int, float, float, float, float, float *, int)
Draw multiline on surface.
void gsd_remove_all(void)
Remove all labels from display list.
void GVL_set_focus_center_map(int)
Set focus on map center.
void GK_show_path(int)
Draw the current path.
void GS_draw_cplane(int)
Draw cplace.
int order_intersects(geosurf *, Point3, Point3, int, int, int)
ADD.
void GS_get_from_real(float *)
Get viewpoint 'from' real coordinates.
int gsbm_and_masks(struct BM *, struct BM *)
Mask bitmap (mask type ADD)
int GS_set_maskmode(int, int)
Set mask mode.
int GS_v2norm(float *)
Change v1 so that it is a unit vector (3D)
void P_scale(float, float, float)
ADD.
int gs_num_surfaces(void)
Get number of surfaces.
int * GS_get_surf_list(int *)
Get surface list.
void gsd_bgntfan(void)
ADD.
int gvld_slices(geovol *)
Draw slices.
float gsdiff_get_SDscale(void)
Get scale.
int GP_set_zmode(int, int)
Set z mode for point set.
int Gvl_get_color_for_value(void *, float *)
Get color for value.
void gsd_3darrow(float *, unsigned long, float, float, float *, float)
Draw 3d north arrow.
int GS_get_light_reset(void)
void gsd_draw_cplane_fence(geosurf *, geosurf *, int)
ADD.
int gs_get_zextents(geosurf *, float *, float *, float *)
Get z-extent values.
int GVL_vol_exists(int)
Check if volume set exists.
void GK_print_keys(const char *)
Print keyframe info.
int * GV_get_vect_list(int *)
Get list of vector sets.
void GS_get_rotation_matrix(double *)
Get rotation matrix.
int gs_init_normbuff(geosurf *)
Init geosurf normbuff.
void GS_done_draw(void)
Draw done, swap buffers.
int GS_load_3dview(const char *, int)
Load 3d view.
int GV_get_vectname(int, char **)
Get vector map name.
int Gs_numtype(const char *, int *)
Get map data type.
void GS_getlight_color(int, float *, float *, float *)
Get light color.
Keylist * gk_copy_key(Keylist *)
Copy keyframes.
void gsd_backbuffer(void)
Draw to the back buffer.
int GV_unselect_surf(int, int)
Unselect surface.
int GS_draw_legend(const char *, GLuint, int, int *, float *, int *)
Draw legend.
size_t gs_malloc_att_buff(geosurf *, int, int)
Allocate attribute buffer.
void gsd_cube(float *, unsigned long, float)
Draw cube.
int GS_draw_cplane_fence(int, int, int)
Draw cplace fence ?
int GVL_get_volname(int, char *)
Get volume set name.
int GV_delete_vector(int)
Delete vector set from list.
void gs_err(const char *)
int gvl_get_xrange(float *, float *)
Get volume x-range value.
int Gs_loadmap_as_float(struct Cell_head *, const char *, float *, struct BM *, int *)
Load raster map as floating point map.
int GS_Set_ClientData(int, void *)
Set client data.
int GVL_isosurf_unset_att(int, int, int)
Unset isosurface attributes.
void gsd_sphere(float *, float)
ADD.
void GS_set_trans(int, float, float, float)
Set translation (surface position)
void GS_draw_fringe(int, unsigned long, float, int *)
Draw fringe around data (surface) at selected corners.
void gsd_cplane_on(int)
ADD.
int GS_set_SDscale(float)
Set ?
int GP_str_to_marker(const char *)
Determine point marker symbol for string.
int viewcell_tri_interp(geosurf *, typbuff *, Point3, int)
ADD.
void gv_update_drapesurfs(void)
Update drape surfaces.
float GS_global_exag(void)
Get global z-exag value.
void GV_draw_fastvect(int)
Draw vector set (fast mode)
void GS_setlight_position(int, float, float, float, int)
Set light position.
void gv_free_vectmem(geovect *)
Free allocated memory.
int GVL_Set_ClientData(int, void *)
Set client data for volume set.
int GVL_slice_del(int, int)
Delete slice.
int P_pushmatrix(void)
Push current transformation matrix onto matrix stack.
int GP_attmode_color(int, const char *)
int gs_get_yextents(geosurf *, float *, float *)
Get y-extent values.
struct BM * gsbm_make_mask(typbuff *, float, int, int)
Do combining of bitmaps, make bitmaps from other data w/maskval.
void gsd_draw_asterisk(float *, unsigned long, float)
Draw asterisk.
geovect * gv_get_new_vect(void)
Allocate memory for new vector set.
void gsd_check_focus(geoview *)
Check focus.
int gsd_arrow_onsurf(float *, float *, unsigned long, int, geosurf *)
Draw north arrow on surface.
void gsd_zwritemask(unsigned long)
Write out z-mask.
int GVL_isosurf_del(int, int)
Delete isosurface.
void GS_set_infocus(void)
Set focus.
typbuff * gs_get_att_typbuff(geosurf *, int, int)
Get attribute data buffer.
void gk_follow_frames(Viewnode *, int, Keylist *, int, int, int, unsigned long)
Checks key masks.
void GVL_get_dims(int, int *, int *, int *)
Get volume dimensions.
int Gv_load_vect_thematic(geovect *, struct Colors *)
Load styles for geolines based on thematic mapping.
void gsbm_zero_mask(struct BM *)
Zero mask.
int GS_get_SDsurf(int *)
Get ?
int Gs_loadmap_as_short(struct Cell_head *, const char *, short *, struct BM *, int *)
Load raster map as integer map.
int gsd_wire_arrows(geosurf *)
ADD.
int GVL_isosurf_move_down(int, int)
Move down isosurface in list.
int gs_get_yrange(float *, float *)
Get y-range.
int gs_malloc_lookup(geosurf *, int)
Allocate attribute lookup.
int GS_load_att_map(int, const char *, int)
Load raster map as attribute.
Viewnode * gk_make_framesfromkeys(Keylist *, int, int, int, float)
Generate viewnode from keyframes.
int gvd_vect(geovect *, geosurf *, int)
Draw vector set.
void gsd_endtstrip(void)
ADD.
int gsd_get_cplanes(Point4 *)
Get cplaces.
int GVL_isosurf_set_maskmode(int, int, int)
Set mask attribute mode.
void gsd_update_cplanes(void)
Update cplaces.
void gsd_bgnlist(int, int)
ADD.
int GVL_delete_vol(int)
Delete volume set from list.
int GS_get_norm_at_xy(int, float, float, float *)
Get surface normal at x,y (real coordinates)
void GS_draw_X(int, float *)
Draw place marker.
void GS_v3eq(float *, float *)
Copy vector values.
void GS_init_view(void)
Init viewpoint.
int gs_point_is_masked(geosurf *, float *)
Check if point is masked.
void gsd_linewidth(short)
Set width of rasterized lines.
int gvl_isosurf_calc(geovol *)
Fill data structure with computed isosurfaces polygons.
void gsd_getwindow(int *, int *, double *, double *)
Get viewport.
int V3Cross(Point3, Point3, Point3)
Get cross product.
void gsd_model2surf(geosurf *, Point3)
Convert model to surface coordinates.
void gsd_circ(float, float, float)
ADD.
void gsd_calllists(int)
ADD.
int GVL_slice_move_down(int, int)
Move down slice.
int gk_viable_keys_for_mask(unsigned long, Keylist *, Keylist **)
ADD.
void GS_v2dir(float *, float *, float *)
Get a normalized direction from v1 to v2, store in v3 (2D)
int GS_write_zoom(const char *, unsigned int, unsigned int)
Write zoom to file.
int GP_get_zmode(int, int *)
Get z-mode.
int GS_transp_is_set(void)
Check if transparency is set.
void GS_get_viewdir(float *)
Get viewdir.
int GS_get_exag_guess(int, float *)
Get exag-value guess.
int gvl_slice_init(geovol_slice *)
Initialize geovol_slice struct.
int gvl_isosurf_get_att_src(geovol_isosurf *, int)
Get attribute source.
int GS_update_normals(int)
Update normals.
int GP_get_sitename(int, char **)
Get point set filename.
int gvl_isosurf_init(geovol_isosurf *)
Initialize geovol_isosurf struct.
void gsd_litvert_func(float *, unsigned long, float *)
Set the current normal vector & specify vertex.
void GS_v3mag(float *, float *)
Magnitude of vector.
geovol_file * gvl_file_get_volfile(int)
Get geovol_file structure for given handle.
int gsd_triangulated_wall(int, int, geosurf *, geosurf *, Point3 *, Point3 *, float *)
ADD.
int GV_get_trans(int, float *, float *, float *)
Get trans ?
int gvld_isosurf(geovol *)
Draw volume isosurfaces.
void gsd_diamond_lines(void)
Draw diamond lines.
int GS_dv3norm(double *)
Changes v1 so that it is a unit vector.
int gs_los_intersect(int, float **, float *)
Crude method of intersecting line of sight with closest part of surface.
int GVL_isosurf_move_up(int, int)
Move up isosurface in list.
int gs_att_is_set(geosurf *, IFLAG)
Check if attribute is set.
geosurf * gsdiff_get_SDref(void)
ADD.
void gsd_endlist(void)
End list.
void GS_set_light_reset(int)
int GS_check_cancel(void)
Check for cancel.
void GP_get_trans(int, float *, float *, float *)
Get transformation params.
void GK_show_vect(int)
Show vector sets.
int gvld_wire_isosurf(geovol *)
Draw volume isosurface in draw mode.
void gsd_draw_box(float *, unsigned long, float)
Draw box.
double get_2key_neighbors(int, float, float, int, Keylist **, Keylist **, Keylist **)
int GS_get_focus(float *)
Get focus.
void GS_moveto(float *)
Move viewpoint.
void * GVL_Get_ClientData(int)
Get client data.
void GS_lights_off(void)
Switch off all lights.
int gvl_get_zextents(geovol *, float *, float *)
Get volume z-extent value.
void GVL_slice_get_drawres(int, int *, int *, int *)
Get draw resolution of slice.
int get_diag_intersects(geosurf *, float *, float *, float *)
Get diagonal intersects.
int gvl_file_end_read(geovol_file *)
End read - free buffer memory.
size_t gsds_alloc_typbuff(int, int *, int, int)
Allocates correct buffer according to type, keeps track of total mem.
void GS_set_fencecolor(int)
Set fence color.
void GS_set_rotation_matrix(double *)
Set rotation matrix.
int GV_surf_is_selected(int, int)
Check if surface is selected.
int GP_unset_style_thematic(int)
Make style for thematic mapping inactive.
int GS_v3dir(float *, float *, float *)
Get a normalized direction from v1 to v2, store in v3.
void gsd_pushmatrix(void)
Push the current matrix stack.
int GP_get_style(int, int *, int *, float *, int *)
Get point set style.
int GS_get_distance_alongsurf(int, float, float, float, float, float *, int)
Measure distance "as the ball rolls" between two points on surface.
int gvl_file_set_mode(geovol_file *, IFLAG)
Set read mode.
int GVL_isosurf_set_drawmode(int, int)
Set isosurface draw mode.
void gs_get_databounds_planes(Point4 *)
Get data bounds for plane.
int gsd_scalebar_v2(float *, float, GLuint, unsigned long, unsigned long)
Draw Scalebar (as lines)
geovol * gvl_get_last_vol(void)
Get last volume set from the list.
geovol * gvl_get_prev_vol(int)
Get previous volume.
void gsd_real2surf(geosurf *, Point3)
Convert real to surface coordinates.
Point3 * gsdrape_get_segments(geosurf *, float *, float *, int *)
ADD.
void gsd_draw_gyro(float *, unsigned long, float)
Draw gyro.
void gp_delete_site(int)
Delete point set and remove from list.
void gvl_free_volmem(geovol *)
Free geovol struct memory.
int GS_get_longdim(float *)
Get largest dimension.
int gsd_makelist(void)
ADD.
void GK_do_framestep(int, int)
Moves the animation to frame number "step".
void GP_draw_site(int)
Draw point set.
GLuint gsd_put_legend(const char *, GLuint, int, int *, float *, int *)
Put legend.
int gsd_surf(geosurf *)
ADD.
int GVL_isosurf_set_att_const(int, int, int, float)
Set constant isosurface attribute.
void * GV_Get_ClientData(int)
Get client data.
int GK_set_interpmode(int)
Set interpolation mode.
int gvld_vol(geovol *)
Draw volume set (slices and isosurfaces)
void GS_get_scale(float *, float *, float *, int)
Get axis scale.
int gvl_slices_calc(geovol *)
Calculate slices for given volume set.
int GS_get_zrange(float *, float *, int)
Get z-extent for all loaded surfaces.
int GV_get_style(int, int *, int *, int *, int *)
Get vector style.
int GS_update_curmask(int)
Update current mask.
void gsd_model2real(Point3)
Convert model to real coordinates.
int GS_get_twist(void)
Get twist value.
int gvld_wind3_box(geovol *)
Draw volume bounding box.
void GS_get_to_real(float *)
Get 'to' real coordinates.
int GVL_isosurf_num_isosurfs(int)
Get number of available isosurfaces.
int GS_set_drawres(int, int, int, int, int)
Set draw resolution for surface.
int GVL_isosurf_get_flags(int, int, int *)
Get isosurface flags.
void gsd_bgntmesh(void)
ADD.
int GV_set_style(int, int, int, int, int)
Set vector style.
void GS_getlight_ambient(int, float *, float *, float *)
Get light ambient.
int gs_clip_segment(geosurf *, float *, float *, float *)
Clip segment.
geovect * gv_get_vect(int)
Get vector set.
int gvl_getall_vols(geovol **)
Get all volumes.
geopoint * Gp_load_sites(const char *, int *, int *)
Load to points to memory.
void gsd_deletelist(GLuint, int)
Delete list.
void gsd_display_fringe(geosurf *, unsigned long, float, int[4])
Display fridge.
void GS_set_Narrow(int *, int, float *)
Set decoration, north arrow ??
void gsd_get_zup(geoview *, double *)
Get z-up vector (z-direction)
void GV_alldraw_fastvect(void)
Draw all loaded vector sets (fast mode)
unsigned int GS_default_draw_color(void)
Get default draw color.
void GS_getlight_position(int, float *, float *, float *, int *)
Get light position.
void gvl_write_char(int, unsigned char **, unsigned char)
ADD.
int gpd_3dsite(geosite *, float, float, int)
Draw 3D point set.
int GP_set_style(int, int, int, float, int)
Set point style.
void gsd_endtmesh(void)
ADD.
int gsds_get_type(int)
ADD.
int gsd_wire_surf(geosurf *)
Draw surface wire.
int gsd_scalebar(float *, float, GLuint, unsigned long, unsigned long)
Draw Scalebar takes OpenGL coords and size.
int gvl_get_xextents(geovol *, float *, float *)
Get volume x-extent value.
float GS_P2distance(float *, float *)
Calculate distance in plane.
int gsd_getshademodel(void)
Get shaded model.
int GV_num_vects(void)
Get number of available vector sets.
void gsd_set_material(int, int, float, float, int)
Set material.
void gv_set_drapesurfs(geovect *, int *, int)
Set drape surfaces for vector set.
int gsd_get_txtwidth(const char *, int)
Get text width.
int gs_init_surf(geosurf *, double, double, int, int, double, double)
Initialize allocated geosurf struct.
geovol * gvl_get_new_vol(void)
Allocate new volume set and add it to the list.
int get_horz_intersects(geosurf *, float *, float *, float *)
Get horizontal intersects.
int GVL_slice_get_drawmode(int, int *)
Get slice draw mode.
int gs_get_zrange0(float *, float *)
Get z-range.
void GS_set_global_exag(float)
Set global z-exag value.
geosurf * gs_get_new_surface(void)
Allocate new geosurf struct.
void print_vol_fields(geovol *)
Debug volume fields.
int gsd_writeView(unsigned char **, unsigned int, unsigned int)
Write view.
void GS_set_draw(int)
Sets which buffer to draw to.
int gs_point_in_region(geosurf *, float *, float *)
Check if point is in region.
int gsbm_ornot_masks(struct BM *, struct BM *)
Mask bitmap (mask type ORNOT)
geosurf * gs_get_last_surface(void)
Get last allocated geosurf struct from list.
void gsd_do_scale(int)
Set current scale.
int GS_get_nozero(int, int, int *)
Get no-zero ?
void GS_get_modelposition(float *, float *)
Retrieves coordinates for lighting model position, at center of view.
void GS_draw_line_onsurf(int, float, float, float, float)
Draw line on surface.
void gsd_cplane_settrans(int, float, float, float)
ADD.
int get_vert_intersects(geosurf *, float *, float *, float *)
ADD.
int GS_unset_att(int, int)
Unset attribute.
void gsd_scale(float, float, float)
Multiply the current matrix by a general scaling matrix.
int gvl_file_start_read(geovol_file *)
Start read - allocate memory buffer a read first data into buffer.
void GK_show_vol(int)
Show volumes.
void GVL_set_trans(int, float, float, float)
Set trans ?
int get_txtxoffset(void)
Get text offset.
int GVL_isosurf_set_flags(int, int, int)
Set isosurface flags.
void gsd_fringe_horiz_poly(float, geosurf *, int, int)
Draw fringe polygon in x direction.
int GS_delete_surface(int)
Delete surface.
void gsd_remove_curr(void)
Remove current label.
int gs_set_att_src(geosurf *, int, int)
Set attribute source.
int gsds_free_datah(int)
Free allocated dataset.
int GV_new_vector(void)
Register new vector set.
void primitive_cylinder(unsigned long, int)
Primitives only called after transforms.
void gsd_swapbuffers(void)
Swap buffers.
void GS_set_nofocus(void)
Unset focus.
int GP_load_site(int, const char *)
Load point set from file.
void GS_switchlight(int, int)
Switch on/off light.
char * gsds_get_name(int)
Get name.
void gsd_bgnline(void)
Begin line.
void GS_v3mult(float *, float)
Multiple vectors.
int gsd_north_arrow(float *, float, GLuint, unsigned long, unsigned long)
Draw North Arrow takes OpenGL coords and size.
int GS_get_SDscale(float *)
Get ?
int * GVL_get_vol_list(int *)
Get list of loaded volume sets.
int gsd_surf_const(geosurf *, float)
Using tmesh - not confident with qstrips portability.
void gsd_set_clipplane(int, int)
Set clip plane.
void gsd_plus(float *, int, float)
ADD.
int gs_setall_norm_needupdate(void)
Set for geosurf need-to-update mark.
void GS_set_nozero(int, int, int)
Set no-zero ?
void gsd_endqstrip(void)
ADD.
int gs_calc_normals(geosurf *)
Calculate normals.
int GS_get_maskmode(int, int *)
Get mask mode.
void GV_alldraw_vect(void)
Draw all loaded vector sets.
int gvl_isosurf_set_att_src(geovol_isosurf *, int, int)
Set attribute source.
void GS_set_fov(int)
Set field of view.
int GVL_get_trans(int, float *, float *, float *)
Get trans ?
void gsd_drawsphere(float *, unsigned long, float)
Draw sphere.
void gsd_vert_func(float *)
ADD.
int GS_num_surfs(void)
Get number of surfaces.
void GS_get_modelposition1(float *)