#include <random.h>
Public Member Functions | |
| RandomSampler (int xstart, int xend, int ystart, int yend, int ns, float sopen, float sclose) | |
| ~RandomSampler () | |
| int | MaximumSampleCount () |
| int | GetMoreSamples (Sample *sample, RNG &rng) |
| int | RoundSize (int sz) const |
| Sampler * | GetSubSampler (int num, int count) |
Private Attributes | |
| bool | jitterSamples |
| int | xPos |
| int | yPos |
| int | nSamples |
| float * | imageSamples |
| float * | lensSamples |
| float * | timeSamples |
| int | samplePos |
Definition at line 35 of file random.h.
| RandomSampler::RandomSampler | ( | int | xstart, | |
| int | xend, | |||
| int | ystart, | |||
| int | yend, | |||
| int | ns, | |||
| float | sopen, | |||
| float | sclose | |||
| ) |
Definition at line 31 of file random.cpp.
References imageSamples, lensSamples, nSamples, RNG::RandomFloat(), rng, samplePos, timeSamples, Sampler::xPixelStart, xPos, Sampler::yPixelStart, and yPos.
Referenced by GetSubSampler().
| RandomSampler::~RandomSampler | ( | ) | [inline] |
Definition at line 39 of file random.h.
References FreeAligned(), and imageSamples.
Implements Sampler.
Definition at line 66 of file random.cpp.
References imageSamples, CameraSample::imageX, CameraSample::imageY, lensSamples, CameraSample::lensU, CameraSample::lensV, Lerp(), Sample::n1D, Sample::n2D, nSamples, Sample::oneD, RNG::RandomFloat(), samplePos, Sampler::shutterClose, Sampler::shutterOpen, CameraSample::time, timeSamples, Sample::twoD, Sampler::xPixelEnd, Sampler::xPixelStart, xPos, Sampler::yPixelEnd, Sampler::yPixelStart, and yPos.
| Sampler * RandomSampler::GetSubSampler | ( | int | num, | |
| int | count | |||
| ) | [virtual] |
Implements Sampler.
Definition at line 56 of file random.cpp.
References Sampler::ComputeSubWindow(), nSamples, RandomSampler(), Sampler::shutterClose, and Sampler::shutterOpen.
| int RandomSampler::MaximumSampleCount | ( | ) | [inline, virtual] |
| int RandomSampler::RoundSize | ( | int | sz | ) | const [inline, virtual] |
float* RandomSampler::imageSamples [private] |
Definition at line 50 of file random.h.
Referenced by GetMoreSamples(), RandomSampler(), and ~RandomSampler().
bool RandomSampler::jitterSamples [private] |
float * RandomSampler::lensSamples [private] |
Definition at line 50 of file random.h.
Referenced by GetMoreSamples(), and RandomSampler().
int RandomSampler::nSamples [private] |
Definition at line 49 of file random.h.
Referenced by GetMoreSamples(), GetSubSampler(), and RandomSampler().
int RandomSampler::samplePos [private] |
Definition at line 51 of file random.h.
Referenced by GetMoreSamples(), and RandomSampler().
float * RandomSampler::timeSamples [private] |
Definition at line 50 of file random.h.
Referenced by GetMoreSamples(), and RandomSampler().
int RandomSampler::xPos [private] |
Definition at line 49 of file random.h.
Referenced by GetMoreSamples(), and RandomSampler().
int RandomSampler::yPos [private] |
Definition at line 49 of file random.h.
Referenced by GetMoreSamples(), and RandomSampler().
1.6.3