Ri2DSamplePatternIterator

Cycle through each dimension of an RiSamplePattern

[ Math | Source | Search | Keywords | Summary | Ancestors | All Members | Descendants ]

Quick Index

DESCRIPTION
WARNINGS
PATTERNS

Class Summary

class Ri2DSamplePatternIterator
{
public:
// Constructors and assignment
Ri2DSamplePatternIterator(const RiSamplePattern &samples);
// Members
void NextSample();
RiVector2 GetNext();
protected:
}; // Ri2DSamplePatternIterator


DESCRIPTION

Cycle through each dimmension of an RiSamplePattern, this allows one level of an algorithm to increment the sample counter, and another to cycle through all pairs of dimensions of a particular sample. Currently it only seems useful to have the Iterator cycle through dimensions, but it is designed to cycle through samples as well. The creator of the Iterator can worry about hitting each sample no more than once if that is important.


WARNINGS

This is not a true iterator as it's interface consists of GetNext() which returns the next 2D point and advances, and NextSample() which shifts down to the next sample


PATTERNS

Iterator (modified for cycling behavior)


Ri2DSamplePatternIterator(const RiSamplePattern &samples);

Default Constructor

    Ri2DSamplePatternIterator(const RiSamplePattern &samples);

void NextSample();

Done with this sample, move on to the next one

    void	NextSample();

RiVector2 GetNext();

Get the next dimension of the current sample (and advance)

    RiVector2	GetNext();

All Members

public:
// Members
void NextSample();
RiVector2 GetNext();
protected:

Ancestors

Class does not inherit from any other class.


Descendants

Class is not inherited by any others.


Generated from source by the Cocoon utilities on Fri Feb 25 15:15:37 2000 .