Functions

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.
int G_suppress_masking (void)
 Suppresses masking.
int G_unsuppress_masking (void)
 Unsuppresses masking.

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__open_cell_old(), G_find_cell(), G_get_cellhd(), G_mapset(), G_projection(), G_unopen_cell(), G_warning(), and G_zone().

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

int G_unsuppress_masking ( void   ) 

Unsuppresses masking.

Returns:
always returns 0

Definition at line 101 of file auto_mask.c.

References G__check_for_auto_masking().