GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
g3dresample.c
Go to the documentation of this file.
1 #include <stdio.h>
2 #include <grass/gis.h>
3 #include "G3d_intern.h"
4 
5 /*--------------------------------------------------------------------------*/
6 
7 
23 void
24 G3d_nearestNeighbor(G3D_Map * map, int row, int col, int depth, void *value,
25  int type)
26 {
27 
28  /*AV*/
29  /* BEGIN OF ORIGINAL CODE */
30  /*
31  G3d_getValueRegion (map, row, col, depth, value, type);
32  */
33  /* END OF ORIGINAL CODE */
34  /*AV*/
35  /* BEGIN OF MY CODE */
36  G3d_getValueRegion(map, col, row, depth, value, type);
37  /* END OF MY CODE */
38 
39 
40 }
41 
42 /*--------------------------------------------------------------------------*/
43 
44 
55 void G3d_setResamplingFun(G3D_Map * map, void (*resampleFun) ())
56 {
57  map->resampleFun = resampleFun;
58 }
59 
60 /*--------------------------------------------------------------------------*/
61 
62 
73 void G3d_getResamplingFun(G3D_Map * map, void (**resampleFun) ())
74 {
75  *resampleFun = map->resampleFun;
76 }
77 
78 /*--------------------------------------------------------------------------*/
79 
80 
90 void G3d_getNearestNeighborFunPtr(void (**nnFunPtr) ())
91 {
92  *nnFunPtr = G3d_nearestNeighbor;
93 }
void G3d_getValueRegion(G3D_Map *map, int x, int y, int z, void *value, int type)
Returns in *value the cell-value of the cell with region-coordinate (x, y, z). The value returned is ...
Definition: tileio.c:244
void G3d_getNearestNeighborFunPtr(void(**nnFunPtr)())
Returns in nnFunPtr a pointer to G3d_nearestNeighbor () (cf.{g3d:G3d.nearestNeighbor}).
Definition: g3dresample.c:90
void G3d_getResamplingFun(G3D_Map *map, void(**resampleFun)())
Returns in resampleFun a pointer to the resampling function used by map.
Definition: g3dresample.c:73
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:
Definition: g3dresample.c:55
char * value
Definition: env.c:30
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.
Definition: g3dresample.c:24