db_i Struct Reference
[librt geometry, raytracing]

#include <raytrace.h>

Collaboration diagram for db_i:

Collaboration graph
[legend]

Data Fields

long dbi_magic
 magic number
char * dbi_filename
 file name
int dbi_read_only
 !0 => read only file
double dbi_local2base
 local2mm
double dbi_base2local
 unit conversion factors
char * dbi_title
 title from IDENT rec
char *const * dbi_filepath
 search path for aux file opens (convenience var)
directorydbi_Head [RT_DBNHASH]
int dbi_fd
 UNIX file descriptor.
FILE * dbi_fp
 STDIO file descriptor.
long dbi_eof
 End+1 pos after db_scan().
long dbi_nrec
 # records after db_scan()
int dbi_uses
 # of uses of this struct
mem_mapdbi_freep
 map of free granules
genptr_t dbi_inmem
 ptr to in-memory copy
animatedbi_anroot
 heads list of anim at root lvl
bu_mapped_filedbi_mf
 Only in read-only mode.
bu_ptbl dbi_clients
 List of rtip's using this db_i.
int dbi_version
 4 or 5
rt_wdbdbi_wdbp
 ptr back to containing rt_wdb

Detailed Description

D B _ I

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.

Definition at line 784 of file raytrace.h.


Field Documentation

long dbi_magic
 

magic number

Definition at line 785 of file raytrace.h.

Referenced by db_open().

char* dbi_filename
 

file name

Definition at line 787 of file raytrace.h.

Referenced by db5_replace_attributes(), db5_scan(), db5_update_attributes(), db_dirbuild(), db_get_version(), db_open(), db_put(), db_put_external(), db_put_external5(), db_read(), db_write(), dgo_nirt_cmd(), dgo_rtcheck_cmd(), rt_regionfix(), rt_submodel_prep(), wdb_concat_cmd(), wdb_dbopen(), wdb_dup_cmd(), wdb_get_obj_bounds(), wdb_get_obj_bounds2(), and wdb_reopen_cmd().

int dbi_read_only
 

!0 => read only file

Definition at line 788 of file raytrace.h.

Referenced by db5_realloc(), db5_replace_attributes(), db5_update_attributes(), db_open(), db_open_inmem(), db_put(), db_put_external(), db_put_external5(), db_update_ident(), db_write(), db_zapper(), wdb_comb_std_cmd(), wdb_dbopen(), and wdb_export_external().

double dbi_local2base
 

local2mm

Definition at line 789 of file raytrace.h.

Referenced by db_conversions(), db_create_inmem(), db_dirbuild(), db_open(), dgo_nirt_cmd(), dgo_qray_data_to_vlist(), wdb_bot_decimate_cmd(), wdb_nmg_collapse_cmd(), wdb_ocenter_cmd(), wdb_orotate_cmd(), wdb_oscale_cmd(), wdb_otranslate_cmd(), wdb_track_cmd(), and wdb_units_cmd().

double dbi_base2local
 

unit conversion factors

Definition at line 790 of file raytrace.h.

Referenced by db_conversions(), db_dirbuild(), db_open(), dgo_get_autoview_cmd(), dgo_nirt_cmd(), wdb_do_list(), wdb_ocenter_cmd(), wdb_title_cmd(), and wdb_units_cmd().

char* dbi_title
 

title from IDENT rec

Definition at line 791 of file raytrace.h.

Referenced by db5_update_ident(), db_create_inmem(), db_dirbuild(), db_open(), db_update_ident(), rt_dirbuild(), wdb_title_cmd(), and wdb_units_cmd().

char* const* dbi_filepath
 

search path for aux file opens (convenience var)

Definition at line 792 of file raytrace.h.

Referenced by db_open(), rt_ebm_import(), and rt_ebm_import5().

struct directory* dbi_Head[RT_DBNHASH]
 

Definition at line 794 of file raytrace.h.

Referenced by db_ck_directory(), db_dircheck(), db_dump(), db_get_directory_size(), db_is_directory_non_empty(), db_lookup(), db_open(), db_open_inmem(), db_regexp_match_all(), db_update_nref(), wdb_find_cmd(), wdb_keep_cmd(), wdb_killall_cmd(), wdb_move_all_cmd(), wdb_rmap_cmd(), wdb_tops_cmd(), and wdb_xpush_cmd().

int dbi_fd
 

UNIX file descriptor.

Definition at line 795 of file raytrace.h.

Referenced by db_open(), db_open_inmem(), db_read(), db_sync(), and db_write().

FILE* dbi_fp
 

STDIO file descriptor.

Definition at line 796 of file raytrace.h.

Referenced by db5_scan(), db_dirbuild(), db_get_version(), db_open(), db_open_inmem(), db_read(), db_sync(), and db_write().

long dbi_eof
 

End+1 pos after db_scan().

Definition at line 797 of file raytrace.h.

Referenced by db5_realloc(), db5_scan(), db_open(), db_open_inmem(), and db_read().

long dbi_nrec
 

# records after db_scan()

Definition at line 798 of file raytrace.h.

int dbi_uses
 

# of uses of this struct

Definition at line 799 of file raytrace.h.

Referenced by db_clone_dbi(), and db_open().

struct mem_map* dbi_freep
 

map of free granules

Definition at line 800 of file raytrace.h.

Referenced by db5_diradd_handler(), db5_realloc(), db_delete(), wdb_concat_cmd(), and wdb_dup_cmd().

genptr_t dbi_inmem
 

ptr to in-memory copy

Definition at line 801 of file raytrace.h.

Referenced by db5_scan(), db_open(), db_read(), and db_write().

struct animate* dbi_anroot
 

heads list of anim at root lvl

Definition at line 802 of file raytrace.h.

Referenced by db_add_anim(), and db_follow_path().

struct bu_mapped_file* dbi_mf
 

Only in read-only mode.

Definition at line 803 of file raytrace.h.

Referenced by db5_scan(), db_open(), db_open_inmem(), and rt_submodel_prep().

struct bu_ptbl dbi_clients
 

List of rtip's using this db_i.

Definition at line 804 of file raytrace.h.

Referenced by db_clone_dbi(), db_close_client(), db_open(), and rt_submodel_prep().

int dbi_version
 

4 or 5

Definition at line 805 of file raytrace.h.

Referenced by db5_get_attributes(), db5_put_color_table(), db5_replace_attributes(), db5_update_attributes(), db_delete(), db_dirbuild(), db_functree(), db_get_external(), db_getmrec(), db_inmem(), db_open(), db_preorder_traverse(), db_put_external(), db_put_external5(), db_update_ident(), db_zapper(), rt_db_external5_to_internal5(), rt_db_get_internal(), rt_db_get_internal5(), rt_db_put_internal(), rt_db_put_internal5(), rt_generic_xform(), rt_gettrees_muves(), rt_load_attrs(), wdb_attr_cmd(), wdb_binary_cmd(), wdb_color_cmd(), wdb_concat_cmd(), wdb_dir_check(), wdb_dir_check5(), wdb_dup_cmd(), wdb_export_external(), wdb_hide_cmd(), wdb_move_all_cmd(), wdb_put_internal(), wdb_rmap_cmd(), wdb_smooth_bot_cmd(), wdb_tops_cmd(), wdb_unhide_cmd(), and wdb_version_cmd().

struct rt_wdb* dbi_wdbp
 

ptr back to containing rt_wdb

Definition at line 806 of file raytrace.h.

Referenced by db_create_inmem(), and wdb_dbopen().


The documentation for this struct was generated from the following file:
Generated on Mon Sep 18 01:25:11 2006 for BRL-CAD by  doxygen 1.4.6