GRASS GIS 7 Programmer's Manual  7.5.svn(2018)-r72990
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
gvld.c File Reference

OGSF library - loading and manipulating volumes (lower level functions) More...

#include <math.h>
#include <grass/gis.h>
#include <grass/ogsf.h>
#include "mc33_table.h"
Include dependency graph for gvld.c:

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)
 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...
 

Detailed Description

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.

Author
Tomas Paudits (February 2004)
Doxygenized by Martin Landa <landa.martin gmail.com> (May 2008)

Definition in file gvld.c.

Macro Definition Documentation

#define DISTANCE_2 (   x1,
  y1,
  x2,
  y2 
)    sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))

Definition at line 424 of file gvld.c.

Referenced by gvld_slice().

#define READ ( )    gvl_read_char(pos[i]++, gvl->isosurf[i]->data)

Definition at line 27 of file gvld.c.

Referenced by gvld_isosurf().

Function Documentation

int gvld_vol ( geovol gvl)

Draw volume set (slices and isosurfaces)

Parameters
gvlpointer to geovol struct
Returns
-1 on failure
1 on success

Definition at line 37 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_wire_isosurf ( geovol gvl)

Draw volume isosurface in draw mode.

Parameters
gvlpointer to geovol struct
Returns
0

Definition at line 414 of file gvld.c.

Referenced by gvld_wire_vol().

int gvld_wire_vol ( geovol gvl)

Draw volume in wire mode (bounding box)

Parameters
gvlpointer to geovol struct
Returns
-1 on failure
1 on success

Definition at line 68 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().