GRASS Programmer's Manual
6.4.4(2014)-r
|
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include <rpc/types.h>
#include <rpc/xdr.h>
#include <grass/gis.h>
#include "G3d_intern.h"
Go to the source code of this file.
Functions | |
void | G3d_range_updateFromTile (G3D_Map *map, const void *tile, int rows, int cols, int depths, int xRedundant, int yRedundant, int zRedundant, int nofNum, int type) |
int | G3d_readRange (const char *name, const char *mapset, struct FPRange *drange) |
int | G3d_range_load (G3D_Map *map) |
Loads the range into the range structure of map. More... | |
void | G3d_range_min_max (G3D_Map *map, double *min, double *max) |
Returns in min and max the minimum and maximum values of the range. More... | |
int | G3d_range_write (G3D_Map *map) |
Writes the range which is stored in the range structure of map. (This function is invoked automatically when a new file is closed). More... | |
int | G3d_range_init (G3D_Map *map) |
int G3d_range_init | ( | G3D_Map * | map | ) |
Definition at line 235 of file g3drange.c.
References G_init_fp_range().
Referenced by G3d_openCellNew(), and G3d_openCellOldNoHeader().
int G3d_range_load | ( | G3D_Map * | map | ) |
Loads the range into the range structure of map.
map |
Definition at line 123 of file g3drange.c.
References G3d_readRange(), and G3D_WRITE_DATA.
Referenced by open_g3d_file().
void G3d_range_min_max | ( | G3D_Map * | map, |
double * | min, | ||
double * | max | ||
) |
Returns in min and max the minimum and maximum values of the range.
map | |
min | |
max |
Definition at line 149 of file g3drange.c.
References G_get_fp_range_min_max().
Referenced by G3d_printHeader(), and open_g3d_file().
void G3d_range_updateFromTile | ( | G3D_Map * | map, |
const void * | tile, | ||
int | rows, | ||
int | cols, | ||
int | depths, | ||
int | xRedundant, | ||
int | yRedundant, | ||
int | zRedundant, | ||
int | nofNum, | ||
int | type | ||
) |
Definition at line 13 of file g3drange.c.
References G3d_g3dType2cellType(), G3d_length(), G_incr_void_ptr(), G_row_update_fp_range(), tools::range, and y.
Referenced by G3d_writeTile().
int G3d_range_write | ( | G3D_Map * | map | ) |
Writes the range which is stored in the range structure of map. (This function is invoked automatically when a new file is closed).
map |
Definition at line 218 of file g3drange.c.
References G3d_error(), and G3d_filename().
int G3d_readRange | ( | const char * | name, |
const char * | mapset, | ||
struct FPRange * | drange | ||
) |
Definition at line 57 of file g3drange.c.
References G3D_XDR_DOUBLE_LENGTH, G__name_is_fully_qualified(), G_find_file2(), G_init_fp_range(), G_open_old(), G_update_fp_range(), and G_warning().
Referenced by G3d_range_load(), and G3d_readColors().