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

OGSF library -. More...

#include <grass/gis.h>
#include <grass/ogsf.h>
#include "gsget.h"
#include "rowcol.h"
Include dependency graph for gsd_wire.c:

Go to the source code of this file.

Macros

#define DO_ARROWS
 

Functions

int gsd_wire_surf (geosurf *surf)
 Draw surface wire. More...
 
int gsd_wire_surf_map (geosurf *surf)
 ADD. More...
 
int gsd_wire_surf_const (geosurf *surf, float k)
 ADD. More...
 
int gsd_wire_surf_func (geosurf *gs, int(*user_func)())
 ADD. More...
 
int gsd_wire_arrows (geosurf *surf)
 ADD. More...
 
int gsd_coarse_surf_map (geosurf *surf)
 Draw coarse surface. More...
 

Detailed Description

OGSF library -.

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
Bill Brown USACERL (January 1993)
Doxygenized by Martin Landa <landa.martin gmail.com> (May 2008)

Definition in file gsd_wire.c.

Macro Definition Documentation

#define DO_ARROWS

Definition at line 26 of file gsd_wire.c.

Function Documentation

int gsd_coarse_surf_map ( geosurf surf)

Draw coarse surface.

New (TEST) wire routine that draws low res surface Based on new Trinagle Fan routine Resolution is a function of current surface resolution times wire resolution

Todo:
normals have to be recalculated before proper low res surface can be drawn

In window optimization has been removed

Parameters
surfsurface (geosurf)
Returns

Definition at line 572 of file gsd_wire.c.

References g_surf::att, ATT_COLOR, ATT_EMIT, ATT_SHINE, gsurf_att::att_src, ATT_TOPO, ATT_TRANSP, buff, CM_DIFFUSE, g_surf::cols, CONST_ATT, gsurf_att::constant, g_surf::curmask, FNORM, GET_MAPATT, gs_calc_normals(), gs_get_att_typbuff(), GS_get_scale(), GS_global_exag(), gs_mapcolor(), gs_update_curmask(), gsd_bgntfan(), gsd_blend(), gsd_colormode(), gsd_do_scale(), gsd_endtfan(), gsd_litvert_func(), gsd_popmatrix(), gsd_pushmatrix(), gsd_set_material(), gsd_surf_const(), gsd_translate(), gsd_zwritemask(), int, MAP_ATT, g_surf::norms, g_surf::rows, SCALE_ATT, VCOLS, VROWS, g_surf::wire_color, X, g_surf::x_mod, g_surf::x_modw, g_surf::x_trans, g_surf::xres, Y, g_surf::y_mod, g_surf::y_trans, g_surf::yres, Z, g_surf::z_exag, and g_surf::z_trans.

Referenced by gsd_wire_surf().

int gsd_wire_surf_func ( geosurf gs,
int(*)()  user_func 
)

ADD.

Not yet implemented.

Parameters
gssurface (geosurf)
user_funcuser defined function
Returns
1

Definition at line 442 of file gsd_wire.c.

Referenced by gsd_wire_surf().