GRASS GIS 7 Programmer's Manual  7.7.svn(2018)-r73362
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
raster3d.h File Reference
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/defs/raster3d.h>
Include dependency graph for raster3d.h:

Go to the source code of this file.

Data Structures

struct  RASTER3D_Region
 
struct  RASTER3D_Map
 
struct  RASTER3D_cache
 
struct  Rast3d_cache_hash
 
struct  _d_interval
 
struct  _d_mask
 
struct  RASTER3D_Array_double
 

Macros

#define RASTER3D_MAP_VERSION
 
#define RASTER3D_TILE_SAME_AS_FILE   2
 
#define RASTER3D_NO_COMPRESSION   0
 
#define RASTER3D_COMPRESSION   1
 
#define RASTER3D_MAX_PRECISION   -1
 
#define RASTER3D_NO_CACHE   0
 
#define RASTER3D_USE_CACHE_DEFAULT   -1
 
#define RASTER3D_USE_CACHE_X   -2
 
#define RASTER3D_USE_CACHE_Y   -3
 
#define RASTER3D_USE_CACHE_Z   -4
 
#define RASTER3D_USE_CACHE_XY   -5
 
#define RASTER3D_USE_CACHE_XZ   -6
 
#define RASTER3D_USE_CACHE_YZ   -7
 
#define RASTER3D_USE_CACHE_XYZ   -8
 
#define RASTER3D_DEFAULT_WINDOW   NULL
 
#define RASTER3D_DIRECTORY   "grid3"
 
#define RASTER3D_CELL_ELEMENT   "cell"
 
#define RASTER3D_CATS_ELEMENT   "cats"
 
#define RASTER3D_RANGE_ELEMENT   "range"
 
#define RASTER3D_HEADER_ELEMENT   "cellhd"
 
#define RASTER3D_HISTORY_ELEMENT   "hist"
 
#define RASTER3D_COLOR_ELEMENT   "color"
 
#define RASTER3D_COLOR2_DIRECTORY   "colr2"
 
#define RASTER3D_MASK_MAP   "RASTER3D_MASK"
 
#define RASTER3D_WINDOW_ELEMENT   "WIND3"
 
#define RASTER3D_DEFAULT_WINDOW_ELEMENT   "DEFAULT_WIND3"
 
#define RASTER3D_WINDOW_DATABASE   "windows3d"
 
#define RASTER3D_PERMANENT_MAPSET   "PERMANENT"
 
#define RASTER3D_ARRAY_ACCESS(arr, x, y, z)   ((arr)->array[(arr)->sx * (arr)->sy * (z) + (arr)->sx * (y) + (x)])
 

Typedefs

typedef void resample_fn (struct RASTER3D_Map *, int, int, int, void *, int)
 
typedef struct RASTER3D_Map RASTER3D_Map
 
typedef struct _d_interval d_Interval
 
typedef struct _d_mask d_Mask
 
typedef int write_fn (int, const void *, void *)
 
typedef int read_fn (int, void *, void *)
 

Macro Definition Documentation

#define RASTER3D_ARRAY_ACCESS (   arr,
  x,
  y,
 
)    ((arr)->array[(arr)->sx * (arr)->sy * (z) + (arr)->sx * (y) + (x)])

Definition at line 268 of file raster3d.h.

Referenced by Rast3d_gradient_double().

#define RASTER3D_CATS_ELEMENT   "cats"

Definition at line 33 of file raster3d.h.

Referenced by Rast3d_write_cats().

#define RASTER3D_CELL_ELEMENT   "cell"

Definition at line 32 of file raster3d.h.

Referenced by Rast3d_mask_file_exists(), and Rast3d_open_cell_old_no_header().

#define RASTER3D_COLOR2_DIRECTORY   "colr2"

Definition at line 38 of file raster3d.h.

#define RASTER3D_COLOR_ELEMENT   "color"

Definition at line 37 of file raster3d.h.

Referenced by Rast3d_remove_color(), and Rast3d_write_colors().

#define RASTER3D_COMPRESSION   1
#define RASTER3D_DEFAULT_WINDOW   NULL
#define RASTER3D_DEFAULT_WINDOW_ELEMENT   "DEFAULT_WIND3"

Definition at line 41 of file raster3d.h.

#define RASTER3D_HEADER_ELEMENT   "cellhd"

Definition at line 35 of file raster3d.h.

Referenced by Rast3d_read_header(), Rast3d_read_region_map(), and Rast3d_write_header().

#define RASTER3D_HISTORY_ELEMENT   "hist"

Definition at line 36 of file raster3d.h.

Referenced by Rast3d_read_history(), and Rast3d_write_history().

#define RASTER3D_MAP_VERSION
Value:
2 /* Second version of the raster 3D map layout.
* Old maps withput version information are
* defined as version == 1 when reading the header.
*/

Definition at line 7 of file raster3d.h.

Referenced by Rast3d_open_cell_new().

#define RASTER3D_MASK_MAP   "RASTER3D_MASK"

Definition at line 39 of file raster3d.h.

Referenced by Rast3d_mask_file(), Rast3d_mask_file_exists(), and Rast3d_mask_open_old().

#define RASTER3D_MAX_PRECISION   -1

Definition at line 17 of file raster3d.h.

Referenced by Rast3d_init_defaults(), and Rast3d_open_cell_new().

#define RASTER3D_NO_CACHE   0
#define RASTER3D_PERMANENT_MAPSET   "PERMANENT"

Definition at line 43 of file raster3d.h.

#define RASTER3D_RANGE_ELEMENT   "range"

Definition at line 34 of file raster3d.h.

Referenced by Rast3d_range_write().

#define RASTER3D_TILE_SAME_AS_FILE   2
#define RASTER3D_USE_CACHE_X   -2

Definition at line 21 of file raster3d.h.

Referenced by Rast3d__compute_cache_size().

#define RASTER3D_USE_CACHE_XY   -5

Definition at line 24 of file raster3d.h.

Referenced by N_write_array_3d_to_rast3d(), and Rast3d__compute_cache_size().

#define RASTER3D_USE_CACHE_XYZ   -8

Definition at line 27 of file raster3d.h.

Referenced by Rast3d__compute_cache_size(), and Rast3d_cache_size_encode().

#define RASTER3D_USE_CACHE_XZ   -6

Definition at line 25 of file raster3d.h.

Referenced by Rast3d__compute_cache_size().

#define RASTER3D_USE_CACHE_Y   -3

Definition at line 22 of file raster3d.h.

Referenced by Rast3d__compute_cache_size().

#define RASTER3D_USE_CACHE_YZ   -7

Definition at line 26 of file raster3d.h.

Referenced by Rast3d__compute_cache_size().

#define RASTER3D_USE_CACHE_Z   -4

Definition at line 23 of file raster3d.h.

Referenced by Rast3d__compute_cache_size().

#define RASTER3D_WINDOW_DATABASE   "windows3d"

Definition at line 42 of file raster3d.h.

#define RASTER3D_WINDOW_ELEMENT   "WIND3"

Definition at line 40 of file raster3d.h.

Referenced by Rast3d_get_window_params().

Typedef Documentation

typedef struct _d_interval d_Interval
typedef struct _d_mask d_Mask
typedef struct RASTER3D_Map RASTER3D_Map
typedef int read_fn(int, void *, void *)

Definition at line 255 of file raster3d.h.

typedef void resample_fn(struct RASTER3D_Map *, int, int, int, void *, int)

Definition at line 68 of file raster3d.h.

typedef int write_fn(int, const void *, void *)

Definition at line 254 of file raster3d.h.