GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-bea8435a9e
raster3d.h File Reference
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/defs/raster3d.h>
Include dependency graph for raster3d.h:
This graph shows which files directly or indirectly include this file:

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   2
 
#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   0
 
#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

◆ RASTER3D_ARRAY_ACCESS

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

Definition at line 267 of file raster3d.h.

◆ RASTER3D_CATS_ELEMENT

#define RASTER3D_CATS_ELEMENT   "cats"

Definition at line 33 of file raster3d.h.

◆ RASTER3D_CELL_ELEMENT

#define RASTER3D_CELL_ELEMENT   "cell"

Definition at line 32 of file raster3d.h.

◆ RASTER3D_COLOR2_DIRECTORY

#define RASTER3D_COLOR2_DIRECTORY   "colr2"

Definition at line 38 of file raster3d.h.

◆ RASTER3D_COLOR_ELEMENT

#define RASTER3D_COLOR_ELEMENT   "color"

Definition at line 37 of file raster3d.h.

◆ RASTER3D_COMPRESSION

#define RASTER3D_COMPRESSION   1

Definition at line 14 of file raster3d.h.

◆ RASTER3D_DEFAULT_WINDOW

#define RASTER3D_DEFAULT_WINDOW   0

Definition at line 29 of file raster3d.h.

◆ RASTER3D_DEFAULT_WINDOW_ELEMENT

#define RASTER3D_DEFAULT_WINDOW_ELEMENT   "DEFAULT_WIND3"

Definition at line 41 of file raster3d.h.

◆ RASTER3D_DIRECTORY

#define RASTER3D_DIRECTORY   "grid3"

Definition at line 31 of file raster3d.h.

◆ RASTER3D_HEADER_ELEMENT

#define RASTER3D_HEADER_ELEMENT   "cellhd"

Definition at line 35 of file raster3d.h.

◆ RASTER3D_HISTORY_ELEMENT

#define RASTER3D_HISTORY_ELEMENT   "hist"

Definition at line 36 of file raster3d.h.

◆ RASTER3D_MAP_VERSION

#define RASTER3D_MAP_VERSION   2

Definition at line 9 of file raster3d.h.

◆ RASTER3D_MASK_MAP

#define RASTER3D_MASK_MAP   "RASTER3D_MASK"

Definition at line 39 of file raster3d.h.

◆ RASTER3D_MAX_PRECISION

#define RASTER3D_MAX_PRECISION   -1

Definition at line 16 of file raster3d.h.

◆ RASTER3D_NO_CACHE

#define RASTER3D_NO_CACHE   0

Definition at line 18 of file raster3d.h.

◆ RASTER3D_NO_COMPRESSION

#define RASTER3D_NO_COMPRESSION   0

Definition at line 13 of file raster3d.h.

◆ RASTER3D_PERMANENT_MAPSET

#define RASTER3D_PERMANENT_MAPSET   "PERMANENT"

Definition at line 43 of file raster3d.h.

◆ RASTER3D_RANGE_ELEMENT

#define RASTER3D_RANGE_ELEMENT   "range"

Definition at line 34 of file raster3d.h.

◆ RASTER3D_TILE_SAME_AS_FILE

#define RASTER3D_TILE_SAME_AS_FILE   2

Definition at line 11 of file raster3d.h.

◆ RASTER3D_USE_CACHE_DEFAULT

#define RASTER3D_USE_CACHE_DEFAULT   -1

Definition at line 19 of file raster3d.h.

◆ RASTER3D_USE_CACHE_X

#define RASTER3D_USE_CACHE_X   -2

Definition at line 20 of file raster3d.h.

◆ RASTER3D_USE_CACHE_XY

#define RASTER3D_USE_CACHE_XY   -5

Definition at line 23 of file raster3d.h.

◆ RASTER3D_USE_CACHE_XYZ

#define RASTER3D_USE_CACHE_XYZ   -8

Definition at line 26 of file raster3d.h.

◆ RASTER3D_USE_CACHE_XZ

#define RASTER3D_USE_CACHE_XZ   -6

Definition at line 24 of file raster3d.h.

◆ RASTER3D_USE_CACHE_Y

#define RASTER3D_USE_CACHE_Y   -3

Definition at line 21 of file raster3d.h.

◆ RASTER3D_USE_CACHE_YZ

#define RASTER3D_USE_CACHE_YZ   -7

Definition at line 25 of file raster3d.h.

◆ RASTER3D_USE_CACHE_Z

#define RASTER3D_USE_CACHE_Z   -4

Definition at line 22 of file raster3d.h.

◆ RASTER3D_WINDOW_DATABASE

#define RASTER3D_WINDOW_DATABASE   "windows3d"

Definition at line 42 of file raster3d.h.

◆ RASTER3D_WINDOW_ELEMENT

#define RASTER3D_WINDOW_ELEMENT   "WIND3"

Definition at line 40 of file raster3d.h.

Typedef Documentation

◆ d_Interval

typedef struct _d_interval d_Interval

◆ d_Mask

typedef struct _d_mask d_Mask

◆ RASTER3D_Map

typedef struct RASTER3D_Map RASTER3D_Map

◆ read_fn

typedef int read_fn(int, void *, void *)

Definition at line 255 of file raster3d.h.

◆ resample_fn

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

Definition at line 67 of file raster3d.h.

◆ write_fn

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

Definition at line 254 of file raster3d.h.