BRL-CAD
Loading...
Searching...
No Matches
nirt.h File Reference
#include "common.h"
#include "analyze/defines.h"
#include "bu/opt.h"
#include "bu/vls.h"
#include "raytrace.h"
Include dependency graph for nirt.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  nirt_opt_vals
 
struct  nirt_state
 

Macros

#define NIRT_SILENT_UNSET   0
 
#define NIRT_SILENT_YES   1
 
#define NIRT_SILENT_NO   -1
 
#define NIRT_OVLP_RESOLVE   0
 
#define NIRT_OVLP_REBUILD_FASTGEN   1
 
#define NIRT_OVLP_REBUILD_ALL   2
 
#define NIRT_OVLP_RETAIN   3
 
#define NIRT_OPT_INIT   {0, 0, 1, NIRT_OVLP_RESOLVE, 0, 0, 0, NIRT_SILENT_UNSET, 0, 0, BU_PTBL_INIT_ZERO, 0, 0, BU_PTBL_INIT_ZERO, BU_VLS_INIT_ZERO, BU_VLS_INIT_ZERO, VINIT_ZERO, BU_VLS_INIT_ZERO, BU_COLOR_CYAN, BU_COLOR_YELLOW, BU_COLOR_PURPLE, BU_COLOR_WHITE}
 
#define NIRT_ALL   0x1
 reset to initial state or report all state
 
#define NIRT_OUT   0x2
 output log
 
#define NIRT_MSG   0x4
 output log
 
#define NIRT_ERR   0x8
 error log
 
#define NIRT_SEGS   0x10
 segment list
 
#define NIRT_OBJS   0x20
 'active' objects from the scene
 
#define NIRT_FRMTS   0x40
 available pre-defined output formats
 
#define NIRT_VIEW   0x80
 the current view (ae/dir/center/etc.)
 

Typedefs

typedef int(* nirt_hook_t) (struct nirt_state *ns, void *u_data)
 

Functions

struct bu_opt_descnirt_opt_desc (struct nirt_opt_vals *o)
 
void nirt_opt_vals_reset (struct nirt_opt_vals *o)
 
void nirt_opt_vals_free (struct nirt_opt_vals *o)
 
void nirt_opt_mk_args (struct bu_ptbl *tbl, struct nirt_opt_vals *tgt, struct nirt_opt_vals *src, int add_scripts)
 
int nirt_init (struct nirt_state *ns)
 
int nirt_init_dbip (struct nirt_state *ns, struct db_i *dbip)
 
int nirt_clear_dbip (struct nirt_state *ns)
 
void nirt_destroy (struct nirt_state *ns)
 
int nirt_exec (struct nirt_state *ns, const char *script)
 
voidnirt_udata (struct nirt_state *ns, void *u_data)
 
void nirt_hook (struct nirt_state *ns, nirt_hook_t hf, int flag)
 
void nirt_clear (struct nirt_state *ns, int flags)
 
void nirt_log (struct bu_vls *o, struct nirt_state *ns, int output_type)
 
int nirt_help (struct bu_vls *h, struct nirt_state *ns, bu_opt_format_t ofmt)
 
int nirt_line_segments (struct bv_vlblock **segs, struct nirt_state *ns)