BRL-CAD
nongeom.h File Reference
#include "common.h"
#include "vmath.h"
#include "bu/vls.h"
Include dependency graph for nongeom.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  rt_comb_internal
 
struct  rt_binunif_internal
 
struct  rt_constraint_internal
 
struct  rt_material_internal
 

Macros

#define RT_CHECK_COMB(_p)   BU_CKMAG(_p, RT_COMB_MAGIC, "rt_comb_internal")
 
#define RT_CK_COMB(_p)   RT_CHECK_COMB(_p)
 
#define RT_COMB_INTERNAL_INIT(_p)
 
#define RT_FREE_COMB_INTERNAL(_p)
 
#define RT_CHECK_BINUNIF(_p)   BU_CKMAG(_p, RT_BINUNIF_INTERNAL_MAGIC, "rt_binunif_internal")
 
#define RT_CK_BINUNIF(_p)   RT_CHECK_BINUNIF(_p)
 
#define RT_CHECK_CONSTRAINT(_p)   BU_CKMAG(_p, RT_CONSTRAINT_MAGIC, "rt_constraint_internal")
 
#define RT_CK_CONSTRAINT(_p)   RT_CHECK_CONSTRAINT(_p)
 
#define RT_CHECK_MATERIAL(_p)   BU_CKMAG(_p, RT_MATERIAL_MAGIC, "rt_material_internal")
 
#define RT_CK_MATERIAL(_p)   RT_CHECK_MATERIAL(_p)
 

Detailed Description

In memory format for non-geometry objects in BRL-CAD databases.

Definition in file nongeom.h.

Macro Definition Documentation

◆ RT_CHECK_COMB

#define RT_CHECK_COMB (   _p)    BU_CKMAG(_p, RT_COMB_MAGIC, "rt_comb_internal")

Definition at line 59 of file nongeom.h.

◆ RT_CK_COMB

#define RT_CK_COMB (   _p)    RT_CHECK_COMB(_p)

Definition at line 60 of file nongeom.h.

◆ RT_COMB_INTERNAL_INIT

#define RT_COMB_INTERNAL_INIT (   _p)
Value:
{ \
(_p)->magic = RT_COMB_MAGIC; \
(_p)->tree = TREE_NULL; \
(_p)->region_flag = 0; \
(_p)->is_fastgen = REGION_NON_FASTGEN; \
(_p)->region_id = 0; \
(_p)->aircode = 0; \
(_p)->GIFTmater = 0; \
(_p)->los = 0; \
(_p)->rgb_valid = 0; \
(_p)->rgb[0] = 0; \
(_p)->rgb[1] = 0; \
(_p)->rgb[2] = 0; \
(_p)->temperature = 0.0; \
BU_VLS_INIT(&(_p)->shader); \
BU_VLS_INIT(&(_p)->material); \
(_p)->inherit = 0; \
}
#define RT_COMB_MAGIC
Definition: magic.h:169
#define REGION_NON_FASTGEN
Definition: region.h:60
#define TREE_NULL
Definition: tree.h:186
Definition: tree.h:147

initialize an rt_comb_internal to empty.

Definition at line 65 of file nongeom.h.

◆ RT_FREE_COMB_INTERNAL

#define RT_FREE_COMB_INTERNAL (   _p)
Value:
{ \
bu_vls_free(&(_p)->shader); \
bu_vls_free(&(_p)->material); \
(_p)->tree = TREE_NULL; \
(_p)->magic = 0; \
}

deinitialize an rt_comb_internal. the tree pointer is not released so callers will need to call BU_PUT() or db_free_tree() directly if a tree is set. the shader and material strings are released. the comb itself will need to be released with bu_free() unless it resides on the stack.

Definition at line 91 of file nongeom.h.

◆ RT_CHECK_BINUNIF

#define RT_CHECK_BINUNIF (   _p)    BU_CKMAG(_p, RT_BINUNIF_INTERNAL_MAGIC, "rt_binunif_internal")

Definition at line 120 of file nongeom.h.

◆ RT_CK_BINUNIF

#define RT_CK_BINUNIF (   _p)    RT_CHECK_BINUNIF(_p)

Definition at line 121 of file nongeom.h.

◆ RT_CHECK_CONSTRAINT

#define RT_CHECK_CONSTRAINT (   _p)    BU_CKMAG(_p, RT_CONSTRAINT_MAGIC, "rt_constraint_internal")

Definition at line 134 of file nongeom.h.

◆ RT_CK_CONSTRAINT

#define RT_CK_CONSTRAINT (   _p)    RT_CHECK_CONSTRAINT(_p)

Definition at line 135 of file nongeom.h.

◆ RT_CHECK_MATERIAL

#define RT_CHECK_MATERIAL (   _p)    BU_CKMAG(_p, RT_MATERIAL_MAGIC, "rt_material_internal")

Definition at line 152 of file nongeom.h.

◆ RT_CK_MATERIAL

#define RT_CK_MATERIAL (   _p)    RT_CHECK_MATERIAL(_p)

Definition at line 153 of file nongeom.h.