RadiosityRenderer Class Reference

Radiosity rendering engine. More...

#include <RadiosityRenderer.h>

Inheritance diagram for RadiosityRenderer:

Inheritance graph
[legend]
Collaboration diagram for RadiosityRenderer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RadiosityRenderer (PatchSequenceEnumerator *patchEnumerator, int stepCount, float formFactorTreshold, long maxCacheSize)
 ~RadiosityRenderer ()
virtual int stepCount () const
 Return total count of radiosity computation steps.
virtual int currentStep () const
 Return number of current step - always in range <0, stepCount()-1>.
virtual int patchCount () const
 Return total count of patches maintained by RadiosityRenderer.
virtual int currentPatch () const
 Return number of current patch computed by RadiosityRenderer - always in range <0, patchCount()-1>.
void compute ()
 Initiate radiosity rendering progress.
void normalize ()
 Optional color normalization.
long int cacheRawSize () const
 Return current patch cache size. Return current patch cache size.

Note:
This is raw size (estimated). The real cache size can be greater.
.
virtual void attach (ProgressObserverMultiStep *observer, int perStepFreq)
 Attach observer to subject.
virtual void detach (ProgressObserverMultiStep *observer)
 Detach observer from subject.

Protected Member Functions

void notifyStep ()
 Subject's notification about starting new step.
void notifyPerStepProgress ()
 Subject's notification about progress.

Detailed Description

Radiosity rendering engine.

Definition at line 21 of file RadiosityRenderer.h.


Constructor & Destructor Documentation

RadiosityRenderer::RadiosityRenderer ( PatchSequenceEnumerator patchEnumerator,
int  stepCount,
float  formFactorTreshold,
long  maxCacheSize 
)

Parameters:
patchEnumerator Instance of PatchSequenceEnumerator - can be deleted immediately ater construction.
stepCount Count of radiosity computation steps.
formFactorTreshold Pair of patches with smaller form factor than formFactorTreshold will be ignored.
maxCacheSize Maximum size of patch cache (in bytes).
Note:
Maximum cache size is raw size (estimated). The real cache size can be greater.

RadiosityRenderer::~RadiosityRenderer (  ) 


Member Function Documentation

virtual int RadiosityRenderer::stepCount (  )  const [virtual]

Return total count of radiosity computation steps.

Implements ProgressSubjectMultiStep.

virtual int RadiosityRenderer::currentStep (  )  const [virtual]

Return number of current step - always in range <0, stepCount()-1>.

Implements ProgressSubjectMultiStep.

virtual int RadiosityRenderer::patchCount (  )  const [virtual]

Return total count of patches maintained by RadiosityRenderer.

Implements ProgressSubjectMultiStep.

virtual int RadiosityRenderer::currentPatch (  )  const [virtual]

Return number of current patch computed by RadiosityRenderer - always in range <0, patchCount()-1>.

Implements ProgressSubjectMultiStep.

void RadiosityRenderer::compute (  ) 

Initiate radiosity rendering progress.

void RadiosityRenderer::normalize (  ) 

Optional color normalization.

Attention:
This method can't be called before compute()!

long int RadiosityRenderer::cacheRawSize (  )  const

Return current patch cache size. Return current patch cache size.

Note:
This is raw size (estimated). The real cache size can be greater.
.

virtual void ProgressSubjectMultiStep::attach ( ProgressObserverMultiStep observer,
int  perStepFreq 
) [virtual, inherited]

Attach observer to subject.

Parameters:
observer Observer to attach.
perStepFreq Frequency of callback during step.

virtual void ProgressSubjectMultiStep::detach ( ProgressObserverMultiStep observer  )  [virtual, inherited]

Detach observer from subject.

Parameters:
observer Observer to detach.

void ProgressSubjectMultiStep::notifyStep (  )  [protected, inherited]

Subject's notification about starting new step.

void ProgressSubjectMultiStep::notifyPerStepProgress (  )  [protected, inherited]

Subject's notification about progress.

Note:
This method should be called with enough frequency to acomplish observer's request.


The documentation for this class was generated from the following file:
Generated on Thu Dec 6 19:33:12 2007 for Radiosity Renderer and Visualizer by  doxygen 1.5.2