GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
|
Go to the source code of this file.
Macros | |
#define | RASTER3D_MASKNUM(map, Xmask, Ymask, Zmask, VALUEmask, TYPEmask) |
Functions | |
int | Rast3d_mask_close () |
int | Rast3d_mask_file_exists (void) |
Returns 1 if the 3d mask file exists. More... | |
int | Rast3d_mask_open_old (void) |
int | Rast3d_mask_reopen (int cache) |
This function should be used to adjust the cache size used for the 3d-mask. First the open 3d-mask is closed and then opened again with a cache size as specified with cache. More... | |
int | Rast3d_is_masked (RASTER3D_Map *map, int x, int y, int z) |
Returns 1 if the cell with cell-coordinates (x, y, z) is masked out. Returns 0 otherwise. More... | |
void | Rast3d_mask_num (RASTER3D_Map *map, int x, int y, int z, void *value, int type) |
Replaces the value stored in value with the NULL-value if Rast3d_is_masked (x, y, z) returns 1. Does nothing otherwise. value is assumed to be oftype. More... | |
void | Rast3d_mask_float (RASTER3D_Map *map, int x, int y, int z, float *value) |
Same as Rast3d_mask_num (x, y, z, value, FCELL_TYPE). More... | |
void | Rast3d_mask_double (RASTER3D_Map *map, int x, int y, int z, double *value) |
Same as Rast3d_mask_num (x, y, z, value, DCELL_TYPE). More... | |
void | Rast3d_mask_tile (RASTER3D_Map *map, int tileIndex, void *tile, int type) |
Replaces the values stored in tile (with tileIndex) for which Rast3d_is_masked returns 1 with NULL-values. Does not change the remaining values. The values are assumed to be of type. Whether replacement is performed or not only depends on location of the cells of the tile and not on the status of the mask for map (i.e. turned on or off). More... | |
void | Rast3d_mask_on (RASTER3D_Map *map) |
Turns on the mask for map. Do not invoke this function after the first tile has been read since the result might be inconsistent cell-values. More... | |
void | Rast3d_mask_off (RASTER3D_Map *map) |
Turns off the mask for map. This is the default. Do not invoke this function after the first tile has been read since the result might be inconsistent cell-values. More... | |
int | Rast3d_mask_is_on (RASTER3D_Map *map) |
Returns 1 if the mask for map is turned on. Returns 0 otherwise. More... | |
int | Rast3d_mask_is_off (RASTER3D_Map *map) |
Returns 1 if the mask for map is turned off. Returns 0 otherwise. More... | |
const char * | Rast3d_mask_file (void) |
Returns the name of the 3d mask file. More... | |
int | Rast3d_mask_map_exists (void) |
Returns 1 if the 3d mask is loaded. More... | |
#define RASTER3D_MASKNUM | ( | map, | |
Xmask, | |||
Ymask, | |||
Zmask, | |||
VALUEmask, | |||
TYPEmask | |||
) |
int Rast3d_is_masked | ( | RASTER3D_Map * | map, |
int | x, | ||
int | y, | ||
int | z | ||
) |
void Rast3d_mask_double | ( | RASTER3D_Map * | map, |
int | x, | ||
int | y, | ||
int | z, | ||
double * | value | ||
) |
const char* Rast3d_mask_file | ( | void | ) |
Returns the name of the 3d mask file.
Definition at line 394 of file mask.c.
References RASTER3D_MASK_MAP.
int Rast3d_mask_file_exists | ( | void | ) |
Returns 1 if the 3d mask file exists.
Definition at line 64 of file mask.c.
References G_find_file_misc(), G_mapset(), NULL, RASTER3D_CELL_ELEMENT, RASTER3D_DIRECTORY, and RASTER3D_MASK_MAP.
void Rast3d_mask_float | ( | RASTER3D_Map * | map, |
int | x, | ||
int | y, | ||
int | z, | ||
float * | value | ||
) |
int Rast3d_mask_is_off | ( | RASTER3D_Map * | map | ) |
Returns 1 if the mask for map is turned off. Returns 0 otherwise.
map |
Definition at line 380 of file mask.c.
References RASTER3D_Map::useMask.
int Rast3d_mask_is_on | ( | RASTER3D_Map * | map | ) |
Returns 1 if the mask for map is turned on. Returns 0 otherwise.
map |
Definition at line 365 of file mask.c.
References RASTER3D_Map::useMask.
int Rast3d_mask_map_exists | ( | void | ) |
void Rast3d_mask_num | ( | RASTER3D_Map * | map, |
int | x, | ||
int | y, | ||
int | z, | ||
void * | value, | ||
int | type | ||
) |
void Rast3d_mask_off | ( | RASTER3D_Map * | map | ) |
Turns off the mask for map. This is the default. Do not invoke this function after the first tile has been read since the result might be inconsistent cell-values.
map |
Definition at line 349 of file mask.c.
References RASTER3D_Map::useMask.
Referenced by Rast3d_open_cell_old_no_header().
void Rast3d_mask_on | ( | RASTER3D_Map * | map | ) |
Turns on the mask for map. Do not invoke this function after the first tile has been read since the result might be inconsistent cell-values.
map |
Definition at line 332 of file mask.c.
References RASTER3D_Map::useMask.
int Rast3d_mask_open_old | ( | void | ) |
Definition at line 73 of file mask.c.
Referenced by Rast3d_open_cell_old_no_header().
int Rast3d_mask_reopen | ( | int | cache | ) |
void Rast3d_mask_tile | ( | RASTER3D_Map * | map, |
int | tileIndex, | ||
void * | tile, | ||
int | type | ||
) |
Replaces the values stored in tile (with tileIndex) for which Rast3d_is_masked returns 1 with NULL-values. Does not change the remaining values. The values are assumed to be of type. Whether replacement is performed or not only depends on location of the cells of the tile and not on the status of the mask for map (i.e. turned on or off).
map | |
tileIndex | |
tile | |
type |