GRASS GIS 8 Programmer's Manual
8.2.2dev(2023)-3d2c704037
|
OGSF library - manipulating bitmaps (lower level functions) More...
Go to the source code of this file.
Macros | |
#define | MASK_OR 1 |
mask types More... | |
#define | MASK_ORNOT 2 |
#define | MASK_AND 3 |
#define | MASK_XOR 4 |
Functions | |
struct BM * | gsbm_make_mask (typbuff *frombuff, float maskval, int rows, int cols) |
Do combining of bitmaps, make bitmaps from other data w/maskval. More... | |
void | gsbm_zero_mask (struct BM *map) |
Zero mask. More... | |
int | gsbm_or_masks (struct BM *bmvar, struct BM *bmcon) |
Mask bitmap (mask type OR) More... | |
int | gsbm_ornot_masks (struct BM *bmvar, struct BM *bmcon) |
Mask bitmap (mask type ORNOT) More... | |
int | gsbm_and_masks (struct BM *bmvar, struct BM *bmcon) |
Mask bitmap (mask type ADD) More... | |
int | gsbm_xor_masks (struct BM *bmvar, struct BM *bmcon) |
Mask bitmap (mask type XOR) More... | |
int | gs_update_curmask (geosurf *surf) |
Update current maps. More... | |
void | print_bm (struct BM *bm) |
Print bitmap to stderr. More... | |
OGSF library - manipulating bitmaps (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 gs_bm.c.
int gs_update_curmask | ( | geosurf * | surf | ) |
Update current maps.
surf | surface (geosurf) |
Definition at line 232 of file gs_bm.c.
References g_surf::att, ATT_COLOR, ATT_MASK, gsurf_att::att_src, ATT_TOPO, typbuff::bm, BM_create(), BM_destroy(), BM_set(), g_surf::cols, gsurf_att::constant, g_surf::curmask, G_debug(), gs_get_att_typbuff(), gs_mapcolor(), gs_mask_defined(), gs_masked(), gs_set_maskmode(), gsbm_make_mask(), gsbm_or_masks(), gsbm_ornot_masks(), gsbm_zero_mask(), g_surf::gsurf_id, MAP_ATT, g_surf::mask_needupdate, typbuff::nm, g_surf::norm_needupdate, NULL, NULL_COLOR, g_surf::nz_color, g_surf::nz_topo, g_surf::rows, g_surf::zmin, and g_surf::zminmasked.
Referenced by gs_calc_normals(), GS_update_curmask(), gsd_wire_arrows(), gsd_wire_surf_const(), and gsd_wire_surf_map().
Do combining of bitmaps, make bitmaps from other data w/maskval.
frombuff | data buffer |
maskval | mask type |
rows | number of rows |
cols | number of cols |
Definition at line 35 of file gs_bm.c.
References typbuff::bm, BM_create(), BM_get(), BM_set(), BM::cols, GET_MAPATT, and BM::rows.
Referenced by gs_update_curmask().
Mask bitmap (mask type OR)
Must be same size, ORs bitmaps & stores in bmvar
Definition at line 168 of file gs_bm.c.
Referenced by gs_update_curmask().
Mask bitmap (mask type ORNOT)
Must be same size, ORNOTs bitmaps & stores in bmvar
Definition at line 185 of file gs_bm.c.
Referenced by gs_update_curmask().
void gsbm_zero_mask | ( | struct BM * | map | ) |