ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/RtraceSimulManager.h
(Generate patch)

Comparing ray/src/rt/RtraceSimulManager.h (file contents):
Revision 2.8 by greg, Thu May 2 22:10:43 2024 UTC vs.
Revision 2.9 by greg, Sat Aug 3 01:54:46 2024 UTC

# Line 23 | Line 23 | typedef int    RayReportCall(RAY *r, void *cd);
23  
24   /// Multi-threaded simulation manager base class
25   class RadSimulManager {
26 +        char *                  header;                 // header (less intro and format)
27   protected:
28                                  // Assign ray to subthread (fails if NThreads()<2)
29          bool                    SplitRay(RAY *r);
30   public:
31                                  RadSimulManager(const char *octn = NULL) {
32 +                                        header = NULL;
33                                          LoadOctree(octn);
34                                  }
35                                  ~RadSimulManager() {
# Line 35 | Line 37 | class RadSimulManager { (public)
37                                  }
38                                  /// Load octree and prepare renderer
39          bool                    LoadOctree(const char *octn);
40 +                                /// Prepare header from previous input (or clear)
41 +                                /// Normally called during octree load
42 +        bool                    NewHeader(const char *fname=NULL);
43 +                                /// Add a string to header (adds newline if none)
44 +        bool                    AddHeader(const char *str);
45 +                                /// Append program line to header
46 +        bool                    AddHeader(int ac, const char *av[]);
47 +                                /// Get header lines if any
48 +        const char *            GetHeader() const {
49 +                                        return header;
50 +                                }
51                                  /// How many cores are available?
52          static int              GetNCores();
53                                  /// Set number of computation threads (0 => #cores)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines