#include <bestcandidate.h>
Public Member Functions | |
BestCandidateSampler (int xstart, int xend, int ystart, int yend, int nPixelSamples, float sopen, float sclose) | |
Sampler * | GetSubSampler (int num, int count) |
int | RoundSize (int size) const |
int | MaximumSampleCount () |
int | GetMoreSamples (Sample *sample, RNG &rng) |
Private Attributes | |
float | tableWidth |
int | tableOffset |
int | xTileStart |
int | xTileEnd |
int | yTileStart |
int | yTileEnd |
int | xTile |
int | yTile |
float | sampleOffsets [3] |
Static Private Attributes | |
static const float | sampleTable [SAMPLE_TABLE_SIZE][5] |
Definition at line 42 of file bestcandidate.h.
BestCandidateSampler::BestCandidateSampler | ( | int | xstart, | |
int | xend, | |||
int | ystart, | |||
int | yend, | |||
int | nPixelSamples, | |||
float | sopen, | |||
float | sclose | |||
) | [inline] |
Definition at line 45 of file bestcandidate.h.
References Floor2Int(), RNG::RandomFloat(), sampleOffsets, SQRT_SAMPLE_TABLE_SIZE, tableOffset, tableWidth, xTile, xTileEnd, xTileStart, yTile, yTileEnd, and yTileStart.
Referenced by GetSubSampler().
Implements Sampler.
Definition at line 42 of file bestcandidate.cpp.
References CameraSample::imageX, CameraSample::imageY, LDShuffleScrambled1D(), LDShuffleScrambled2D(), CameraSample::lensU, CameraSample::lensV, Lerp(), Sample::n1D, Sample::n2D, Sample::oneD, RNG::RandomFloat(), SAMPLE_TABLE_SIZE, sampleOffsets, sampleTable, Sampler::shutterClose, Sampler::shutterOpen, tableOffset, tableWidth, CameraSample::time, Sample::twoD, WRAP, Sampler::xPixelEnd, Sampler::xPixelStart, xTile, xTileEnd, xTileStart, Sampler::yPixelEnd, Sampler::yPixelStart, yTile, and yTileEnd.
Sampler * BestCandidateSampler::GetSubSampler | ( | int | num, | |
int | count | |||
) | [virtual] |
Implements Sampler.
Definition at line 33 of file bestcandidate.cpp.
References BestCandidateSampler(), Sampler::ComputeSubWindow(), Sampler::samplesPerPixel, Sampler::shutterClose, and Sampler::shutterOpen.
int BestCandidateSampler::MaximumSampleCount | ( | ) | [inline, virtual] |
Implements Sampler.
Definition at line 66 of file bestcandidate.h.
int BestCandidateSampler::RoundSize | ( | int | size | ) | const [inline, virtual] |
float BestCandidateSampler::sampleOffsets[3] [private] |
Definition at line 75 of file bestcandidate.h.
Referenced by BestCandidateSampler(), and GetMoreSamples().
const float BestCandidateSampler::sampleTable[SAMPLE_TABLE_SIZE][5] [static, private] |
Definition at line 74 of file bestcandidate.h.
Referenced by GetMoreSamples().
int BestCandidateSampler::tableOffset [private] |
Definition at line 71 of file bestcandidate.h.
Referenced by BestCandidateSampler(), and GetMoreSamples().
float BestCandidateSampler::tableWidth [private] |
Definition at line 70 of file bestcandidate.h.
Referenced by BestCandidateSampler(), and GetMoreSamples().
int BestCandidateSampler::xTile [private] |
Definition at line 73 of file bestcandidate.h.
Referenced by BestCandidateSampler(), and GetMoreSamples().
int BestCandidateSampler::xTileEnd [private] |
Definition at line 72 of file bestcandidate.h.
Referenced by BestCandidateSampler(), and GetMoreSamples().
int BestCandidateSampler::xTileStart [private] |
Definition at line 72 of file bestcandidate.h.
Referenced by BestCandidateSampler(), and GetMoreSamples().
int BestCandidateSampler::yTile [private] |
Definition at line 73 of file bestcandidate.h.
Referenced by BestCandidateSampler(), and GetMoreSamples().
int BestCandidateSampler::yTileEnd [private] |
Definition at line 72 of file bestcandidate.h.
Referenced by BestCandidateSampler(), and GetMoreSamples().
int BestCandidateSampler::yTileStart [private] |
Definition at line 72 of file bestcandidate.h.
Referenced by BestCandidateSampler().