#include <lowdiscrepancy.h>
Public Member Functions | |
LDSampler (int xstart, int xend, int ystart, int yend, int nsamp, float sopen, float sclose) | |
~LDSampler () | |
Sampler * | GetSubSampler (int num, int count) |
int | RoundSize (int size) const |
int | GetMoreSamples (Sample *sample, RNG &rng) |
int | MaximumSampleCount () |
Private Attributes | |
int | xPos |
int | yPos |
int | nPixelSamples |
float * | sampleBuf |
Definition at line 38 of file lowdiscrepancy.h.
LDSampler::LDSampler | ( | int | xstart, | |
int | xend, | |||
int | ystart, | |||
int | yend, | |||
int | nsamp, | |||
float | sopen, | |||
float | sclose | |||
) |
Definition at line 32 of file lowdiscrepancy.cpp.
References IsPowerOf2(), nPixelSamples, RoundUpPow2(), sampleBuf, Warning(), Sampler::xPixelStart, xPos, Sampler::yPixelStart, and yPos.
Referenced by GetSubSampler().
LDSampler::~LDSampler | ( | ) |
Definition at line 46 of file lowdiscrepancy.cpp.
References sampleBuf.
Implements Sampler.
Definition at line 59 of file lowdiscrepancy.cpp.
References LDPixelSample(), LDPixelSampleFloatsNeeded(), nPixelSamples, sampleBuf, Sampler::shutterClose, Sampler::shutterOpen, Sampler::xPixelEnd, Sampler::xPixelStart, xPos, Sampler::yPixelEnd, and yPos.
Sampler * LDSampler::GetSubSampler | ( | int | num, | |
int | count | |||
) | [virtual] |
Implements Sampler.
Definition at line 51 of file lowdiscrepancy.cpp.
References Sampler::ComputeSubWindow(), LDSampler(), nPixelSamples, Sampler::shutterClose, and Sampler::shutterOpen.
int LDSampler::MaximumSampleCount | ( | ) | [inline, virtual] |
int LDSampler::RoundSize | ( | int | size | ) | const [inline, virtual] |
int LDSampler::nPixelSamples [private] |
Definition at line 50 of file lowdiscrepancy.h.
Referenced by GetMoreSamples(), GetSubSampler(), LDSampler(), and MaximumSampleCount().
float* LDSampler::sampleBuf [private] |
Definition at line 51 of file lowdiscrepancy.h.
Referenced by GetMoreSamples(), LDSampler(), and ~LDSampler().
int LDSampler::xPos [private] |
Definition at line 50 of file lowdiscrepancy.h.
Referenced by GetMoreSamples(), and LDSampler().
int LDSampler::yPos [private] |
Definition at line 50 of file lowdiscrepancy.h.
Referenced by GetMoreSamples(), and LDSampler().