ProgressSubjectMultiStep Class Reference

Observer's subject. Design pattern observer. More...

#include <ProgressSubjectMultiStep.h>

Inheritance diagram for ProgressSubjectMultiStep:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~ProgressSubjectMultiStep ()
virtual void attach (ProgressObserverMultiStep *observer, int perStepFreq)
 Attach observer to subject.
virtual void detach (ProgressObserverMultiStep *observer)
 Detach observer from subject.
virtual int stepCount () const=0
 Return total count of steps.
virtual int currentStep () const=0
 Return number of current step - always in range <0, stepCount()-1>.
virtual int patchCount () const=0
 Return total count of patches.
virtual int currentPatch () const=0
 Return number of current patch - always in range <0, patchCount()-1>.

Protected Member Functions

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

Friends

class ObserverFinder

Classes

struct  TItem

Detailed Description

Observer's subject. Design pattern observer.

Definition at line 18 of file ProgressSubjectMultiStep.h.


Constructor & Destructor Documentation

virtual ProgressSubjectMultiStep::~ProgressSubjectMultiStep (  )  [inline, virtual]

Definition at line 21 of file ProgressSubjectMultiStep.h.


Member Function Documentation

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

Attach observer to subject.

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

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

Detach observer from subject.

Parameters:
observer Observer to detach.

virtual int ProgressSubjectMultiStep::stepCount (  )  const [pure virtual]

Return total count of steps.

Implemented in RadiosityRenderer.

virtual int ProgressSubjectMultiStep::currentStep (  )  const [pure virtual]

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

Implemented in RadiosityRenderer.

virtual int ProgressSubjectMultiStep::patchCount (  )  const [pure virtual]

Return total count of patches.

Implemented in RadiosityRenderer.

virtual int ProgressSubjectMultiStep::currentPatch (  )  const [pure virtual]

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

Implemented in RadiosityRenderer.

void ProgressSubjectMultiStep::notifyStep (  )  [protected]

Subject's notification about starting new step.

void ProgressSubjectMultiStep::notifyPerStepProgress (  )  [protected]

Subject's notification about progress.

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


Friends And Related Function Documentation

friend class ObserverFinder [friend]

Definition at line 78 of file ProgressSubjectMultiStep.h.


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