#include <halton.h>
Public Member Functions | |
HaltonSampler (int xs, int xe, int ys, int ye, int ps, float sopen, float sclose) | |
int | MaximumSampleCount () |
int | GetMoreSamples (Sample *sample, RNG &rng) |
Sampler * | GetSubSampler (int num, int count) |
int | RoundSize (int size) const |
Private Attributes | |
int | wantedSamples |
int | currentSample |
Definition at line 36 of file halton.h.
HaltonSampler::HaltonSampler | ( | int | xs, | |
int | xe, | |||
int | ys, | |||
int | ye, | |||
int | ps, | |||
float | sopen, | |||
float | sclose | |||
) |
Definition at line 42 of file halton.cpp.
References currentSample, Sampler::samplesPerPixel, wantedSamples, Sampler::xPixelEnd, Sampler::xPixelStart, Sampler::yPixelEnd, and Sampler::yPixelStart.
Referenced by GetSubSampler().
Implements Sampler.
Definition at line 52 of file halton.cpp.
References currentSample, CameraSample::imageX, CameraSample::imageY, LatinHypercube(), CameraSample::lensU, CameraSample::lensV, Lerp(), Sample::n1D, Sample::n2D, Sample::oneD, RadicalInverse(), Sampler::shutterClose, Sampler::shutterOpen, CameraSample::time, Sample::twoD, wantedSamples, Sampler::xPixelEnd, Sampler::xPixelStart, Sampler::yPixelEnd, and Sampler::yPixelStart.
Sampler * HaltonSampler::GetSubSampler | ( | int | num, | |
int | count | |||
) | [virtual] |
Implements Sampler.
Definition at line 33 of file halton.cpp.
References Sampler::ComputeSubWindow(), HaltonSampler(), Sampler::samplesPerPixel, Sampler::shutterClose, and Sampler::shutterOpen.
int HaltonSampler::MaximumSampleCount | ( | ) | [inline, virtual] |
int HaltonSampler::RoundSize | ( | int | size | ) | const [inline, virtual] |
int HaltonSampler::currentSample [private] |
Definition at line 46 of file halton.h.
Referenced by GetMoreSamples(), and HaltonSampler().
int HaltonSampler::wantedSamples [private] |
Definition at line 46 of file halton.h.
Referenced by GetMoreSamples(), and HaltonSampler().