BRL-CAD
#include "common.h"
#include "vmath.h"
#include "bu/parse.h"
#include "bu/vls.h"
#include "bn/tol.h"
#include "bv.h"
#include "rt/geom.h"
#include "rt/defines.h"
#include "rt/application.h"
#include "rt/db_internal.h"
#include "rt/db_instance.h"
#include "rt/hit.h"
#include "rt/resource.h"
#include "rt/rt_instance.h"
#include "rt/seg.h"
#include "rt/soltab.h"
#include "rt/tol.h"
#include "rt/view.h"
#include "rt/xray.h"
#include "pc.h"
#include "nmg.h"
#include "brep.h"
Include dependency graph for functab.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  rt_functab
 

Macros

#define RTFUNCTAB_FUNC_PREP_CAST(_func)   ((int (*)(struct soltab *, struct rt_db_internal *, struct rt_i *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_SHOT_CAST(_func)   ((int (*)(struct soltab *, struct xray *, struct application *, struct seg *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_PRINT_CAST(_func)   ((void (*)(const struct soltab *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_NORM_CAST(_func)   ((void (*)(struct hit *, struct soltab *, struct xray *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_PIECE_SHOT_CAST(_func)   ((int (*)(struct rt_piecestate *, struct rt_piecelist *, double dist, struct xray *, struct application *, struct seg *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_PIECE_HITSEGS_CAST(_func)   ((void (*)(struct rt_piecestate *, struct seg *, struct application *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_UV_CAST(_func)   ((void (*)(struct application *, struct soltab *, struct hit *, struct uvcoord *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_CURVE_CAST(_func)   ((void (*)(struct curvature *, struct hit *, struct soltab *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_CLASS_CAST(_func)   ((int (*)(const struct soltab *, const vect_t, const vect_t, const struct bn_tol *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_FREE_CAST(_func)   ((void (*)(struct soltab *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_PLOT_CAST(_func)   ((int (*)(struct bu_list *, struct rt_db_internal *, const struct bg_tess_tol *, const struct bn_tol *, const struct bview *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_ADAPTIVE_PLOT_CAST(_func)   ((int (*)(struct bu_list *, struct rt_db_internal *, const struct bn_tol *, const struct bview *, fastf_t))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_VSHOT_CAST(_func)   ((void (*)(struct soltab *[], struct xray *[], struct seg *, int, struct application *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_TESS_CAST(_func)   ((int (*)(struct nmgregion **, struct model *, struct rt_db_internal *, const struct bg_tess_tol *, const struct bn_tol *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_TNURB_CAST(_func)   ((int (*)(struct nmgregion **, struct model *, struct rt_db_internal *, const struct bn_tol *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_BREP_CAST(_func)   ((void (*)(ON_Brep **, struct rt_db_internal *, const struct bn_tol *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_IMPORT5_CAST(_func)   ((int (*)(struct rt_db_internal *, const struct bu_external *, const mat_t, const struct db_i *, struct resource *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_EXPORT5_CAST(_func)   ((int (*)(struct bu_external *, const struct rt_db_internal *, double, const struct db_i *, struct resource *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_IMPORT4_CAST(_func)   ((int (*)(struct rt_db_internal *, const struct bu_external *, const mat_t, const struct db_i *, struct resource *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_EXPORT4_CAST(_func)   ((int (*)(struct bu_external *, const struct rt_db_internal *, double, const struct db_i *, struct resource *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_IFREE_CAST(_func)   ((void (*)(struct rt_db_internal *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_DESCRIBE_CAST(_func)   ((int (*)(struct bu_vls *, const struct rt_db_internal *, int, double))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_XFORM_CAST(_func)   ((int (*)(struct rt_db_internal *, const mat_t, struct rt_db_internal *, int, struct db_i *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_GET_CAST(_func)   ((int (*)(struct bu_vls *, const struct rt_db_internal *, const char *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_ADJUST_CAST(_func)   ((int (*)(struct bu_vls *, struct rt_db_internal *, int, const char **))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_FORM_CAST(_func)   ((int (*)(struct bu_vls *, const struct rt_functab *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_MAKE_CAST(_func)   ((void (*)(const struct rt_functab *, struct rt_db_internal *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_PARAMS_CAST(_func)   ((int (*)(struct pc_pc_set *, const struct rt_db_internal *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_BBOX_CAST(_func)   ((int (*)(struct rt_db_internal *, point_t *, point_t *, const struct bn_tol *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_VOLUME_CAST(_func)   ((void (*)(fastf_t *, const struct rt_db_internal *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_SURF_AREA_CAST(_func)   ((void (*)(fastf_t *, const struct rt_db_internal *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_CENTROID_CAST(_func)   ((void (*)(point_t *, const struct rt_db_internal *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_ORIENTED_BBOX_CAST(_func)   ((int (*)(struct rt_arb_internal *, struct rt_db_internal *, const fastf_t))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_FIND_SELECTIONS_CAST(_func)   ((struct rt_selection_set *(*)(const struct rt_db_internal *, const struct rt_selection_query *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_EVALUATE_SELECTION_CAST(_func)   ((struct rt_selection *(*)(const struct rt_db_internal *, int op, const struct rt_selection *, const struct rt_selection *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_PROCESS_SELECTION_CAST(_func)   ((int (*)(struct rt_db_internal *, struct db_i *, const struct rt_selection *, const struct rt_selection_operation *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_PREP_SERIALIZE_CAST(_func)   ((int (*)(struct soltab *, const struct rt_db_internal *, struct bu_external *, size_t *))((void (*)(void))_func))
 
#define RTFUNCTAB_FUNC_LABELS_CAST(_func)   ((void (*)(struct bv_scene_obj *, const struct rt_db_internal *))((void (*)(void))_func))
 
#define RT_CK_FUNCTAB(_p)   BU_CKMAG(_p, RT_FUNCTAB_MAGIC, "functab");
 

Functions

const struct rt_functabrt_get_functab_by_label (const char *label)
 

Variables

const struct rt_functab OBJ []
 

Macro Definition Documentation

◆ RTFUNCTAB_FUNC_PREP_CAST

#define RTFUNCTAB_FUNC_PREP_CAST (   _func)    ((int (*)(struct soltab *, struct rt_db_internal *, struct rt_i *))((void (*)(void))_func))

Definition at line 80 of file functab.h.

◆ RTFUNCTAB_FUNC_SHOT_CAST

#define RTFUNCTAB_FUNC_SHOT_CAST (   _func)    ((int (*)(struct soltab *, struct xray *, struct application *, struct seg *))((void (*)(void))_func))

Definition at line 86 of file functab.h.

◆ RTFUNCTAB_FUNC_PRINT_CAST

#define RTFUNCTAB_FUNC_PRINT_CAST (   _func)    ((void (*)(const struct soltab *))((void (*)(void))_func))

Definition at line 89 of file functab.h.

◆ RTFUNCTAB_FUNC_NORM_CAST

#define RTFUNCTAB_FUNC_NORM_CAST (   _func)    ((void (*)(struct hit *, struct soltab *, struct xray *))((void (*)(void))_func))

Definition at line 94 of file functab.h.

◆ RTFUNCTAB_FUNC_PIECE_SHOT_CAST

#define RTFUNCTAB_FUNC_PIECE_SHOT_CAST (   _func)    ((int (*)(struct rt_piecestate *, struct rt_piecelist *, double dist, struct xray *, struct application *, struct seg *))((void (*)(void))_func))

Definition at line 102 of file functab.h.

◆ RTFUNCTAB_FUNC_PIECE_HITSEGS_CAST

#define RTFUNCTAB_FUNC_PIECE_HITSEGS_CAST (   _func)    ((void (*)(struct rt_piecestate *, struct seg *, struct application *))((void (*)(void))_func))

Definition at line 107 of file functab.h.

◆ RTFUNCTAB_FUNC_UV_CAST

#define RTFUNCTAB_FUNC_UV_CAST (   _func)    ((void (*)(struct application *, struct soltab *, struct hit *, struct uvcoord *))((void (*)(void))_func))

Definition at line 113 of file functab.h.

◆ RTFUNCTAB_FUNC_CURVE_CAST

#define RTFUNCTAB_FUNC_CURVE_CAST (   _func)    ((void (*)(struct curvature *, struct hit *, struct soltab *))((void (*)(void))_func))

Definition at line 118 of file functab.h.

◆ RTFUNCTAB_FUNC_CLASS_CAST

#define RTFUNCTAB_FUNC_CLASS_CAST (   _func)    ((int (*)(const struct soltab *, const vect_t, const vect_t, const struct bn_tol *))((void (*)(void))_func))

Definition at line 121 of file functab.h.

◆ RTFUNCTAB_FUNC_FREE_CAST

#define RTFUNCTAB_FUNC_FREE_CAST (   _func)    ((void (*)(struct soltab *))((void (*)(void))_func))

Definition at line 124 of file functab.h.

◆ RTFUNCTAB_FUNC_PLOT_CAST

#define RTFUNCTAB_FUNC_PLOT_CAST (   _func)    ((int (*)(struct bu_list *, struct rt_db_internal *, const struct bg_tess_tol *, const struct bn_tol *, const struct bview *))((void (*)(void))_func))

Definition at line 131 of file functab.h.

◆ RTFUNCTAB_FUNC_ADAPTIVE_PLOT_CAST

#define RTFUNCTAB_FUNC_ADAPTIVE_PLOT_CAST (   _func)    ((int (*)(struct bu_list *, struct rt_db_internal *, const struct bn_tol *, const struct bview *, fastf_t))((void (*)(void))_func))

Definition at line 138 of file functab.h.

◆ RTFUNCTAB_FUNC_VSHOT_CAST

#define RTFUNCTAB_FUNC_VSHOT_CAST (   _func)    ((void (*)(struct soltab *[], struct xray *[], struct seg *, int, struct application *))((void (*)(void))_func))

Definition at line 145 of file functab.h.

◆ RTFUNCTAB_FUNC_TESS_CAST

#define RTFUNCTAB_FUNC_TESS_CAST (   _func)    ((int (*)(struct nmgregion **, struct model *, struct rt_db_internal *, const struct bg_tess_tol *, const struct bn_tol *))((void (*)(void))_func))

Definition at line 152 of file functab.h.

◆ RTFUNCTAB_FUNC_TNURB_CAST

#define RTFUNCTAB_FUNC_TNURB_CAST (   _func)    ((int (*)(struct nmgregion **, struct model *, struct rt_db_internal *, const struct bn_tol *))((void (*)(void))_func))

Definition at line 157 of file functab.h.

◆ RTFUNCTAB_FUNC_BREP_CAST

#define RTFUNCTAB_FUNC_BREP_CAST (   _func)    ((void (*)(ON_Brep **, struct rt_db_internal *, const struct bn_tol *))((void (*)(void))_func))

Definition at line 162 of file functab.h.

◆ RTFUNCTAB_FUNC_IMPORT5_CAST

#define RTFUNCTAB_FUNC_IMPORT5_CAST (   _func)    ((int (*)(struct rt_db_internal *, const struct bu_external *, const mat_t, const struct db_i *, struct resource *))((void (*)(void))_func))

Definition at line 169 of file functab.h.

◆ RTFUNCTAB_FUNC_EXPORT5_CAST

#define RTFUNCTAB_FUNC_EXPORT5_CAST (   _func)    ((int (*)(struct bu_external *, const struct rt_db_internal *, double, const struct db_i *, struct resource *))((void (*)(void))_func))

Definition at line 176 of file functab.h.

◆ RTFUNCTAB_FUNC_IMPORT4_CAST

#define RTFUNCTAB_FUNC_IMPORT4_CAST (   _func)    ((int (*)(struct rt_db_internal *, const struct bu_external *, const mat_t, const struct db_i *, struct resource *))((void (*)(void))_func))

Definition at line 183 of file functab.h.

◆ RTFUNCTAB_FUNC_EXPORT4_CAST

#define RTFUNCTAB_FUNC_EXPORT4_CAST (   _func)    ((int (*)(struct bu_external *, const struct rt_db_internal *, double, const struct db_i *, struct resource *))((void (*)(void))_func))

Definition at line 190 of file functab.h.

◆ RTFUNCTAB_FUNC_IFREE_CAST

#define RTFUNCTAB_FUNC_IFREE_CAST (   _func)    ((void (*)(struct rt_db_internal *))((void (*)(void))_func))

Definition at line 193 of file functab.h.

◆ RTFUNCTAB_FUNC_DESCRIBE_CAST

#define RTFUNCTAB_FUNC_DESCRIBE_CAST (   _func)    ((int (*)(struct bu_vls *, const struct rt_db_internal *, int, double))((void (*)(void))_func))

Definition at line 199 of file functab.h.

◆ RTFUNCTAB_FUNC_XFORM_CAST

#define RTFUNCTAB_FUNC_XFORM_CAST (   _func)    ((int (*)(struct rt_db_internal *, const mat_t, struct rt_db_internal *, int, struct db_i *))((void (*)(void))_func))

Definition at line 204 of file functab.h.

◆ RTFUNCTAB_FUNC_GET_CAST

#define RTFUNCTAB_FUNC_GET_CAST (   _func)    ((int (*)(struct bu_vls *, const struct rt_db_internal *, const char *))((void (*)(void))_func))

Definition at line 211 of file functab.h.

◆ RTFUNCTAB_FUNC_ADJUST_CAST

#define RTFUNCTAB_FUNC_ADJUST_CAST (   _func)    ((int (*)(struct bu_vls *, struct rt_db_internal *, int, const char **))((void (*)(void))_func))

Definition at line 214 of file functab.h.

◆ RTFUNCTAB_FUNC_FORM_CAST

#define RTFUNCTAB_FUNC_FORM_CAST (   _func)    ((int (*)(struct bu_vls *, const struct rt_functab *))((void (*)(void))_func))

Definition at line 217 of file functab.h.

◆ RTFUNCTAB_FUNC_MAKE_CAST

#define RTFUNCTAB_FUNC_MAKE_CAST (   _func)    ((void (*)(const struct rt_functab *, struct rt_db_internal *))((void (*)(void))_func))

Definition at line 220 of file functab.h.

◆ RTFUNCTAB_FUNC_PARAMS_CAST

#define RTFUNCTAB_FUNC_PARAMS_CAST (   _func)    ((int (*)(struct pc_pc_set *, const struct rt_db_internal *))((void (*)(void))_func))

Definition at line 223 of file functab.h.

◆ RTFUNCTAB_FUNC_BBOX_CAST

#define RTFUNCTAB_FUNC_BBOX_CAST (   _func)    ((int (*)(struct rt_db_internal *, point_t *, point_t *, const struct bn_tol *))((void (*)(void))_func))

Definition at line 230 of file functab.h.

◆ RTFUNCTAB_FUNC_VOLUME_CAST

#define RTFUNCTAB_FUNC_VOLUME_CAST (   _func)    ((void (*)(fastf_t *, const struct rt_db_internal *))((void (*)(void))_func))

Definition at line 233 of file functab.h.

◆ RTFUNCTAB_FUNC_SURF_AREA_CAST

#define RTFUNCTAB_FUNC_SURF_AREA_CAST (   _func)    ((void (*)(fastf_t *, const struct rt_db_internal *))((void (*)(void))_func))

Definition at line 236 of file functab.h.

◆ RTFUNCTAB_FUNC_CENTROID_CAST

#define RTFUNCTAB_FUNC_CENTROID_CAST (   _func)    ((void (*)(point_t *, const struct rt_db_internal *))((void (*)(void))_func))

Definition at line 239 of file functab.h.

◆ RTFUNCTAB_FUNC_ORIENTED_BBOX_CAST

#define RTFUNCTAB_FUNC_ORIENTED_BBOX_CAST (   _func)    ((int (*)(struct rt_arb_internal *, struct rt_db_internal *, const fastf_t))((void (*)(void))_func))

Definition at line 244 of file functab.h.

◆ RTFUNCTAB_FUNC_FIND_SELECTIONS_CAST

#define RTFUNCTAB_FUNC_FIND_SELECTIONS_CAST (   _func)    ((struct rt_selection_set *(*)(const struct rt_db_internal *, const struct rt_selection_query *))((void (*)(void))_func))

Definition at line 249 of file functab.h.

◆ RTFUNCTAB_FUNC_EVALUATE_SELECTION_CAST

#define RTFUNCTAB_FUNC_EVALUATE_SELECTION_CAST (   _func)    ((struct rt_selection *(*)(const struct rt_db_internal *, int op, const struct rt_selection *, const struct rt_selection *))((void (*)(void))_func))

Definition at line 259 of file functab.h.

◆ RTFUNCTAB_FUNC_PROCESS_SELECTION_CAST

#define RTFUNCTAB_FUNC_PROCESS_SELECTION_CAST (   _func)    ((int (*)(struct rt_db_internal *, struct db_i *, const struct rt_selection *, const struct rt_selection_operation *))((void (*)(void))_func))

Definition at line 266 of file functab.h.

◆ RTFUNCTAB_FUNC_PREP_SERIALIZE_CAST

#define RTFUNCTAB_FUNC_PREP_SERIALIZE_CAST (   _func)    ((int (*)(struct soltab *, const struct rt_db_internal *, struct bu_external *, size_t *))((void (*)(void))_func))

Definition at line 270 of file functab.h.

◆ RTFUNCTAB_FUNC_LABELS_CAST

#define RTFUNCTAB_FUNC_LABELS_CAST (   _func)    ((void (*)(struct bv_scene_obj *, const struct rt_db_internal *))((void (*)(void))_func))

Definition at line 274 of file functab.h.