GRASS GIS 7 Programmer's Manual  7.5.svn(2018)-r72097
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
getblock.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include <grass/raster.h>
#include "raster3d_intern.h"
Include dependency graph for getblock.c:

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. More...
 

Function Documentation

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.

Parameters
map
x0
y0
z0
nx
ny
nz
block
type
Returns
void

Definition at line 105 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.