#include <RadiosityRenderer.h>
Inheritance diagram for RadiosityRenderer:


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.
| |
| 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. | |
Definition at line 21 of file RadiosityRenderer.h.
| RadiosityRenderer::RadiosityRenderer | ( | PatchSequenceEnumerator * | patchEnumerator, | |
| int | stepCount, | |||
| float | formFactorTreshold, | |||
| long | maxCacheSize | |||
| ) |
| 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). |
| RadiosityRenderer::~RadiosityRenderer | ( | ) |
| virtual int RadiosityRenderer::stepCount | ( | ) | const [virtual] |
| 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] |
| 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 | ( | ) |
| long int RadiosityRenderer::cacheRawSize | ( | ) | const |
Return current patch cache size. Return current patch cache size.
| virtual void ProgressSubjectMultiStep::attach | ( | ProgressObserverMultiStep * | observer, | |
| int | perStepFreq | |||
| ) | [virtual, inherited] |
Attach observer to subject.
| observer | Observer to attach. | |
| perStepFreq | Frequency of callback during step. |
| virtual void ProgressSubjectMultiStep::detach | ( | ProgressObserverMultiStep * | observer | ) | [virtual, inherited] |
Detach observer from subject.
| 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.
1.5.2