BRL-CAD
db_i Struct Reference

#include <db_instance.h>

Collaboration diagram for db_i:
[legend]

Data Fields

uint32_t dbi_magic
 magic number More...
 
char * dbi_filename
 file name More...
 
int dbi_read_only
 !0 => read only file More...
 
double dbi_local2base
 local2mm More...
 
double dbi_base2local
 unit conversion factors More...
 
char * dbi_title
 title from IDENT rec More...
 
char ** dbi_filepath
 search path for aux file opens (convenience var) More...
 
struct directorydbi_Head [RT_DBNHASH]
 
FILE * dbi_fp
 PRIVATE: object hash table. More...
 
b_off_t dbi_eof
 PRIVATE: End+1 pos after db_scan() More...
 
size_t dbi_nrec
 PRIVATE: # records after db_scan() More...
 
int dbi_uses
 PRIVATE: # of uses of this struct. More...
 
struct mem_mapdbi_freep
 PRIVATE: map of free granules. More...
 
void * dbi_inmem
 PRIVATE: ptr to in-memory copy. More...
 
struct animatedbi_anroot
 PRIVATE: heads list of anim at root lvl. More...
 
struct bu_mapped_filedbi_mf
 PRIVATE: Only in read-only mode. More...
 
struct bu_ptbl dbi_clients
 PRIVATE: List of rtip's using this db_i. More...
 
int dbi_version
 PRIVATE: use db_version() More...
 
struct rt_wdbdbi_wdbp
 PRIVATE: disk rt_wdb. More...
 
struct rt_wdbdbi_wdbp_a
 PRIVATE: disk append-only rt_wdb. More...
 
struct rt_wdbdbi_wdbp_inmem
 PRIVATE: inmem rt_wdb. More...
 
struct rt_wdbdbi_wdbp_inmem_a
 PRIVATE: inmem append-only rt_wdb. More...
 
struct bu_ptbl dbi_changed_clbks
 PRIVATE: dbi_changed_t callbacks registered with dbi. More...
 
struct bu_ptbl dbi_update_nref_clbks
 PRIVATE: dbi_update_nref_t callbacks registered with dbi. More...
 
int dbi_use_comb_instance_ids
 PRIVATE: flag to enable/disable comb instance tracking in full paths. More...
 

Detailed Description

One of these structures is used to describe each separate instance of a BRL-CAD model database ".g" file.

dbi_filepath is a C-style argv array of places to search when opening related files (such as data files for EBM solids or texture-maps). The array and strings are all dynamically allocated.

Note that the current working units are specified as a conversion factor to/from millimeters (they are the 'base' in local2base and base2local) because database dimensional values are always stored as millimeters (mm). The units conversion factor only affects the display and conversion of input values. This helps prevent error accumulation and improves numerical stability when calculations are made.

Definition at line 105 of file db_instance.h.

Field Documentation

◆ dbi_magic

uint32_t dbi_magic

magic number

Definition at line 106 of file db_instance.h.

◆ dbi_filename

char* dbi_filename

file name

Definition at line 110 of file db_instance.h.

◆ dbi_read_only

int dbi_read_only

!0 => read only file

Definition at line 111 of file db_instance.h.

◆ dbi_local2base

double dbi_local2base

local2mm

Definition at line 112 of file db_instance.h.

◆ dbi_base2local

double dbi_base2local

unit conversion factors

Definition at line 113 of file db_instance.h.

◆ dbi_title

char* dbi_title

title from IDENT rec

Definition at line 114 of file db_instance.h.

◆ dbi_filepath

char** dbi_filepath

search path for aux file opens (convenience var)

Definition at line 115 of file db_instance.h.

◆ dbi_Head

struct directory* dbi_Head[RT_DBNHASH]

Definition at line 119 of file db_instance.h.

◆ dbi_fp

FILE* dbi_fp

PRIVATE: object hash table.

PRIVATE: standard file pointer

Definition at line 120 of file db_instance.h.

◆ dbi_eof

b_off_t dbi_eof

PRIVATE: End+1 pos after db_scan()

Definition at line 121 of file db_instance.h.

◆ dbi_nrec

size_t dbi_nrec

PRIVATE: # records after db_scan()

Definition at line 122 of file db_instance.h.

◆ dbi_uses

int dbi_uses

PRIVATE: # of uses of this struct.

Definition at line 123 of file db_instance.h.

◆ dbi_freep

struct mem_map* dbi_freep

PRIVATE: map of free granules.

Definition at line 124 of file db_instance.h.

◆ dbi_inmem

void* dbi_inmem

PRIVATE: ptr to in-memory copy.

Definition at line 125 of file db_instance.h.

◆ dbi_anroot

struct animate* dbi_anroot

PRIVATE: heads list of anim at root lvl.

Definition at line 126 of file db_instance.h.

◆ dbi_mf

struct bu_mapped_file* dbi_mf

PRIVATE: Only in read-only mode.

Definition at line 127 of file db_instance.h.

◆ dbi_clients

struct bu_ptbl dbi_clients

PRIVATE: List of rtip's using this db_i.

Definition at line 128 of file db_instance.h.

◆ dbi_version

int dbi_version

PRIVATE: use db_version()

Definition at line 129 of file db_instance.h.

◆ dbi_wdbp

struct rt_wdb* dbi_wdbp

PRIVATE: disk rt_wdb.

Definition at line 130 of file db_instance.h.

◆ dbi_wdbp_a

struct rt_wdb* dbi_wdbp_a

PRIVATE: disk append-only rt_wdb.

Definition at line 131 of file db_instance.h.

◆ dbi_wdbp_inmem

struct rt_wdb* dbi_wdbp_inmem

PRIVATE: inmem rt_wdb.

Definition at line 132 of file db_instance.h.

◆ dbi_wdbp_inmem_a

struct rt_wdb* dbi_wdbp_inmem_a

PRIVATE: inmem append-only rt_wdb.

Definition at line 133 of file db_instance.h.

◆ dbi_changed_clbks

struct bu_ptbl dbi_changed_clbks

PRIVATE: dbi_changed_t callbacks registered with dbi.

Definition at line 134 of file db_instance.h.

◆ dbi_update_nref_clbks

struct bu_ptbl dbi_update_nref_clbks

PRIVATE: dbi_update_nref_t callbacks registered with dbi.

Definition at line 135 of file db_instance.h.

◆ dbi_use_comb_instance_ids

int dbi_use_comb_instance_ids

PRIVATE: flag to enable/disable comb instance tracking in full paths.

Definition at line 136 of file db_instance.h.


The documentation for this struct was generated from the following file: