GRASS Programmer's Manual
6.4.2(2012)
|
00001 #include <stdio.h> 00002 #include <grass/gis.h> 00003 #include "G3d_intern.h" 00004 00005 /*--------------------------------------------------------------------------*/ 00006 00007 00023 void 00024 G3d_nearestNeighbor(G3D_Map * map, int row, int col, int depth, void *value, 00025 int type) 00026 { 00027 00028 /*AV*/ 00029 /* BEGIN OF ORIGINAL CODE */ 00030 /* 00031 G3d_getValueRegion (map, row, col, depth, value, type); 00032 */ 00033 /* END OF ORIGINAL CODE */ 00034 /*AV*/ 00035 /* BEGIN OF MY CODE */ 00036 G3d_getValueRegion(map, col, row, depth, value, type); 00037 /* END OF MY CODE */ 00038 00039 00040 } 00041 00042 /*--------------------------------------------------------------------------*/ 00043 00044 00055 void G3d_setResamplingFun(G3D_Map * map, void (*resampleFun) ()) 00056 { 00057 map->resampleFun = resampleFun; 00058 } 00059 00060 /*--------------------------------------------------------------------------*/ 00061 00062 00073 void G3d_getResamplingFun(G3D_Map * map, void (**resampleFun) ()) 00074 { 00075 *resampleFun = map->resampleFun; 00076 } 00077 00078 /*--------------------------------------------------------------------------*/ 00079 00080 00090 void G3d_getNearestNeighborFunPtr(void (**nnFunPtr) ()) 00091 { 00092 *nnFunPtr = G3d_nearestNeighbor; 00093 }