#include <sampling.h>
Public Member Functions | |
virtual | ~Sampler () |
Sampler (int xstart, int xend, int ystart, int yend, int spp) | |
virtual bool | GetNextSample (Sample *sample)=0 |
int | TotalSamples () const |
virtual int | RoundSize (int size) const =0 |
Public Attributes | |
int | xPixelStart |
int | xPixelEnd |
int | yPixelStart |
int | yPixelEnd |
int | samplesPerPixel |
Definition at line 30 of file sampling.h.
Sampler::~Sampler | ( | ) | [virtual] |
Definition at line 30 of file sampling.cpp.
Sampler::Sampler | ( | int | xstart, | |
int | xend, | |||
int | ystart, | |||
int | yend, | |||
int | spp | |||
) |
Definition at line 32 of file sampling.cpp.
References samplesPerPixel, xPixelEnd, xPixelStart, yPixelEnd, and yPixelStart.
virtual bool Sampler::GetNextSample | ( | Sample * | sample | ) | [pure virtual] |
Implemented in BestCandidateSampler, LDSampler, RandomSampler, and StratifiedSampler.
Referenced by Scene::Render().
int Sampler::TotalSamples | ( | ) | const [inline] |
virtual int Sampler::RoundSize | ( | int | size | ) | const [pure virtual] |
Definition at line 45 of file sampling.h.
Referenced by BestCandidateSampler::BestCandidateSampler(), StratifiedSampler::GetNextSample(), RandomSampler::GetNextSample(), LDSampler::GetNextSample(), BestCandidateSampler::GetNextSample(), LDSampler::LDSampler(), RandomSampler::RandomSampler(), Sampler(), and StratifiedSampler::StratifiedSampler().
Definition at line 45 of file sampling.h.
Referenced by StratifiedSampler::GetNextSample(), RandomSampler::GetNextSample(), LDSampler::GetNextSample(), BestCandidateSampler::GetNextSample(), and Sampler().
Definition at line 45 of file sampling.h.
Referenced by BestCandidateSampler::BestCandidateSampler(), BestCandidateSampler::GetNextSample(), LDSampler::LDSampler(), RandomSampler::RandomSampler(), Sampler(), and StratifiedSampler::StratifiedSampler().
Definition at line 45 of file sampling.h.
Referenced by StratifiedSampler::GetNextSample(), RandomSampler::GetNextSample(), LDSampler::GetNextSample(), BestCandidateSampler::GetNextSample(), and Sampler().