BRL-CAD
Collaboration diagram for Definitions:

Files

file  defines.h
 

Data Structures

struct  ged_subprocess
 
struct  ged_qray_color
 
struct  ged_qray_fmt
 
struct  vd_curve
 
struct  ged_drawable
 
struct  ged
 
struct  ged_cmd
 
struct  ged_plugin
 

Macros

#define GED_VMIN   -2048.0
 
#define GED_VMAX   2047.0
 
#define GED_VRANGE   4095.0
 
#define INV_GED_V   0.00048828125
 
#define INV_4096_V   0.000244140625
 
#define GED_NULL   ((struct ged *)0)
 
#define GED_DISPLAY_LIST_NULL   ((struct display_list *)0)
 
#define GED_DRAWABLE_NULL   ((struct ged_drawable *)0)
 
#define GED_VIEW_NULL   ((struct bview *)0)
 
#define GED_RESULT_NULL   ((void *)0)
 
#define GED_HELP   0x0002
 
#define GED_MORE   0x0004
 
#define GED_QUIET   0x0008
 
#define GED_UNKNOWN   0x0010
 
#define GED_EXIT   0x0020
 
#define GED_FUNC_PTR_NULL   ((ged_func_ptr)0)
 
#define GED_SEM_WORKER   ANALYZE_SEM_LAST
 
#define GED_SEM_STATS   GED_SEM_WORKER+1
 
#define GED_SEM_LIST   GED_SEM_STATS+1
 
#define GED_SEM_LAST   GED_SEM_LIST+1
 
#define GED_INIT(_gedp, _wdbp)
 
#define GED_INITIALIZED(_gedp)   ((_gedp)->dbip != NULL)
 
#define GED_LOCAL2BASE(_gedp)   ((_gedp)->dbip->dbi_local2base)
 
#define GED_BASE2LOCAL(_gedp)   ((_gedp)->dbip->dbi_base2local)
 
#define GED_MAX   2047.0
 
#define GED_MIN   -2048.0
 
#define GED_RANGE   4095.0
 
#define INV_GED   0.00048828125
 
#define INV_4096   0.000244140625
 
#define RT_VDRW_PREFIX   "_VDRW"
 
#define RT_VDRW_PREFIX_LEN   6
 
#define RT_VDRW_MAXNAME   31
 
#define RT_VDRW_DEF_COLOR   0xffff00
 
#define VD_CURVE_NULL   ((struct vd_curve *)NULL)
 
#define GED_CHECK_ARGC_GT_0(_gedp, _argc, _flags)
 

Typedefs

typedef int(* ged_func_ptr) (struct ged *, int, const char *[])
 
typedef void(* ged_io_func_t) (void *, int)
 
typedef void(* ged_refresh_func_t) (void *)
 
typedef void(* ged_create_vlist_solid_func_t) (struct bv_scene_obj *)
 
typedef void(* ged_create_vlist_display_list_func_t) (struct display_list *)
 
typedef void(* ged_destroy_vlist_func_t) (unsigned int, int)
 

Functions

size_t ged_results_count (struct ged_results *results)
 
const char * ged_results_get (struct ged_results *results, size_t index)
 
void ged_results_clear (struct ged_results *results)
 
void ged_results_free (struct ged_results *results)
 
void ged_close (struct ged *gedp)
 
void ged_free (struct ged *gedp)
 
void ged_init (struct ged *gedp)
 
struct gedged_open (const char *dbtype, const char *filename, int existing_only)
 
const char * ged_init_msgs (void)
 

Detailed Description

Geometry EDiting Library specific definitions.

Macro Definition Documentation

◆ GED_VMIN

#define GED_VMIN   -2048.0

Definition at line 56 of file defines.h.

◆ GED_VMAX

#define GED_VMAX   2047.0

Definition at line 57 of file defines.h.

◆ GED_VRANGE

#define GED_VRANGE   4095.0

Definition at line 58 of file defines.h.

◆ INV_GED_V

#define INV_GED_V   0.00048828125

Definition at line 59 of file defines.h.

◆ INV_4096_V

#define INV_4096_V   0.000244140625

Definition at line 60 of file defines.h.

◆ GED_NULL

#define GED_NULL   ((struct ged *)0)

Definition at line 62 of file defines.h.

◆ GED_DISPLAY_LIST_NULL

#define GED_DISPLAY_LIST_NULL   ((struct display_list *)0)

Definition at line 63 of file defines.h.

◆ GED_DRAWABLE_NULL

#define GED_DRAWABLE_NULL   ((struct ged_drawable *)0)

Definition at line 64 of file defines.h.

◆ GED_VIEW_NULL

#define GED_VIEW_NULL   ((struct bview *)0)

Definition at line 65 of file defines.h.

◆ GED_RESULT_NULL

#define GED_RESULT_NULL   ((void *)0)

Definition at line 67 of file defines.h.

◆ GED_HELP

#define GED_HELP   0x0002

invalid specification, result contains usage

Definition at line 71 of file defines.h.

◆ GED_MORE

#define GED_MORE   0x0004

incomplete specification, can specify again interactively

Definition at line 72 of file defines.h.

◆ GED_QUIET

#define GED_QUIET   0x0008

don't set or modify the result string

Definition at line 73 of file defines.h.

◆ GED_UNKNOWN

#define GED_UNKNOWN   0x0010

argv[0] was not a known command

Definition at line 74 of file defines.h.

◆ GED_EXIT

#define GED_EXIT   0x0020

command is requesting a clean application shutdown

Definition at line 75 of file defines.h.

◆ GED_FUNC_PTR_NULL

#define GED_FUNC_PTR_NULL   ((ged_func_ptr)0)

Definition at line 82 of file defines.h.

◆ GED_SEM_WORKER

#define GED_SEM_WORKER   ANALYZE_SEM_LAST

Definition of global parallel-processing semaphores.

Definition at line 96 of file defines.h.

◆ GED_SEM_STATS

#define GED_SEM_STATS   GED_SEM_WORKER+1

Definition at line 97 of file defines.h.

◆ GED_SEM_LIST

#define GED_SEM_LIST   GED_SEM_STATS+1

Definition at line 98 of file defines.h.

◆ GED_SEM_LAST

#define GED_SEM_LAST   GED_SEM_LIST+1

Definition at line 99 of file defines.h.

◆ GED_INIT

#define GED_INIT (   _gedp,
  _wdbp 
)
Value:
{ \
ged_init((_gedp)); \
(_gedp)->dbip = NULL; \
if ((struct rt_wdb *)(_wdbp) != NULL) {\
(_gedp)->dbip = ((struct rt_wdb *)(_wdbp))->dbip; \
} \
}
Definition: wdb.h:62

Definition at line 101 of file defines.h.

◆ GED_INITIALIZED

#define GED_INITIALIZED (   _gedp)    ((_gedp)->dbip != NULL)

Definition at line 109 of file defines.h.

◆ GED_LOCAL2BASE

#define GED_LOCAL2BASE (   _gedp)    ((_gedp)->dbip->dbi_local2base)

Definition at line 110 of file defines.h.

◆ GED_BASE2LOCAL

#define GED_BASE2LOCAL (   _gedp)    ((_gedp)->dbip->dbi_base2local)

Definition at line 111 of file defines.h.

◆ GED_MAX

#define GED_MAX   2047.0

Definition at line 114 of file defines.h.

◆ GED_MIN

#define GED_MIN   -2048.0

Definition at line 115 of file defines.h.

◆ GED_RANGE

#define GED_RANGE   4095.0

Definition at line 116 of file defines.h.

◆ INV_GED

#define INV_GED   0.00048828125

Definition at line 117 of file defines.h.

◆ INV_4096

#define INV_4096   0.000244140625

Definition at line 118 of file defines.h.

◆ RT_VDRW_PREFIX

#define RT_VDRW_PREFIX   "_VDRW"

Definition at line 121 of file defines.h.

◆ RT_VDRW_PREFIX_LEN

#define RT_VDRW_PREFIX_LEN   6

Definition at line 122 of file defines.h.

◆ RT_VDRW_MAXNAME

#define RT_VDRW_MAXNAME   31

Definition at line 123 of file defines.h.

◆ RT_VDRW_DEF_COLOR

#define RT_VDRW_DEF_COLOR   0xffff00

Definition at line 124 of file defines.h.

◆ VD_CURVE_NULL

#define VD_CURVE_NULL   ((struct vd_curve *)NULL)

Definition at line 159 of file defines.h.

◆ GED_CHECK_ARGC_GT_0

#define GED_CHECK_ARGC_GT_0 (   _gedp,
  _argc,
  _flags 
)
Value:
if ((_argc) < 1) { \
int ged_check_argc_gt_0_quiet = (_flags) & GED_QUIET; \
if (!ged_check_argc_gt_0_quiet) { \
bu_vls_trunc((_gedp)->ged_result_str, 0); \
bu_vls_printf((_gedp)->ged_result_str, "Command name not provided on (%s:%d).", __FILE__, __LINE__); \
} \
return (_flags); \
}
#define GED_QUIET
Definition: defines.h:73

make sure there is a command name given

Todo:
  • where should this go?

Definition at line 358 of file defines.h.

Typedef Documentation

◆ ged_func_ptr

typedef int(* ged_func_ptr) (struct ged *, int, const char *[])

Definition at line 81 of file defines.h.

◆ ged_io_func_t

typedef void(* ged_io_func_t) (void *, int)

Definition at line 85 of file defines.h.

◆ ged_refresh_func_t

typedef void(* ged_refresh_func_t) (void *)

Definition at line 86 of file defines.h.

◆ ged_create_vlist_solid_func_t

typedef void(* ged_create_vlist_solid_func_t) (struct bv_scene_obj *)

Definition at line 87 of file defines.h.

◆ ged_create_vlist_display_list_func_t

typedef void(* ged_create_vlist_display_list_func_t) (struct display_list *)

Definition at line 88 of file defines.h.

◆ ged_destroy_vlist_func_t

typedef void(* ged_destroy_vlist_func_t) (unsigned int, int)

Definition at line 89 of file defines.h.

Function Documentation

◆ ged_results_count()

size_t ged_results_count ( struct ged_results *  results)

◆ ged_results_get()

const char * ged_results_get ( struct ged_results *  results,
size_t  index 
)

◆ ged_results_clear()

void ged_results_clear ( struct ged_results *  results)

◆ ged_results_free()

void ged_results_free ( struct ged_results *  results)

◆ ged_close()

void ged_close ( struct ged gedp)

◆ ged_free()

void ged_free ( struct ged gedp)

◆ ged_init()

void ged_init ( struct ged gedp)

◆ ged_open()

struct ged * ged_open ( const char *  dbtype,
const char *  filename,
int  existing_only 
)

◆ ged_init_msgs()

const char * ged_init_msgs ( void  )