GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
auto_mask.c File Reference

GIS Library - Auto masking routines. More...

#include <stdlib.h>
#include <grass/gis.h>
#include <grass/glocale.h>
#include "G.h"
Include dependency graph for auto_mask.c:

Go to the source code of this file.

Functions

int G__check_for_auto_masking (void)
 Checks for auto masking. More...
 
int G_suppress_masking (void)
 Suppresses masking. More...
 
int G_unsuppress_masking (void)
 Unsuppresses masking. More...
 

Detailed Description

GIS Library - Auto masking routines.

(C) 2001-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
GRASS GIS Development Team
Date
1999-2008

Definition in file auto_mask.c.

Function Documentation

int G__check_for_auto_masking ( void  )

Checks for auto masking.

On first call, opens the mask file if declared and available and allocates buffer for reading mask rows. On second call, returns 0 or 1.

Returns
0 if mask unset or unavailable
1 if mask set and available and ready to use

Definition at line 34 of file auto_mask.c.

References G__::auto_mask, G__open_cell_old(), G_find_cell(), G_get_cellhd(), G_mapset(), G_projection(), G_unopen_cell(), G_warning(), G_zone(), and G__::mask_fd.

Referenced by G_maskfd(), G_open_cell_old(), G_set_window(), and G_unsuppress_masking().

int G_suppress_masking ( void  )

Suppresses masking.

Returns
always returns 0

Definition at line 82 of file auto_mask.c.

References G__::auto_mask, G_close_cell(), and G__::mask_fd.

int G_unsuppress_masking ( void  )

Unsuppresses masking.

Returns
always returns 0

Definition at line 101 of file auto_mask.c.

References G__::auto_mask, G__check_for_auto_masking(), and G__::mask_fd.