|
GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
#include <stdio.h>#include <stdlib.h>#include <sys/types.h>#include <unistd.h>#include "G3d_intern.h"
Go to the source code of this file.
Functions | |
| void | G3d_getBlockNocache (G3D_Map *map, int x0, int y0, int z0, int nx, int ny, int nz, void *block, int type) |
| void | G3d_getBlock (G3D_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. More... | |
| void G3d_getBlock | ( | G3D_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 103 of file getblock.c.
References G3d_getBlockNocache(), G3d_getValueRegion(), G3d_length(), G3D_MIN, G3d_setNullValue(), G_incr_void_ptr(), and y.
| void G3d_getBlockNocache | ( | G3D_Map * | map, |
| int | x0, | ||
| int | y0, | ||
| int | z0, | ||
| int | nx, | ||
| int | ny, | ||
| int | nz, | ||
| void * | block, | ||
| int | type | ||
| ) |
Definition at line 10 of file getblock.c.
References dialogs::cols, for(), G3d_allocTilesType(), G3d_coord2tileCoord(), G3d_copyValues(), G3d_fatalError(), G3d_freeTiles(), G3d_getTilePtr(), G3d_readTile(), G3d_setNullTile(), G3d_tile2tileIndex(), G3d_tileIndexInRange(), NULL, utils::tile, and y.
Referenced by G3d_getBlock().