GRASS GIS 8 Programmer's Manual  8.2.2dev(2023)-3d2c704037
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
 
#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 /* NULL pointer, now (int)0 because issues with ctypesgen */
 
#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 268 of file raster3d.h.

◆ RASTER3D_CATS_ELEMENT

#define RASTER3D_CATS_ELEMENT   "cats"

Definition at line 33 of file raster3d.h.

Referenced by Rast3d_write_cats().

◆ RASTER3D_CELL_ELEMENT

#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().

◆ 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.

Referenced by Rast3d_remove_color(), and Rast3d_write_colors().

◆ RASTER3D_COMPRESSION

#define RASTER3D_COMPRESSION   1

Definition at line 15 of file raster3d.h.

Referenced by Rast3d_set_compression_mode().

◆ RASTER3D_DEFAULT_WINDOW

#define RASTER3D_DEFAULT_WINDOW   0 /* NULL pointer, now (int)0 because issues with ctypesgen */

Definition at line 29 of file raster3d.h.

Referenced by Rast3d_compare_files().

◆ RASTER3D_DEFAULT_WINDOW_ELEMENT

#define RASTER3D_DEFAULT_WINDOW_ELEMENT   "DEFAULT_WIND3"

Definition at line 41 of file raster3d.h.

◆ RASTER3D_DIRECTORY

◆ 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.

Referenced by Rast3d_read_history(), and Rast3d_write_history().

◆ RASTER3D_MAP_VERSION

#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.

◆ RASTER3D_MASK_MAP

#define RASTER3D_MASK_MAP   "RASTER3D_MASK"

Definition at line 39 of file raster3d.h.

Referenced by Rast3d_mask_file(), and Rast3d_mask_file_exists().

◆ RASTER3D_MAX_PRECISION

#define RASTER3D_MAX_PRECISION   -1

Definition at line 17 of file raster3d.h.

◆ RASTER3D_NO_CACHE

#define RASTER3D_NO_CACHE   0

Definition at line 19 of file raster3d.h.

Referenced by Rast3d__compute_cache_size(), and Rast3d_cache_size_encode().

◆ RASTER3D_NO_COMPRESSION

#define RASTER3D_NO_COMPRESSION   0

Definition at line 14 of file raster3d.h.

Referenced by Rast3d_print_header(), Rast3d_read_tile(), and Rast3d_set_compression_mode().

◆ 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.

Referenced by Rast3d_range_write(), and Rast3d_read_range().

◆ RASTER3D_TILE_SAME_AS_FILE

#define RASTER3D_TILE_SAME_AS_FILE   2

Definition at line 12 of file raster3d.h.

Referenced by Rast3d_compare_files().

◆ RASTER3D_USE_CACHE_DEFAULT

#define RASTER3D_USE_CACHE_DEFAULT   -1

◆ RASTER3D_USE_CACHE_X

#define RASTER3D_USE_CACHE_X   -2

Definition at line 21 of file raster3d.h.

Referenced by Rast3d__compute_cache_size().

◆ RASTER3D_USE_CACHE_XY

#define RASTER3D_USE_CACHE_XY   -5

Definition at line 24 of file raster3d.h.

Referenced by Rast3d__compute_cache_size().

◆ RASTER3D_USE_CACHE_XYZ

#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().

◆ RASTER3D_USE_CACHE_XZ

#define RASTER3D_USE_CACHE_XZ   -6

Definition at line 25 of file raster3d.h.

Referenced by Rast3d__compute_cache_size().

◆ RASTER3D_USE_CACHE_Y

#define RASTER3D_USE_CACHE_Y   -3

Definition at line 22 of file raster3d.h.

Referenced by Rast3d__compute_cache_size().

◆ RASTER3D_USE_CACHE_YZ

#define RASTER3D_USE_CACHE_YZ   -7

Definition at line 26 of file raster3d.h.

Referenced by Rast3d__compute_cache_size().

◆ RASTER3D_USE_CACHE_Z

#define RASTER3D_USE_CACHE_Z   -4

Definition at line 23 of file raster3d.h.

Referenced by Rast3d__compute_cache_size().

◆ 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.

Referenced by Rast3d_get_window_params().

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 68 of file raster3d.h.

◆ write_fn

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

Definition at line 254 of file raster3d.h.