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

Comparing ray/src/rt/RpictSimulManager.h (file contents):
Revision 2.4 by greg, Mon Aug 19 16:41:40 2024 UTC vs.
Revision 2.7 by greg, Fri Aug 23 02:08:28 2024 UTC

# Line 251 | Line 251 | class RpictSimulManager : protected RtraceSimulManager
251          COLORV *                barPix;                 // current render bar pixels
252          float *                 barDepth;               // current render bar depths
253          bool                    SetTile(const int ti[2]);
254 <        bool                    RenderRect();
254 >        bool                    RenderRect(const int x0 = 0, const int y0 = 0);
255          bool                    ComputePixel(int x, int y);
256 <        bool                    BelowSampThresh(int x, int y, const int noff[4][2]) const;
256 >        bool                    BelowSampThresh(const int x, const int y,
257 >                                                        const int noff[4][2]) const;
258          void                    FillSquare(const int x, const int y, const int noff[4][2]);
259          void                    NewBar(int ht = 0);
260          bool                    LowerBar(int v, int ytop);
# Line 275 | Line 276 | class RpictSimulManager : protected RtraceSimulManager
276                                          frameNo = 0;
277                                  }
278                                  ~RpictSimulManager() {
279 <                                        NewBar();
279 >                                        delete [] barPix; delete [] barDepth;
280                                  }
281                                  /// Load octree and prepare renderer
282          bool                    LoadOctree(const char *octn) {
# Line 381 | Line 382 | class RpictSimulManager : protected RtraceSimulManager
382                                                  const int *tile=NULL);
383                                  /// Render and write a frame to the named file
384                                  /// Include any header lines set prior to call
385 <                                /// Picture file must not already exist
385 >                                /// Picture file must not exist
386                                  /// Write pixels to stdout if !pfname
387                                  /// Write depth to a command if dfname[0]=='!'
388          RenderDataType          RenderFrame(const char *pfname,
# Line 390 | Line 391 | class RpictSimulManager : protected RtraceSimulManager
391                                  /// Resume partially finished rendering
392                                  /// Picture file must exist with valid header
393          RenderDataType          ResumeFrame(const char *pfname,
394 +                                                const char *dfname=NULL);
395 +                                /// Prepare new picture (and depth) output
396 +                                /// Called by RenderFrame()
397 +        RenderDataType          NewOutput(FILE *pdfp[2], const char *pfname,
398 +                                                RenderDataType dt=RDTrgbe,
399 +                                                const char *dfname=NULL);
400 +                                /// Reopen existing picture (and depth) file
401 +                                /// Called by ResumeFrame()
402 +                                /// File pointers @ end of header (before res.)
403 +        RenderDataType          ReopenOutput(FILE *pdfp[2], const char *pfname,
404                                                  const char *dfname=NULL);
405                                  /// Close octree, free data, return status
406          int                     Cleanup(bool everything = false) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines