48#define RT_WDB_TYPE_DB_DEFAULT 0
49#define RT_WDB_TYPE_DB_DEFAULT_APPEND_ONLY 1
50#define RT_WDB_TYPE_DB_DISK 2
51#define RT_WDB_TYPE_DB_DISK_APPEND_ONLY 3
52#define RT_WDB_TYPE_DB_INMEM 4
53#define RT_WDB_TYPE_DB_INMEM_APPEND_ONLY 5
89#define RT_CHECK_WDB(_p) BU_CKMAG(_p, RT_WDB_MAGIC, "rt_wdb")
90#define RT_CK_WDB(_p) RT_CHECK_WDB(_p)
91#define RT_WDB_INIT_ZERO { {RT_WDB_MAGIC, BU_LIST_NULL, BU_LIST_NULL}, 0, NULL, RT_DBTS_INIT_ZERO, BG_TESS_TOL_INIT_ZERO, BN_TOL_INIT_ZERO, NULL, BU_VLS_INIT_ZERO, 0, 0, 0, 0, 0, 0, BU_VLS_INIT_ZERO, BU_OBSERVER_LIST_INIT_ZERO, NULL }
92#define RT_WDB_NULL ((struct rt_wdb *)NULL)
162 unsigned char minor_type);
Header file for the BRL-CAD common definitions.
fastf_t mat_t[ELEMENTS_PER_MAT]
4x4 matrix
fastf_t * matp_t
pointer to a 4x4 matrix
Global registry of recognized magic numbers.
struct rt_wdb * wdb_fopen_v(const char *filename, int version)
void wdb_init(struct rt_wdb *wdbp, struct db_i *dbip, int mode)
struct rt_wdb * wdb_fopen(const char *filename)
int wdb_import_from_path2(struct bu_vls *logstr, struct rt_db_internal *ip, const char *path, struct rt_wdb *wdb, matp_t matp)
void wdb_close(struct rt_wdb *wdbp)
struct rt_wdb * wdb_dbopen(struct db_i *dbip, int mode)
int wdb_export(struct rt_wdb *wdbp, const char *name, void *gp, int id, double local2mm)
int wdb_import(struct rt_wdb *wdbp, struct rt_db_internal *internp, const char *name, const mat_t mat)
int wdb_import_from_path(struct bu_vls *logstr, struct rt_db_internal *ip, const char *path, struct rt_wdb *wdb)
int wdb_export_external(struct rt_wdb *wdbp, struct bu_external *ep, const char *name, int flags, unsigned char minor_type)
int wdb_put_internal(struct rt_wdb *wdbp, const char *name, struct rt_db_internal *ip, double local2mm)
int wdb_mat_default
GIFT material code.
struct bu_vls wdb_name
database object name
struct resource * wdb_resp
int wdb_item_default
GIFT region ID.
void * wdb_interp
Tcl_Interp.
int wdb_los_default
Line-of-sight estimate.
struct bu_observer_list wdb_observers
struct db_i * dbip
.g database type (RT_WDB_TYPE - disk or inmem, append-only)
struct bg_tess_tol wdb_ttol
struct db_tree_state wdb_initial_tree_state
fundamental vector, matrix, quaternion math macros