GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
g3dresample.c File Reference
#include <stdio.h>
#include <grass/gis.h>
#include "G3d_intern.h"
Include dependency graph for g3dresample.c:

Go to the source code of this file.

Functions

void G3d_nearestNeighbor (G3D_Map *map, int row, int col, int depth, void *value, int type)
 The default resampling function which uses nearest neighbor resampling. More...
 
void G3d_setResamplingFun (G3D_Map *map, void(*resampleFun)())
 Sets the resampling function to be used by G3d_getValue () (cf.{g3d:G3d.getValue}). This function is defined as follows: More...
 
void G3d_getResamplingFun (G3D_Map *map, void(**resampleFun)())
 Returns in resampleFun a pointer to the resampling function used by map. More...
 
void G3d_getNearestNeighborFunPtr (void(**nnFunPtr)())
 Returns in nnFunPtr a pointer to G3d_nearestNeighbor () (cf.{g3d:G3d.nearestNeighbor}). More...
 

Function Documentation

void G3d_getNearestNeighborFunPtr ( void(**)()  nnFunPtr)

Returns in nnFunPtr a pointer to G3d_nearestNeighbor () (cf.{g3d:G3d.nearestNeighbor}).

Returns
void

Definition at line 90 of file g3dresample.c.

References G3d_nearestNeighbor().

Referenced by G3d_openCellNew(), and G3d_openCellOld().

void G3d_getResamplingFun ( G3D_Map *  map,
void(**)()  resampleFun 
)

Returns in resampleFun a pointer to the resampling function used by map.

Returns
void

Definition at line 73 of file g3dresample.c.

void G3d_nearestNeighbor ( G3D_Map *  map,
int  row,
int  col,
int  depth,
void *  value,
int  type 
)

The default resampling function which uses nearest neighbor resampling.

Parameters
map
row
col
depth
value
type
Returns
void

Definition at line 24 of file g3dresample.c.

References G3d_getValueRegion().

Referenced by G3d_getNearestNeighborFunPtr().

void G3d_setResamplingFun ( G3D_Map *  map,
void(*)()  resampleFun 
)

Sets the resampling function to be used by G3d_getValue () (cf.{g3d:G3d.getValue}). This function is defined as follows:

Returns
void

Definition at line 55 of file g3dresample.c.