45# if defined(GED_DLL_EXPORTS) && defined(GED_DLL_IMPORTS)
46# error "Only GED_DLL_EXPORTS or GED_DLL_IMPORTS can be defined, not both."
47# elif defined(GED_DLL_EXPORTS)
48# define GED_EXPORT COMPILER_DLLEXPORT
49# elif defined(GED_DLL_IMPORTS)
50# define GED_EXPORT COMPILER_DLLIMPORT
56#define GED_NULL ((struct ged *)0)
57#define GED_DISPLAY_LIST_NULL ((struct display_list *)0)
58#define GED_DRAWABLE_NULL ((struct ged_drawable *)0)
59#define GED_VIEW_NULL ((struct bview *)0)
61#define GED_RESULT_NULL ((void *)0)
65#define GED_HELP 0x0002
66#define GED_MORE 0x0004
67#define GED_QUIET 0x0008
68#define GED_UNKNOWN 0x0010
69#define GED_EXIT 0x0020
70#define GED_OVERRIDE 0x0040
73#define GED_CK_MAGIC(_p) BU_CKMAG(_p->i, GED_MAGIC, "ged")
80#define GED_FUNC_PTR_NULL ((ged_func_ptr)0)
94#define GED_SEM_WORKER ANALYZE_SEM_LAST
95#define GED_SEM_STATS GED_SEM_WORKER+1
96#define GED_SEM_LIST GED_SEM_STATS+1
97#define GED_SEM_LAST GED_SEM_LIST+1
99#define GED_INITIALIZED(_gedp) ((_gedp)->dbip != NULL)
100#define GED_LOCAL2BASE(_gedp) ((_gedp)->dbip->dbi_local2base)
101#define GED_BASE2LOCAL(_gedp) ((_gedp)->dbip->dbi_base2local)
105#define RT_VDRW_PREFIX "_VDRW"
106#define RT_VDRW_PREFIX_LEN 6
107#define RT_VDRW_MAXNAME 31
108#define RT_VDRW_DEF_COLOR 0xffff00
113 struct bu_process *
p;
231 int (*
del)(
struct ged *gedp,
const char *name);
232 int (*
run)(
struct ged *gedp,
int ac,
char *
av[]);
382 const char *filename,
393#define GED_CHECK_ARGC_GT_0(_gedp, _argc, _flags) \
395 int ged_check_argc_gt_0_quiet = (_flags) & GED_QUIET; \
396 if (!ged_check_argc_gt_0_quiet) { \
397 bu_vls_trunc((_gedp)->ged_result_str, 0); \
398 bu_vls_printf((_gedp)->ged_result_str, "Command name not provided on (%s:%d).", __FILE__, __LINE__); \
Header file for the BRL-CAD common definitions.
This header holds generic routines and data structures used for TCP based communication between a fra...
int(* bu_clbk_t)(int, const char **, void *, void *)
struct bu_hash_tbl bu_hash_tbl
int ged_clbk_set(struct ged *gedp, const char *cmd, int mode, bu_clbk_t f, void *d)
void ged_close(struct ged *gedp)
int ged_clbk_get(bu_clbk_t *f, void **d, struct ged *gedp, const char *cmd, int mode)
struct ged * ged_open(const char *dbtype, const char *filename, int existing_only)
int(* ged_process_ptr)(int, const char *[])
void(* ged_destroy_vlist_func_t)(void *, unsigned int, int)
void(* ged_refresh_func_t)(void *)
const char * ged_results_get(struct ged_results *results, size_t index)
struct ged * ged_create(void)
void(* ged_create_vlist_solid_func_t)(void *, struct bv_scene_obj *)
int(* ged_func_ptr)(struct ged *, int, const char *[])
size_t ged_results_count(struct ged_results *results)
void ged_dm_ctx_set(struct ged *gedp, const char *dm_type, void *ctx)
void ged_results_clear(struct ged_results *results)
void ged_destroy(struct ged *)
void ged_free(struct ged *gedp)
const char * ged_init_msgs(void)
int ged_clbk_exec(struct bu_vls *log, struct ged *gedp, int limit, bu_clbk_t f, int ac, const char **av, void *u1, void *u2)
void ged_results_free(struct ged_results *results)
void(* ged_io_func_t)(void *, int)
void * ged_dm_ctx_get(struct ged *gedp, const char *dm_type)
void(* ged_create_vlist_display_list_func_t)(void *, struct display_list *)
void ged_init(struct ged *gedp)
struct ged_cmd_process_impl * i
const struct ged_cmd **const cmds
const struct ged_cmd_process *const p
bu_clbk_t end_clbk
function called when process completes
uint32_t magic
magic number
struct fbserv_obj * ged_fbs
void(* ged_output_handler)(struct ged *, char *)
function for handling output
struct bu_vls * ged_result_str
int(* run)(struct ged *gedp, int ac, char *av[])
int(* del)(struct ged *gedp, const char *name)
struct ged_results * ged_results
void(* ged_destroy_vlist_callback)(void *, unsigned int, int)
function to call after freeing a vlist
struct ged_callback_state * ged_cbs
void(* ged_create_io_handler)(struct ged_subprocess *gp, bu_process_io_t d, ged_io_func_t callback, void *data)
struct bu_ptbl editor_opts
struct bu_ptbl free_solids
const char ** app_editors
void(* ged_delete_io_handler)(struct ged_subprocess *gp, bu_process_io_t fd)
void * ged_refresh_clientdata
client data passed to refresh handler
int(* add)(struct ged *gedp, const struct ged_cmd *cmd)
struct bu_ptbl terminal_opts
struct bu_hash_tbl * ged_selections
object name -> struct rt_object_selections
char terminal[MAXPATHLEN]
void(* ged_refresh_handler)(void *)
function for handling refresh requests
struct bu_ptbl ged_subp
forked sub-processes
char * ged_output_script
script for use by the outputHandler
struct bview_set ged_views
void(* ged_create_vlist_display_list_callback)(void *, struct display_list *)
function to call after all vlist created that loops through creating display list for each solid
struct bu_ptbl ged_free_views
void * u_data
User data associated with this ged instance.
void(* ged_create_vlist_scene_obj_callback)(void *, struct bv_scene_obj *)
function to call after creating a vlist to create display list for solid
struct bv_mesh_lod_context * ged_lod