GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-36359e2344
|
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) More... | |
int | gvld_wire_vol (geovol *gvl) |
Draw volume in wire mode (bounding box) More... | |
int | gvld_isosurf (geovol *gvl) |
Draw volume isosurfaces. More... | |
int | gvld_wire_isosurf (geovol *gvl UNUSED) |
Draw volume isosurface in draw mode. More... | |
int | gvld_slices (geovol *gvl) |
Draw slices. More... | |
int | gvld_slice (geovol *gvl, int ndx) |
Draw slice. More... | |
int | gvld_wire_slices (geovol *gvl) |
Draw wire slices. More... | |
int | gvld_wind3_box (geovol *gvl) |
Draw volume bounding box. More... | |
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 DISTANCE_2 | ( | x1, | |
y1, | |||
x2, | |||
y2 | |||
) | sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)) |
#define READ | ( | ) | gvl_read_char(pos[i]++, gvl->isosurf[i]->data) |
int gvld_isosurf | ( | geovol * | gvl | ) |
Draw volume isosurfaces.
gvl | pointer to geovol struct |
Definition at line 92 of file gvld.c.
References b, g, g_vol::n_isosurfs, r, and x.
Referenced by gvld_vol().
int gvld_slice | ( | geovol * | gvl, |
int | ndx | ||
) |
int gvld_slices | ( | geovol * | gvl | ) |
Draw slices.
gvl | pointer to geovol struct |
Definition at line 430 of file gvld.c.
Referenced by gvld_vol().
int gvld_vol | ( | geovol * | gvl | ) |
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(), gvld_slices(), and g_vol::gvol_id.
Referenced by GVL_draw_vol().
int gvld_wind3_box | ( | geovol * | gvl | ) |
Draw volume bounding box.
gvl | pointer to geovol struct |
Definition at line 774 of file gvld.c.
References CM_COLOR, g_vol::cols, g_vol::depths, 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(), g_vol::gvol_id, g_vol::rows, X, g_vol::x_trans, g_vol::xres, Y, g_vol::y_trans, g_vol::yres, Z, g_vol::z_trans, and g_vol::zres.
Referenced by GVL_draw_vol(), and gvld_wire_vol().
int gvld_wire_isosurf | ( | geovol *gvl | UNUSED | ) |
Draw volume isosurface in draw mode.
gvl | pointer to geovol struct [unused] |
Definition at line 410 of file gvld.c.
Referenced by gvld_wire_vol().
int gvld_wire_slices | ( | geovol * | gvl | ) |
Draw wire slices.
gvl | pointer to geovol struct |
Definition at line 665 of file gvld.c.
Referenced by gvld_wire_vol().
int gvld_wire_vol | ( | geovol * | gvl | ) |
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(), gvld_wire_slices(), and g_vol::gvol_id.
Referenced by GVL_draw_wire().