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 |
48 |
|
bool AddHeader(int ac, char *av[]); |
49 |
+ |
/// Get current header length in bytes |
50 |
+ |
int GetHeadLen() const { |
51 |
+ |
return hlen; |
52 |
+ |
} |
53 |
|
/// Get header lines or empty string |
54 |
|
const char * GetHeadStr() const { |
55 |
|
return hlen ? header : ""; |
88 |
|
RayReportCall * traceCall; // call for every ray in tree |
89 |
|
void * tcData; // client data for traced rays |
90 |
|
int curFlags; // current operating flags |
91 |
+ |
ABitMap srcFollowed; // source flags changed |
92 |
|
// Call-back for global ray-tracing context |
93 |
|
static void RTracer(RAY *r); |
94 |
|
// Call-back for FIFO |
135 |
|
cookedCall = cb; |
136 |
|
ccData = cb ? cd : NULL; |
137 |
|
} |
138 |
< |
/// Set/change trace callback |
138 |
> |
/// Set/change trace callback (before threading) |
139 |
|
void SetTraceCall(RayReportCall *cb, void *cd = NULL) { |
140 |
|
traceCall = cb; |
141 |
|
tcData = cb ? cd : NULL; |