
Public Member Functions | |
| RandomSampler (int xstart, int xend, int ystart, int yend, int xs, int ys) | |
| ~RandomSampler () | |
| bool | GetNextSample (Sample *sample) |
| int | RoundSize (int sz) const |
Private Attributes | |
| bool | jitterSamples |
| int | xPos |
| int | yPos |
| int | xPixelSamples |
| int | yPixelSamples |
| float * | imageSamples |
| float * | lensSamples |
| float * | timeSamples |
| int | samplePos |
Definition at line 28 of file random.cpp.
| RandomSampler::RandomSampler | ( | int | xstart, | |
| int | xend, | |||
| int | ystart, | |||
| int | yend, | |||
| int | xs, | |||
| int | ys | |||
| ) |
Definition at line 45 of file random.cpp.
References AllocAligned(), imageSamples, lensSamples, RandomFloat(), samplePos, timeSamples, xPixelSamples, Sampler::xPixelStart, xPos, yPixelSamples, Sampler::yPixelStart, and yPos.
Referenced by CreateSampler().
| RandomSampler::~RandomSampler | ( | ) | [inline] |
| bool RandomSampler::GetNextSample | ( | Sample * | sample | ) | [virtual] |
Implements Sampler.
Definition at line 76 of file random.cpp.
References imageSamples, Sample::imageX, Sample::imageY, lensSamples, Sample::lensU, Sample::lensV, Sample::n1D, Sample::n2D, Sample::oneD, RandomFloat(), samplePos, Sample::time, timeSamples, Sample::twoD, Sampler::xPixelEnd, xPixelSamples, Sampler::xPixelStart, xPos, Sampler::yPixelEnd, yPixelSamples, and yPos.
| int RandomSampler::RoundSize | ( | int | sz | ) | const [inline, virtual] |
bool RandomSampler::jitterSamples [private] |
Definition at line 39 of file random.cpp.
int RandomSampler::xPos [private] |
int RandomSampler::yPos [private] |
int RandomSampler::xPixelSamples [private] |
int RandomSampler::yPixelSamples [private] |
float* RandomSampler::imageSamples [private] |
Definition at line 41 of file random.cpp.
Referenced by GetNextSample(), RandomSampler(), and ~RandomSampler().
float * RandomSampler::lensSamples [private] |
float * RandomSampler::timeSamples [private] |
int RandomSampler::samplePos [private] |
1.5.6