13 |
|
#define RtraceSimulManager_h |
14 |
|
|
15 |
|
#include "ray.h" |
16 |
+ |
#include "abitmap.h" |
17 |
|
|
18 |
|
extern char * octname; // global octree name |
19 |
|
|
41 |
|
bool LoadOctree(const char *octn); |
42 |
|
/// Prepare header from previous input (or clear) |
43 |
|
/// Normally called during octree load |
44 |
< |
bool NewHeader(const char *inspec=NULL); |
44 |
> |
bool NewHeader(const char *inspec = NULL); |
45 |
|
/// Add a line to header (adds newline if none) |
46 |
|
bool AddHeader(const char *str); |
47 |
|
/// Append program line to header |
84 |
|
RayReportCall * traceCall; // call for every ray in tree |
85 |
|
void * tcData; // client data for traced rays |
86 |
|
int curFlags; // current operating flags |
87 |
+ |
ABitMap srcFollowed; // source flags changed |
88 |
|
// Call-back for global ray-tracing context |
89 |
|
static void RTracer(RAY *r); |
90 |
|
// Call-back for FIFO |
131 |
|
cookedCall = cb; |
132 |
|
ccData = cb ? cd : NULL; |
133 |
|
} |
134 |
< |
/// Set/change trace callback |
134 |
> |
/// Set/change trace callback (before threading) |
135 |
|
void SetTraceCall(RayReportCall *cb, void *cd = NULL) { |
136 |
|
traceCall = cb; |
137 |
|
tcData = cb ? cd : NULL; |