GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
G3d_intern.h File Reference
#include <rpc/types.h>
#include <rpc/xdr.h>
#include <grass/G3d.h>
#include <grass/gis.h>
Include dependency graph for G3d_intern.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define G3D_LONG_LENGTH   sizeof (long)
 
#define G3D_XDR_INT_LENGTH   4
 
#define G3D_XDR_DOUBLE_LENGTH   8
 
#define G3D_XDR_FLOAT_LENGTH   4
 
#define G3D_IS_CORRECT_TYPE(t)   (((t) == FCELL_TYPE) || ((t) == DCELL_TYPE))
 
#define G3D_WRITE_DATA   1
 
#define G3D_READ_DATA   0
 
#define G3D_VALID_OPERATION(o)   (((o) == G3D_WRITE_DATA) || ((o) == G3D_READ_DATA))
 
#define G3D_MIN(a, b)   ((a) <= (b) ? (a) : (b))
 
#define G3D_MAX(a, b)   ((a) >= (b) ? (a) : (b))
 
#define G3D_HAS_INDEX   1
 
#define G3D_NO_INDEX   0
 
#define G3D_USE_XDR   1
 
#define G3D_NO_XDR   0
 
#define G3D_VALID_XDR_OPTION(o)   (((o) == G3D_USE_XDR) || ((o) == G3D_NO_XDR))
 
#define G3D_REGION_NORTH   "North"
 
#define G3D_REGION_SOUTH   "South"
 
#define G3D_REGION_EAST   "East"
 
#define G3D_REGION_WEST   "West"
 
#define G3D_REGION_TOP   "Top"
 
#define G3D_REGION_BOTTOM   "Bottom"
 
#define G3D_REGION_ROWS   "nofRows"
 
#define G3D_REGION_COLS   "nofCols"
 
#define G3D_REGION_DEPTHS   "nofDepths"
 
#define G3D_REGION_PROJ   "Proj"
 
#define G3D_REGION_ZONE   "Zone"
 
#define G3D_REGION_EWRES   "e-w resol"
 
#define G3D_REGION_NSRES   "n-s resol"
 
#define G3D_REGION_TBRES   "t-b resol"
 

Functions

void G3d_fatalError (const char *,...)
 This function prints the error message msg, and terminates the program with an error status. More...
 
void G3d_fatalError_noargs (const char *)
 

Variables

void * tmpCompress
 
int tmpCompressLength
 
void * xdr
 
int xdrLength
 
int g3d_do_compression
 
int g3d_do_lzw_compression
 
int g3d_do_rle_compression
 
int g3d_precision
 
int g3d_cache_default
 
int g3d_cache_max
 
int g3d_file_type
 
int g3d_tile_dimension [3]
 
void(* g3d_error_fun )(const char *)
 
char * g3d_unit_default
 
G3D_Region g3d_window
 

Macro Definition Documentation

#define G3D_HAS_INDEX   1

Definition at line 28 of file G3d_intern.h.

Referenced by G3d_openCellNew().

#define G3D_IS_CORRECT_TYPE (   t)    (((t) == FCELL_TYPE) || ((t) == DCELL_TYPE))

Definition at line 17 of file G3d_intern.h.

Referenced by G3d_externLength(), and G3d_length().

#define G3D_LONG_LENGTH   sizeof (long)

Definition at line 11 of file G3d_intern.h.

Referenced by G3d_longDecode(), and G3d_longEncode().

#define G3D_MAX (   a,
  b 
)    ((a) >= (b) ? (a) : (b))

Definition at line 26 of file G3d_intern.h.

Referenced by G3d__computeCacheSize(), G3d_fillHeader(), and G3d_initFpXdr().

#define G3D_MIN (   a,
  b 
)    ((a) <= (b) ? (a) : (b))
#define G3D_NO_INDEX   0

Definition at line 29 of file G3d_intern.h.

#define G3D_NO_XDR   0
#define G3D_READ_DATA   0
#define G3D_REGION_BOTTOM   "Bottom"

Definition at line 76 of file G3d_intern.h.

#define G3D_REGION_COLS   "nofCols"

Definition at line 78 of file G3d_intern.h.

#define G3D_REGION_DEPTHS   "nofDepths"

Definition at line 79 of file G3d_intern.h.

#define G3D_REGION_EAST   "East"

Definition at line 73 of file G3d_intern.h.

#define G3D_REGION_EWRES   "e-w resol"

Definition at line 82 of file G3d_intern.h.

#define G3D_REGION_NORTH   "North"

Definition at line 71 of file G3d_intern.h.

#define G3D_REGION_NSRES   "n-s resol"

Definition at line 83 of file G3d_intern.h.

#define G3D_REGION_PROJ   "Proj"

Definition at line 80 of file G3d_intern.h.

#define G3D_REGION_ROWS   "nofRows"

Definition at line 77 of file G3d_intern.h.

#define G3D_REGION_SOUTH   "South"

Definition at line 72 of file G3d_intern.h.

#define G3D_REGION_TBRES   "t-b resol"

Definition at line 84 of file G3d_intern.h.

#define G3D_REGION_TOP   "Top"

Definition at line 75 of file G3d_intern.h.

#define G3D_REGION_WEST   "West"

Definition at line 74 of file G3d_intern.h.

#define G3D_REGION_ZONE   "Zone"

Definition at line 81 of file G3d_intern.h.

#define G3D_USE_XDR   1

Definition at line 31 of file G3d_intern.h.

Referenced by G3d_initCopyFromXdr(), G3d_initCopyToXdr(), and G3d_openCellNew().

#define G3D_VALID_OPERATION (   o)    (((o) == G3D_WRITE_DATA) || ((o) == G3D_READ_DATA))

Definition at line 22 of file G3d_intern.h.

Referenced by G3d_fillHeader().

#define G3D_VALID_XDR_OPTION (   o)    (((o) == G3D_USE_XDR) || ((o) == G3D_NO_XDR))

Definition at line 34 of file G3d_intern.h.

Referenced by G3d_fillHeader().

#define G3D_WRITE_DATA   1
#define G3D_XDR_DOUBLE_LENGTH   8

Definition at line 14 of file G3d_intern.h.

Referenced by G3d_externLength(), G3d_readDoubles(), G3d_writeDoubles(), and if().

#define G3D_XDR_FLOAT_LENGTH   4

Definition at line 15 of file G3d_intern.h.

Referenced by G3d_externLength().

#define G3D_XDR_INT_LENGTH   4

Definition at line 13 of file G3d_intern.h.

Referenced by G3d_readInts(), and G3d_writeInts().

Function Documentation

void G3d_fatalError_noargs ( const char *  )

Definition at line 70 of file g3derror.c.

References G_fatal_error().

Referenced by G3d_initDefaults().

Variable Documentation

int g3d_cache_default
int g3d_cache_max
int g3d_do_compression
int g3d_do_lzw_compression
int g3d_do_rle_compression
void(* g3d_error_fun)(const char *)

Definition at line 63 of file g3ddefaults.c.

Referenced by G3d_initDefaults(), and G3d_setErrorFun().

int g3d_file_type

Definition at line 60 of file g3ddefaults.c.

Referenced by G3d_getFileType(), G3d_initDefaults(), G3d_openCellNew(), and G3d_setFileType().

int g3d_precision
int g3d_tile_dimension[3]
char* g3d_unit_default

Definition at line 64 of file g3ddefaults.c.

Referenced by G3d_initDefaults(), G3d_openCellNew(), and G3d_setUnit().

G3D_Region g3d_window

Definition at line 8 of file g3dwindow.c.

Referenced by G3d_getWindow(), G3d_setWindow(), and G3d_windowPtr().

void* tmpCompress

Definition at line 12 of file g3d/header.c.

Referenced by G3d_fillHeader().

int tmpCompressLength

Definition at line 13 of file g3d/header.c.

Referenced by G3d_fillHeader().

void* xdr

Definition at line 14 of file g3d/header.c.

Referenced by G3d_initCopyFromXdr(), G3d_initCopyToXdr(), and G3d_initFpXdr().

int xdrLength

Definition at line 15 of file g3d/header.c.

Referenced by G3d_initFpXdr().