BRL-CAD
Collaboration diagram for Database:

Files

file  database.h
 

Macros

#define GED_CHECK_DATABASE_OPEN(_gedp, _flags)
 

Functions

int ged_title (struct ged *gedp, int argc, const char *argv[])
 
size_t ged_who_argc (struct ged *gedp)
 
int ged_who_argv (struct ged *gedp, char **start, const char **end)
 
int ged_tops (struct ged *gedp, int argc, const char *argv[])
 
int ged_dbip (struct ged *gedp, int argc, const char *argv[])
 
int ged_dump (struct ged *gedp, int argc, const char *argv[])
 
int ged_find (struct ged *gedp, int argc, const char *argv[])
 
int ged_glob (struct ged *gedp, int argc, const char *argv[])
 
int ged_concat (struct ged *gedp, int argc, const char *argv[])
 
int ged_dup (struct ged *gedp, int argc, const char *argv[])
 
int ged_edcolor (struct ged *gedp, int argc, const char *argv[])
 
int ged_editit (struct ged *gedp, int argc, const char *argv[])
 
int ged_ls (struct ged *gedp, int argc, const char *argv[])
 
int ged_pathlist (struct ged *gedp, int argc, const char *argv[])
 
int ged_pathsum (struct ged *gedp, int argc, const char *argv[])
 
int ged_showmats (struct ged *gedp, int argc, const char *argv[])
 
int ged_path_validate (struct ged *gedp, const struct db_full_path *const path)
 
int ged_rmap (struct ged *gedp, int argc, const char *argv[])
 
int ged_tol (struct ged *gedp, int argc, const char *argv[])
 
int ged_units (struct ged *gedp, int argc, const char *argv[])
 
int ged_version (struct ged *gedp, int argc, const char *argv[])
 
int ged_wcodes (struct ged *gedp, int argc, const char *argv[])
 
int ged_dbcopy (struct ged *from_gedp, struct ged *to_gedp, const char *from, const char *to, int fflag)
 
int ged_expand (struct ged *gedp, int argc, const char *argv[])
 
int ged_item (struct ged *gedp, int argc, const char *argv[])
 
int ged_reopen (struct ged *gedp, int argc, const char *argv[])
 
int ged_rcodes (struct ged *gedp, int argc, const char *argv[])
 
int ged_regdef (struct ged *gedp, int argc, const char *argv[])
 
int ged_search (struct ged *gedp, int argc, const char *argv[])
 
int ged_summary (struct ged *gedp, int argc, const char *argv[])
 
int ged_sync (struct ged *gedp, int argc, const char *argv[])
 
int ged_tables (struct ged *gedp, int argc, const char *argv[])
 
int ged_which (struct ged *gedp, int argc, const char *argv[])
 
int ged_which_shader (struct ged *gedp, int argc, const char *argv[])
 
int ged_color (struct ged *gedp, int argc, const char *argv[])
 
int ged_prcolor (struct ged *gedp, int argc, const char *argv[])
 
int ged_set_output_script (struct ged *gedp, int argc, const char *argv[])
 
int ged_lint (struct ged *gedp, int argc, const char *argv[])
 
int ged_env (struct ged *gedp, int argc, const char *argv[])
 
int ged_process (struct ged *gedp, int argc, const char *argv[])
 

Detailed Description

Geometry EDiting Library Database Level Functions.

Macro Definition Documentation

◆ GED_CHECK_DATABASE_OPEN

#define GED_CHECK_DATABASE_OPEN (   _gedp,
  _flags 
)
Value:
if ((_gedp) == GED_NULL || (_gedp)->dbip == DBI_NULL) { \
int ged_check_database_open_quiet = (_flags) & GED_QUIET; \
if (!ged_check_database_open_quiet) { \
if ((_gedp) != GED_NULL) { \
bu_vls_trunc((_gedp)->ged_result_str, 0); \
bu_vls_printf((_gedp)->ged_result_str, "A database is not open!"); \
} else {\
bu_log("A database is not open!\n"); \
} \
} \
return (_flags); \
}
#define DBI_NULL
Definition: db_instance.h:138
#define GED_QUIET
Definition: defines.h:73
#define GED_NULL
Definition: defines.h:62

Check if a database is open

Definition at line 37 of file database.h.

Function Documentation

◆ ged_title()

int ged_title ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Set/get the database title

◆ ged_who_argc()

size_t ged_who_argc ( struct ged gedp)

Return a count of objects displayed

◆ ged_who_argv()

int ged_who_argv ( struct ged gedp,
char **  start,
const char **  end 
)

Return a list of names of objects displayed

◆ ged_tops()

int ged_tops ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Find all top level objects

◆ ged_dbip()

int ged_dbip ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Get dbip

◆ ged_dump()

int ged_dump ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Dump a full copy of the database into file.g

◆ ged_find()

int ged_find ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Find combinations that reference object

◆ ged_glob()

int ged_glob ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Globs expression against the database

◆ ged_concat()

int ged_concat ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Import a database into the current database using an auto-incrementing or custom affix

◆ ged_dup()

int ged_dup ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Check for duplicate names in file

◆ ged_edcolor()

int ged_edcolor ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Text edit the color table

◆ ged_editit()

int ged_editit ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Edit file.

◆ ged_ls()

int ged_ls ( struct ged gedp,
int  argc,
const char *  argv[] 
)

List the objects in this database

◆ ged_pathlist()

int ged_pathlist ( struct ged gedp,
int  argc,
const char *  argv[] 
)

List all paths from name(s) to leaves

◆ ged_pathsum()

int ged_pathsum ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Lists all paths matching the input path

◆ ged_showmats()

int ged_showmats ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Show the matrix transformations along path

◆ ged_path_validate()

int ged_path_validate ( struct ged gedp,
const struct db_full_path *const  path 
)

Checks that each directory in the supplied path actually has the subdirectories that are implied by the path.

◆ ged_rmap()

int ged_rmap ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Returns a list of id to region name mappings for the entire database.

◆ ged_tol()

int ged_tol ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Set/get tessellation and calculation tolerances

◆ ged_units()

int ged_units ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Set/get the database units

◆ ged_version()

int ged_version ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Returns the database version.

◆ ged_wcodes()

int ged_wcodes ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Write region ident codes to filename.

◆ ged_dbcopy()

int ged_dbcopy ( struct ged from_gedp,
struct ged to_gedp,
const char *  from,
const char *  to,
int  fflag 
)

◆ ged_expand()

int ged_expand ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Globs expression against database objects

◆ ged_item()

int ged_item ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Set region ident codes.

◆ ged_reopen()

int ged_reopen ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Open a database

◆ ged_rcodes()

int ged_rcodes ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Read region ident codes from filename.

◆ ged_regdef()

int ged_regdef ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Change the default region ident codes: item air los mat

◆ ged_search()

int ged_search ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Interface to search functionality (i.e. Unix find for geometry)

◆ ged_summary()

int ged_summary ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Count/list primitives/regions/groups

◆ ged_sync()

int ged_sync ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Sync up the in-memory database with the on-disk database.

◆ ged_tables()

int ged_tables ( struct ged gedp,
int  argc,
const char *  argv[] 
)

The ged_tables() function serves idents, regions and solids.

Make ascii summary of region idents.

◆ ged_which()

int ged_which ( struct ged gedp,
int  argc,
const char *  argv[] 
)

The ged_which() function serves both whichair and whichid.

Find the regions with the specified air codes. Find the regions with the specified region ids.

◆ ged_which_shader()

int ged_which_shader ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Return all combinations with the specified shaders.

◆ ged_color()

int ged_color ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Make color entry.

◆ ged_prcolor()

int ged_prcolor ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Print color table

◆ ged_set_output_script()

int ged_set_output_script ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Get/set the output handler script

◆ ged_lint()

int ged_lint ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Check database objects for errors

◆ ged_env()

int ged_env ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Interface to environment variables

◆ ged_process()

int ged_process ( struct ged gedp,
int  argc,
const char *  argv[] 
)

List and abort subprocesses