|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-1d1e47ad9d
|
OGSF library - loading and manipulating volumes (lower level functions) More...

Go to the source code of this file.
Macros | |
| #define | READ() gvl_read_char(pos[i]++, gvl->isosurf[i]->data) |
| #define | DISTANCE_2(x1, y1, x2, y2) sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)) |
Functions | |
| int | gvld_vol (geovol *gvl) |
| Draw volume set (slices and isosurfaces) | |
| int | gvld_wire_vol (geovol *gvl) |
| Draw volume in wire mode (bounding box) | |
| int | gvld_isosurf (geovol *gvl) |
| Draw volume isosurfaces. | |
| int | gvld_wire_isosurf (geovol *gvl) |
| Draw volume isosurface in draw mode. | |
| int | gvld_slices (geovol *gvl) |
| Draw slices. | |
| int | gvld_slice (geovol *gvl, int ndx) |
| Draw slice. | |
| int | gvld_wire_slices (geovol *gvl) |
| Draw wire slices. | |
| int | gvld_wind3_box (geovol *gvl) |
| Draw volume bounding box. | |
OGSF library - loading and manipulating volumes (lower level functions)
GRASS OpenGL gsurf OGSF Library
(C) 1999-2008 by the GRASS Development Team
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file gvld.c.
| #define READ | ( | ) | gvl_read_char(pos[i]++, gvl->isosurf[i]->data) |
Draw volume isosurfaces.
| gvl | pointer to geovol struct |
Definition at line 92 of file gvld.c.
References geovol_isosurf::att, ATT_COLOR, ATT_EMIT, ATT_SHINE, geovol_isosurf_att::att_src, ATT_TRANSP, b, cell_table, CM_DIFFUSE, CONST_ATT, geovol_isosurf_att::constant, DM_GOURAUD, CELL_ENTRY::edges, g, G_debug(), G_free(), G_malloc, GS_check_cancel(), GS_get_scale(), gsd_bgnpolygon(), gsd_blend(), gsd_colormode(), gsd_do_scale(), gsd_endpolygon(), gsd_getwindow(), gsd_litvert_func(), gsd_popmatrix(), gsd_pushmatrix(), gsd_set_material(), gsd_shademodel(), gsd_translate(), gsd_zwritemask(), gvl_file_get_name(), MAP_ATT, CELL_ENTRY::nedges, CELL_ENTRY::npolys, CELL_ENTRY::polys, r, READ, X, x, Y, and Z.
Referenced by gvld_vol().
Draw slice.
| gvl | pointer to geovol struct |
| ndx |
Definition at line 500 of file gvld.c.
References geovol_slice::data, geovol_slice::dir, DISTANCE_2, gsd_bgntmesh(), gsd_blend(), gsd_endtmesh(), gsd_litvert_func(), gsd_zwritemask(), r, geovol_slice::transp, X, x, geovol_slice::x1, geovol_slice::x2, Y, geovol_slice::y1, geovol_slice::y2, Z, geovol_slice::z1, and geovol_slice::z2.
Referenced by gvld_slices().
Draw slices.
| gvl | pointer to geovol struct |
Definition at line 443 of file gvld.c.
References CM_COLOR, DM_GOURAUD, G_debug(), GS_get_scale(), gsd_blend(), gsd_colormode(), gsd_do_scale(), gsd_getwindow(), gsd_popmatrix(), gsd_pushmatrix(), gsd_set_material(), gsd_shademodel(), gsd_translate(), gsd_zwritemask(), and gvld_slice().
Referenced by gvld_vol().
Draw volume set (slices and isosurfaces)
| gvl | pointer to geovol struct |
Definition at line 38 of file gvld.c.
References G_debug(), gvl_isosurf_calc(), gvl_slices_calc(), gvld_isosurf(), and gvld_slices().
Referenced by GVL_draw_vol().
Draw volume bounding box.
| gvl | pointer to geovol struct |
Definition at line 787 of file gvld.c.
References CM_COLOR, DM_FLAT, G_debug(), gsd_bgnline(), gsd_color_func(), gsd_colormode(), gsd_do_scale(), gsd_endline(), gsd_linewidth(), gsd_popmatrix(), gsd_pushmatrix(), gsd_shademodel(), gsd_translate(), gsd_vert_func(), X, Y, and Z.
Referenced by GVL_draw_vol(), and gvld_wire_vol().
Draw volume isosurface in draw mode.
| gvl | pointer to geovol struct [unused] |
Definition at line 423 of file gvld.c.
Referenced by gvld_wire_vol().
Draw wire slices.
| gvl | pointer to geovol struct |
Definition at line 678 of file gvld.c.
References CM_COLOR, geovol_slice::dir, DM_FLAT, G_debug(), gsd_bgnline(), gsd_color_func(), gsd_colormode(), gsd_do_scale(), gsd_endline(), gsd_linewidth(), gsd_popmatrix(), gsd_pushmatrix(), gsd_set_material(), gsd_shademodel(), gsd_translate(), gsd_vert_func(), X, geovol_slice::x1, geovol_slice::x2, Y, geovol_slice::y1, geovol_slice::y2, Z, geovol_slice::z1, and geovol_slice::z2.
Referenced by gvld_wire_vol().
Draw volume in wire mode (bounding box)
| gvl | pointer to geovol struct |
Definition at line 69 of file gvld.c.
References G_debug(), gvld_wind3_box(), gvld_wire_isosurf(), and gvld_wire_slices().
Referenced by GVL_draw_wire().