Overview

REDRenderJob has been extend with a new parrent class call RenderJob. Where some of the code was move down to the parrent class. Behavior wise it still the same.

Createad a new abstact base class for render jobs.

Compile Time Changes

Old: extend public void add(REDRenderJob job, int[] frames) : abstract {}
New: extend public void add(RenderJob job, int[] frames) : abstract {}
old: package REDRenderJob job;
new: public RenderJob job;

old: public constructor(RenderResource resource, REDRenderJob job, int[] frames, str[] specs)
new: public constructor(RenderResource resource, RenderJob job, int[] frames, str[] specs)
old: public void renderBegin(REDRenderJob job)
new: public void renderBegin(RenderJob job)

old: public void renderProgress(REDRenderJob job)
new: public void renderProgress(RenderJob job)

old: public void renderEnd(REDRenderJob job)
new: public void renderEnd(RenderJob job)

the removed code have been move to the parent class RenderJob.

Removed: public str guid;

Removed: private Url snapshotUrl : public readable;

Removed: private ImageWithDepthData progressionImage;

Removed: public Space workingSpace;

Removed: public REDRenderFrame[] frames();

Removed: public bool isPreview;

Removed: public bool isGhost;

Removed: public bool isHLOverlay;

Removed: public bool isPanorama360;
    
Removed: private int->RenderOutputFrame outputFrames() : public readable;

Removed: private jobState jobstate = jobState.rendering : public readable;

Removed: public REDRenderJobEnv env;

Removed: public Photo photo;

Removed: package jobPriority priority = jobPriority.normal : public readable;

Removed: package int order = 0;

Removed: public str name;

Removed: public RenderResource{} resources;

Removed: final package void addResource(RenderResource res) 

Removed: final package void removeResource(RenderResource res)

Removed: final package void kill()

Removed: final private RenderOutputFrame getOutputFrame(REDRenderFrame frame)

Removed: final public bool valid(REDRenderResult renderResult)

New: public str progressbarText(str progressText, int progressTextOffset)

New: public bool isTransferring() { return jobTransferred; }

New: public bool isQueued() { return false; }
New: public str guid;

New: public str name

New: public REDRenderJobEnv env

New: public Photo photo;

New: public jobState jobstate

New: public jobPriority priority

New: public REDRenderFrame[] frames

New: final public void addResource(RenderResource res)

New: final public void removeResource(RenderResource res)

New: public int->RenderOutputFrame outputFrames

New: public bool isPreview;

New: public bool isGhost;

New: public bool isHLOverlay;

New: public bool isPanorama360;

New: public Space workingSpace;

New: public RenderResource{} resources;

New: public float progress() : abstract

New: public void setProgress(float progress)

New: public void process() : abstract

New: public void abortRender()

New: public void kill()

New: public void processPanoramaImages() : abstract 

New: public Url imageUrl(int frameNumber=0) : abstract

New: public Url progressionImageUrl() : abstract

New: public Url snapshotUrl() : abstract

New: public RenderOutputFrame getOutputFrame(REDRenderFrame frame)

New: public RenderOutputFrame getOutputFrame(OutputTile outputTile)

New: public RenderOutputFrame getOutputFrame(int frameIndex)

New: public void renderUpdate(REDRenderResult renderResult) : abstract 

New: public int unscheduledFrameCount(int upto=maxInt)

New: public int[] unscheduledFrames(int upto)

New: public void framesScheduled(int[] scheduled)

New: public void framesDone(int[] done) : abstract

New: public void setJobState(jobState newState)

New: public bool valid(REDRenderResult renderResult)

New: public str progressbarText(str progressText, int progressTextOffset) 

New: public bool isTransferring()

New: public bool isQueued()

New: public bool inProgress() : abstract

New: public bool completed() 

New: public bool aborted() 

New: public bool failed() 

New: public bool visible() : abstract
old: public void add(REDRenderJob job, int[] frames)
new: public void add(RenderJob job, int[] frames) 
old: public REDRenderJob->REDRenderJobItem map()
new: public RenderJob->REDRenderJobItem map()

old: final public void updateJobProgression(REDRenderJob job)
new: final public void updateJobProgression(RenderJob job)

old: final public void add(REDRenderJob job, bool replace=true)
new: final public void add(RenderJob job, bool replace=true)

old: final public void removeJob(REDRenderJob job)
new: final public void removeJob(RenderJob job)

old: final public void fillProgression(REDRenderJob job)
new: final public void fillProgression(RenderJob job)

old: final public void fillProgressionIfSelected(REDRenderJob job)
new: final public void fillProgressionIfSelected(RenderJob job)

old: final public REDRenderJob selectedJob()
new: final public RenderJob selectedJob()

Runtime/Behavior Changes

In runtime REDRenderJOB work the same as it before.