BRL-CAD
|
#include <raytrace.h>
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 directory * | dbi_Head [RT_DBNHASH] |
FILE * | dbi_fp |
PRIVATE: object hash table. More... | |
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_map * | dbi_freep |
PRIVATE: map of free granules. More... | |
void * | dbi_inmem |
PRIVATE: ptr to in-memory copy. More... | |
struct animate * | dbi_anroot |
PRIVATE: heads list of anim at root lvl. More... | |
struct bu_mapped_file * | dbi_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_wdb * | dbi_wdbp |
PRIVATE: ptr back to containing rt_wdb. More... | |
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 800 of file raytrace.h.
uint32_t dbi_magic |
magic number
Definition at line 801 of file raytrace.h.
Referenced by db_open(), db_open_inmem(), and ged_open().
char* dbi_filename |
file name
Definition at line 805 of file raytrace.h.
Referenced by _ged_get_obj_bounds2(), db5_replace_attributes(), db5_scan(), db5_update_attributes(), db_close(), db_dirbuild(), db_open(), db_open_inmem(), db_pr_dir(), db_put(), db_put_external(), db_put_external5(), db_read(), db_version(), db_write(), dl_botdump(), ged_bot_dump(), ged_concat(), ged_dup(), ged_get_obj_bounds(), ged_keep(), ged_loadview(), ged_nirt(), ged_open(), ged_reopen(), ged_rrt(), ged_rt(), ged_rtcheck(), ged_rtwizard(), ged_saveview(), ged_tables(), rt_prep_parallel(), rt_regionfix(), rt_submodel_prep(), and wdb_dbopen().
int dbi_read_only |
!0 => read only file
Definition at line 806 of file raytrace.h.
Referenced by db5_realloc(), db5_replace_attributes(), db5_scan(), db5_update_attributes(), db_alloc(), db_open(), db_open_inmem(), db_pr_dir(), db_put(), db_put_external(), db_put_external5(), db_update_ident(), db_write(), db_zapper(), ged_open(), ged_red(), ged_shader(), and wdb_export_external().
double dbi_local2base |
local2mm
Definition at line 807 of file raytrace.h.
Referenced by _ged_translate_extrude(), _ged_translate_tgc(), analyze_sketch(), combmem_set(), combmem_set_arb_rot(), combmem_set_rot(), combmem_set_sca(), combmem_set_tra(), db_conversions(), db_create_inmem(), db_dirbuild(), db_open(), db_open_inmem(), edit_translate(), ged_3ptarb(), ged_adc(), ged_bb(), ged_bot_decimate(), ged_center(), ged_concat(), ged_dbcopy(), ged_eye(), ged_eye_pos(), ged_grid(), ged_inside_internal(), ged_keep(), ged_keypoint(), ged_lookat(), ged_mirror(), ged_model2grid_lu(), ged_model2view_lu(), ged_move_arb_edge(), ged_move_arb_face(), ged_move_botpt(), ged_move_botpts(), ged_move_metaballpt(), ged_move_pipept(), ged_nirt(), ged_nmg_collapse(), ged_ocenter(), ged_open(), ged_orotate(), ged_oscale(), ged_otranslate(), ged_pov(), ged_rfarb(), ged_size(), ged_tables(), ged_title(), ged_track2(), ged_units(), ged_voxelize(), go_draw_faceplate(), qray_data_to_vlist(), to_local2base(), to_mouse_constrain_trans(), to_mouse_otranslate(), and to_mouse_trans().
double dbi_base2local |
unit conversion factors
Definition at line 808 of file raytrace.h.
Referenced by _ged_do_list(), _ged_do_tra(), analyze_arb8(), analyze_arbn(), analyze_ars(), analyze_edge(), analyze_general(), analyze_poly_face(), analyze_sketch(), analyze_superell(), db_conversions(), db_dirbuild(), db_open(), db_open_inmem(), dl_print_schain(), ged_adc(), ged_bb(), ged_center(), ged_concat(), ged_dbcopy(), ged_eye(), ged_eye_pos(), ged_get_autoview(), ged_grid(), ged_grid2model_lu(), ged_grid2view_lu(), ged_isize(), ged_keypoint(), ged_list(), ged_model2grid_lu(), ged_model2view_lu(), ged_nirt(), ged_ocenter(), ged_open(), ged_size(), ged_snap_to_grid(), ged_trace(), ged_units(), ged_view2grid_lu(), ged_view2model_lu(), ged_vnirt(), go_draw_faceplate(), grid_vls_print(), redraw_edited_path(), tables_new(), to_base2local(), to_mouse_move_arb_edge(), to_mouse_move_arb_face(), to_mouse_move_botpt(), to_mouse_move_botpts(), to_mouse_move_pt_common(), to_mouse_otranslate(), and to_mouse_ptranslate().
char* dbi_title |
title from IDENT rec
Definition at line 809 of file raytrace.h.
Referenced by db5_update_ident(), db_close(), db_create_inmem(), db_dirbuild(), db_open(), db_open_inmem(), db_pr_dir(), db_scan(), db_update_ident(), ged_concat(), ged_dbcopy(), ged_keep(), ged_open(), ged_tables(), ged_title(), ged_units(), and rt_dirbuild().
char** dbi_filepath |
search path for aux file opens (convenience var)
Definition at line 810 of file raytrace.h.
Referenced by db_close(), db_open(), db_open_inmem(), ged_open(), get_file_data(), img_load_datasource(), new_image(), rt_ebm_import4(), rt_ebm_import5(), and txt_load_datasource().
struct directory* dbi_Head[RT_DBNHASH] |
Definition at line 814 of file raytrace.h.
Referenced by _db_search_full_paths(), _ged_dir_getspace(), db_ck_directory(), db_close(), db_dircheck(), db_dirdelete(), db_directory_size(), db_dump(), db_free_anim(), db_is_directory_non_empty(), db_lookup(), db_ls(), db_open(), db_open_inmem(), db_pr_dir(), db_regexp_match_all(), db_rename(), db_update_nref(), ged_expand(), ged_find(), ged_glob(), ged_keep(), ged_ls(), ged_match(), ged_open(), ged_rmap(), ged_search(), ged_sphgroup(), ged_tops(), ged_which(), ged_xpush(), move_all_func(), rt_clean(), and rt_new_rti().
FILE* dbi_fp |
PRIVATE: object hash table.
PRIVATE: standard file pointer
Definition at line 815 of file raytrace.h.
Referenced by db5_scan(), db_close(), db_dirbuild(), db_open(), db_open_inmem(), db_read(), db_scan(), db_sync(), db_version(), db_write(), and ged_open().
off_t dbi_eof |
PRIVATE: End+1 pos after db_scan()
Definition at line 816 of file raytrace.h.
Referenced by db5_realloc(), db5_scan(), db_alloc(), db_open(), db_open_inmem(), db_read(), db_scan(), ged_open(), and rt_mk_binunif().
size_t dbi_nrec |
PRIVATE: # records after db_scan()
Definition at line 817 of file raytrace.h.
Referenced by db5_scan(), db_alloc(), and db_scan().
int dbi_uses |
PRIVATE: # of uses of this struct.
Definition at line 818 of file raytrace.h.
Referenced by db_clone_dbi(), db_close(), db_open(), db_open_inmem(), ged_open(), and rt_prep_parallel().
struct mem_map* dbi_freep |
PRIVATE: map of free granules.
Definition at line 819 of file raytrace.h.
Referenced by db5_diradd_handler(), db5_realloc(), db_alloc(), db_close(), db_delete(), db_scan(), ged_concat(), ged_dup(), and ged_memprint().
void* dbi_inmem |
PRIVATE: ptr to in-memory copy.
Definition at line 820 of file raytrace.h.
Referenced by db5_scan(), db_close(), db_open(), db_read(), and db_write().
struct animate* dbi_anroot |
PRIVATE: heads list of anim at root lvl.
Definition at line 821 of file raytrace.h.
Referenced by db_add_anim(), db_follow_path(), and db_free_anim().
struct bu_mapped_file* dbi_mf |
PRIVATE: Only in read-only mode.
Definition at line 822 of file raytrace.h.
Referenced by db5_scan(), db_close(), db_open(), db_open_inmem(), ged_open(), and rt_submodel_prep().
struct bu_ptbl dbi_clients |
PRIVATE: List of rtip's using this db_i.
Definition at line 823 of file raytrace.h.
Referenced by db_clone_dbi(), db_close(), db_close_client(), db_open(), db_open_inmem(), ged_open(), and rt_submodel_prep().
int dbi_version |
PRIVATE: use db_version()
Definition at line 824 of file raytrace.h.
Referenced by db5_get_attributes(), db5_put_color_table(), db5_replace_attributes(), db5_update_attributes(), db_get_external(), db_getmrec(), db_open(), db_open_inmem(), db_put_external5(), db_scan(), db_version(), db_zapper(), ged_open(), rt_arb_import4(), rt_ars_import4(), rt_comb_import4(), rt_db_external5_to_internal5(), rt_db_get_internal(), rt_db_get_internal5(), rt_db_put_internal5(), rt_ehy_import4(), rt_ell_import4(), rt_epa_import4(), rt_eto_import4(), rt_grp_import4(), rt_hlf_import4(), rt_nurb_import4(), rt_obj_export(), rt_obj_import(), rt_pg_import4(), rt_rhc_import4(), rt_rpc_import4(), rt_superell_import4(), rt_tgc_import4(), and rt_tor_import4().
struct rt_wdb* dbi_wdbp |
PRIVATE: ptr back to containing rt_wdb.
Definition at line 825 of file raytrace.h.
Referenced by db_create_inmem(), db_open_inmem(), gcv_execute(), and wdb_init().