|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-ddeab64dbf
|
#include <stdio.h>#include <stdlib.h>#include <sys/types.h>#include <unistd.h>#include <grass/raster.h>#include "raster3d_intern.h"
Go to the source code of this file.
Functions | |
| void | Rast3d_get_block_nocache (RASTER3D_Map *map, int x0, int y0, int z0, int nx, int ny, int nz, void *block, int type) |
| void | Rast3d_get_block (RASTER3D_Map *map, int x0, int y0, int z0, int nx, int ny, int nz, void *block, int type) |
| Copies the cells contained in the block (cube) with vertices (x0, y0, z0) and (x0 + nx - 1, y0 + ny - 1, z0 + nz - 1) into block. The cell-values in block are of type. The source code can be found in getblock.c. | |
| void Rast3d_get_block | ( | RASTER3D_Map * | map, |
| int | x0, | ||
| int | y0, | ||
| int | z0, | ||
| int | nx, | ||
| int | ny, | ||
| int | nz, | ||
| void * | block, | ||
| int | type | ||
| ) |
Copies the cells contained in the block (cube) with vertices (x0, y0, z0) and (x0 + nx - 1, y0 + ny - 1, z0 + nz - 1) into block. The cell-values in block are of type. The source code can be found in getblock.c.
| map | |
| x0 | |
| y0 | |
| z0 | |
| nx | |
| ny | |
| nz | |
| block | |
| type |
Definition at line 101 of file getblock.c.
References RASTER3D_Region::cols, RASTER3D_Region::depths, G_incr_void_ptr, Rast3d_get_block_nocache(), Rast3d_get_value_region(), Rast3d_length(), Rast3d_set_null_value(), RASTER3D_MIN, RASTER3D_Map::region, RASTER3D_Region::rows, RASTER3D_Map::useCache, and x.
| void Rast3d_get_block_nocache | ( | RASTER3D_Map * | map, |
| int | x0, | ||
| int | y0, | ||
| int | z0, | ||
| int | nx, | ||
| int | ny, | ||
| int | nz, | ||
| void * | block, | ||
| int | type | ||
| ) |
Definition at line 11 of file getblock.c.
References NULL, Rast3d_alloc_tiles_type(), Rast3d_coord2tile_coord(), Rast3d_copy_values(), Rast3d_fatal_error(), Rast3d_free_tiles(), Rast3d_get_tile_ptr(), Rast3d_read_tile(), Rast3d_set_null_tile(), Rast3d_tile2tile_index(), Rast3d_tile_index_in_range(), RASTER3D_Map::tileX, RASTER3D_Map::tileXY, RASTER3D_Map::tileY, RASTER3D_Map::tileZ, RASTER3D_Map::typeIntern, RASTER3D_Map::useCache, and x.
Referenced by Rast3d_get_block().