BRL-CAD

Definition of the BRL-CAD "v5" database format used for new ".g" files. More...

#include "common.h"
#include "bu/parse.h"
#include "./rt/defines.h"
#include "./rt/op.h"
Include dependency graph for db5.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  db5_ondisk_header
 
struct  db5_raw_internal
 

Macros

#define DB5HDR_MAGIC1   0x76 /* 'v' */
 
#define DB5HDR_MAGIC2   0x35 /* '5' */
 
#define DB5HDR_HFLAGS_DLI_MASK   0x03
 
#define DB5HDR_HFLAGS_DLI_APPLICATION_DATA_OBJECT   0
 
#define DB5HDR_HFLAGS_DLI_HEADER_OBJECT   1
 
#define DB5HDR_HFLAGS_DLI_FREE_STORAGE   2
 
#define DB5HDR_HFLAGS_HIDDEN_OBJECT   0x4
 
#define DB5HDR_HFLAGS_NAME_PRESENT   0x20
 
#define DB5HDR_HFLAGS_OBJECT_WIDTH_MASK   0xc0
 
#define DB5HDR_HFLAGS_OBJECT_WIDTH_SHIFT   6
 
#define DB5HDR_HFLAGS_NAME_WIDTH_MASK   0x18
 
#define DB5HDR_HFLAGS_NAME_WIDTH_SHIFT   3
 
#define DB5HDR_WIDTHCODE_8BIT   0
 
#define DB5HDR_WIDTHCODE_16BIT   1
 
#define DB5HDR_WIDTHCODE_32BIT   2
 
#define DB5HDR_WIDTHCODE_64BIT   3
 
#define DB5HDR_AFLAGS_ZZZ_MASK   0x07
 
#define DB5HDR_AFLAGS_PRESENT   0x20
 
#define DB5HDR_AFLAGS_WIDTH_MASK   0xc0
 
#define DB5HDR_AFLAGS_WIDTH_SHIFT   6
 
#define DB5HDR_BFLAGS_ZZZ_MASK   0x07
 
#define DB5HDR_BFLAGS_PRESENT   0x20
 
#define DB5HDR_BFLAGS_WIDTH_MASK   0xc0
 
#define DB5HDR_BFLAGS_WIDTH_SHIFT   6
 
#define DB5_GLOBAL_OBJECT_NAME   "_GLOBAL"
 
#define DB5_ZZZ_UNCOMPRESSED   0
 
#define DB5_ZZZ_GNU_GZIP   1
 
#define DB5_ZZZ_BURROUGHS_WHEELER   2
 
#define DB5_MAJORTYPE_RESERVED   0
 
#define DB5_MAJORTYPE_BRLCAD   1
 
#define DB5_MAJORTYPE_ATTRIBUTE_ONLY   2
 
#define DB5_MAJORTYPE_BINARY_MASK   0x18
 
#define DB5_MAJORTYPE_BINARY_UNIF   9
 
#define DB5_MAJORTYPE_BINARY_MIME   10
 
#define DB5_MINORTYPE_RESERVED   0
 
#define DB5_MINORTYPE_BRLCAD_TOR   1
 
#define DB5_MINORTYPE_BRLCAD_TGC   2
 
#define DB5_MINORTYPE_BRLCAD_ELL   3
 
#define DB5_MINORTYPE_BRLCAD_ARB8   4
 
#define DB5_MINORTYPE_BRLCAD_ARS   5
 
#define DB5_MINORTYPE_BRLCAD_HALF   6
 
#define DB5_MINORTYPE_BRLCAD_REC   7
 
#define DB5_MINORTYPE_BRLCAD_POLY   8
 
#define DB5_MINORTYPE_BRLCAD_BSPLINE   9
 
#define DB5_MINORTYPE_BRLCAD_SPH   10
 
#define DB5_MINORTYPE_BRLCAD_NMG   11
 
#define DB5_MINORTYPE_BRLCAD_EBM   12
 
#define DB5_MINORTYPE_BRLCAD_VOL   13
 
#define DB5_MINORTYPE_BRLCAD_ARBN   14
 
#define DB5_MINORTYPE_BRLCAD_PIPE   15
 
#define DB5_MINORTYPE_BRLCAD_PARTICLE   16
 
#define DB5_MINORTYPE_BRLCAD_RPC   17
 
#define DB5_MINORTYPE_BRLCAD_RHC   18
 
#define DB5_MINORTYPE_BRLCAD_EPA   19
 
#define DB5_MINORTYPE_BRLCAD_EHY   20
 
#define DB5_MINORTYPE_BRLCAD_ETO   21
 
#define DB5_MINORTYPE_BRLCAD_GRIP   22
 
#define DB5_MINORTYPE_BRLCAD_JOINT   23
 
#define DB5_MINORTYPE_BRLCAD_HF   24
 
#define DB5_MINORTYPE_BRLCAD_DSP   25
 
#define DB5_MINORTYPE_BRLCAD_SKETCH   26
 
#define DB5_MINORTYPE_BRLCAD_EXTRUDE   27
 
#define DB5_MINORTYPE_BRLCAD_SUBMODEL   28
 
#define DB5_MINORTYPE_BRLCAD_CLINE   29
 
#define DB5_MINORTYPE_BRLCAD_BOT   30
 
#define DB5_MINORTYPE_BRLCAD_COMBINATION   31
 
#define DB5_MINORTYPE_BRLCAD_SUPERELL   35
 
#define DB5_MINORTYPE_BRLCAD_METABALL   36
 
#define DB5_MINORTYPE_BRLCAD_BREP   37
 
#define DB5_MINORTYPE_BRLCAD_HYP   38
 
#define DB5_MINORTYPE_BRLCAD_CONSTRAINT   39
 
#define DB5_MINORTYPE_BRLCAD_REVOLVE   40
 
#define DB5_MINORTYPE_BRLCAD_PNTS   41
 
#define DB5_MINORTYPE_BRLCAD_ANNOT   42
 
#define DB5_MINORTYPE_BRLCAD_HRT   43
 
#define DB5_MINORTYPE_BRLCAD_DATUM   44
 
#define DB5_MINORTYPE_BRLCAD_SCRIPT   45
 
#define DB5_MINORTYPE_BRLCAD_MATERIAL   46
 
#define DB5_MINORTYPE_BINU_WID_MASK   0x30
 
#define DB5_MINORTYPE_BINU_SGN_MASK   0x08
 
#define DB5_MINORTYPE_BINU_ATM_MASK   0x07
 
#define DB5_MINORTYPE_BINU_FLOAT   0x02
 
#define DB5_MINORTYPE_BINU_DOUBLE   0x03
 
#define DB5_MINORTYPE_BINU_8BITINT_U   0x04
 
#define DB5_MINORTYPE_BINU_16BITINT_U   0x05
 
#define DB5_MINORTYPE_BINU_32BITINT_U   0x06
 
#define DB5_MINORTYPE_BINU_64BITINT_U   0x07
 
#define DB5_MINORTYPE_BINU_8BITINT   0x0c
 
#define DB5_MINORTYPE_BINU_16BITINT   0x0d
 
#define DB5_MINORTYPE_BINU_32BITINT   0x0e
 
#define DB5_MINORTYPE_BINU_64BITINT   0x0f
 
#define RT_CK_RIP(_ptr)   BU_CKMAG( _ptr, DB5_RAW_INTERNAL_MAGIC, "db5_raw_internal" )
 

Variables

const char * binu_types []
 

Detailed Description

Definition of the BRL-CAD "v5" database format used for new ".g" files.

Definition in file db5.h.