#include <sampler.h>
Public Member Functions | |
| virtual | ~Sampler () |
| Sampler (int xstart, int xend, int ystart, int yend, int spp, float sopen, float sclose) | |
| virtual int | GetMoreSamples (Sample *sample, RNG &rng)=0 |
| virtual int | MaximumSampleCount ()=0 |
| virtual bool | ReportResults (Sample *samples, const RayDifferential *rays, const Spectrum *Ls, const Intersection *isects, int count) |
| virtual Sampler * | GetSubSampler (int num, int count)=0 |
| virtual int | RoundSize (int size) const =0 |
Public Attributes | |
| const int | xPixelStart |
| const int | xPixelEnd |
| const int | yPixelStart |
| const int | yPixelEnd |
| const int | samplesPerPixel |
| const float | shutterOpen |
| const float | shutterClose |
Protected Member Functions | |
| void | ComputeSubWindow (int num, int count, int *xstart, int *xend, int *ystart, int *yend) const |
Definition at line 38 of file sampler.h.
| Sampler::~Sampler | ( | ) | [virtual] |
Definition at line 32 of file sampler.cpp.
| Sampler::Sampler | ( | int | xstart, | |
| int | xend, | |||
| int | ystart, | |||
| int | yend, | |||
| int | spp, | |||
| float | sopen, | |||
| float | sclose | |||
| ) |
Definition at line 36 of file sampler.cpp.
| void Sampler::ComputeSubWindow | ( | int | num, | |
| int | count, | |||
| int * | xstart, | |||
| int * | xend, | |||
| int * | ystart, | |||
| int * | yend | |||
| ) | const [protected] |
Definition at line 47 of file sampler.cpp.
References Assert, Floor2Int(), Lerp(), xPixelEnd, xPixelStart, yPixelEnd, and yPixelStart.
Referenced by StratifiedSampler::GetSubSampler(), RandomSampler::GetSubSampler(), LDSampler::GetSubSampler(), HaltonSampler::GetSubSampler(), BestCandidateSampler::GetSubSampler(), and AdaptiveSampler::GetSubSampler().
Implemented in AdaptiveSampler, BestCandidateSampler, HaltonSampler, LDSampler, RandomSampler, and StratifiedSampler.
Referenced by SamplerRendererTask::Run(), and IrradiancePrimeTask::Run().
| virtual Sampler* Sampler::GetSubSampler | ( | int | num, | |
| int | count | |||
| ) | [pure virtual] |
Implemented in AdaptiveSampler, BestCandidateSampler, HaltonSampler, LDSampler, RandomSampler, and StratifiedSampler.
Referenced by IrradiancePrimeTask::IrradiancePrimeTask(), and SamplerRendererTask::Run().
| virtual int Sampler::MaximumSampleCount | ( | ) | [pure virtual] |
Implemented in AdaptiveSampler, BestCandidateSampler, HaltonSampler, LDSampler, RandomSampler, and StratifiedSampler.
Referenced by SamplerRendererTask::Run(), and IrradiancePrimeTask::Run().
| bool Sampler::ReportResults | ( | Sample * | samples, | |
| const RayDifferential * | rays, | |||
| const Spectrum * | Ls, | |||
| const Intersection * | isects, | |||
| int | count | |||
| ) | [virtual] |
Reimplemented in AdaptiveSampler.
Definition at line 41 of file sampler.cpp.
Referenced by SamplerRendererTask::Run().
| virtual int Sampler::RoundSize | ( | int | size | ) | const [pure virtual] |
Implemented in AdaptiveSampler, BestCandidateSampler, HaltonSampler, LDSampler, RandomSampler, and StratifiedSampler.
Referenced by UseRadianceProbes::RequestSamples(), PhotonIntegrator::RequestSamples(), IrradianceCacheIntegrator::RequestSamples(), IGIIntegrator::RequestSamples(), DirectLightingIntegrator::RequestSamples(), and DipoleSubsurfaceIntegrator::RequestSamples().
| const int Sampler::samplesPerPixel |
Definition at line 53 of file sampler.h.
Referenced by HaltonSampler::GetSubSampler(), BestCandidateSampler::GetSubSampler(), HaltonSampler::HaltonSampler(), and SamplerRendererTask::Run().
| const float Sampler::shutterClose |
Definition at line 54 of file sampler.h.
Referenced by StratifiedSampler::GetMoreSamples(), RandomSampler::GetMoreSamples(), LDSampler::GetMoreSamples(), HaltonSampler::GetMoreSamples(), BestCandidateSampler::GetMoreSamples(), AdaptiveSampler::GetMoreSamples(), StratifiedSampler::GetSubSampler(), RandomSampler::GetSubSampler(), LDSampler::GetSubSampler(), HaltonSampler::GetSubSampler(), BestCandidateSampler::GetSubSampler(), and AdaptiveSampler::GetSubSampler().
| const float Sampler::shutterOpen |
Definition at line 54 of file sampler.h.
Referenced by StratifiedSampler::GetMoreSamples(), RandomSampler::GetMoreSamples(), LDSampler::GetMoreSamples(), HaltonSampler::GetMoreSamples(), BestCandidateSampler::GetMoreSamples(), AdaptiveSampler::GetMoreSamples(), StratifiedSampler::GetSubSampler(), RandomSampler::GetSubSampler(), LDSampler::GetSubSampler(), HaltonSampler::GetSubSampler(), BestCandidateSampler::GetSubSampler(), and AdaptiveSampler::GetSubSampler().
| const int Sampler::xPixelEnd |
Definition at line 52 of file sampler.h.
Referenced by ComputeSubWindow(), StratifiedSampler::GetMoreSamples(), RandomSampler::GetMoreSamples(), LDSampler::GetMoreSamples(), HaltonSampler::GetMoreSamples(), BestCandidateSampler::GetMoreSamples(), HaltonSampler::HaltonSampler(), AdaptiveSampler::ReportResults(), and SamplerRendererTask::Run().
| const int Sampler::xPixelStart |
Definition at line 52 of file sampler.h.
Referenced by AdaptiveSampler::AdaptiveSampler(), ComputeSubWindow(), StratifiedSampler::GetMoreSamples(), RandomSampler::GetMoreSamples(), LDSampler::GetMoreSamples(), HaltonSampler::GetMoreSamples(), BestCandidateSampler::GetMoreSamples(), HaltonSampler::HaltonSampler(), LDSampler::LDSampler(), RandomSampler::RandomSampler(), AdaptiveSampler::ReportResults(), SamplerRendererTask::Run(), and StratifiedSampler::StratifiedSampler().
| const int Sampler::yPixelEnd |
Definition at line 52 of file sampler.h.
Referenced by ComputeSubWindow(), StratifiedSampler::GetMoreSamples(), RandomSampler::GetMoreSamples(), LDSampler::GetMoreSamples(), HaltonSampler::GetMoreSamples(), BestCandidateSampler::GetMoreSamples(), AdaptiveSampler::GetMoreSamples(), HaltonSampler::HaltonSampler(), and SamplerRendererTask::Run().
| const int Sampler::yPixelStart |
Definition at line 52 of file sampler.h.
Referenced by AdaptiveSampler::AdaptiveSampler(), ComputeSubWindow(), RandomSampler::GetMoreSamples(), HaltonSampler::GetMoreSamples(), BestCandidateSampler::GetMoreSamples(), HaltonSampler::HaltonSampler(), LDSampler::LDSampler(), RandomSampler::RandomSampler(), SamplerRendererTask::Run(), and StratifiedSampler::StratifiedSampler().
1.6.3