RandomSampler Class Reference

#include <random.h>

Inheritance diagram for RandomSampler:
Sampler

List of all members.

Public Member Functions

 RandomSampler (int xstart, int xend, int ystart, int yend, int ns, float sopen, float sclose)
 ~RandomSampler ()
int MaximumSampleCount ()
int GetMoreSamples (Sample *sample, RNG &rng)
int RoundSize (int sz) const
SamplerGetSubSampler (int num, int count)

Private Attributes

bool jitterSamples
int xPos
int yPos
int nSamples
float * imageSamples
float * lensSamples
float * timeSamples
int samplePos

Detailed Description

Definition at line 35 of file random.h.


Constructor & Destructor Documentation

RandomSampler::RandomSampler ( int  xstart,
int  xend,
int  ystart,
int  yend,
int  ns,
float  sopen,
float  sclose 
)
RandomSampler::~RandomSampler (  )  [inline]

Definition at line 39 of file random.h.

References FreeAligned(), and imageSamples.


Member Function Documentation

int RandomSampler::GetMoreSamples ( Sample sample,
RNG rng 
) [virtual]
Sampler * RandomSampler::GetSubSampler ( int  num,
int  count 
) [virtual]
int RandomSampler::MaximumSampleCount (  )  [inline, virtual]

Implements Sampler.

Definition at line 42 of file random.h.

int RandomSampler::RoundSize ( int  sz  )  const [inline, virtual]

Implements Sampler.

Definition at line 44 of file random.h.


Member Data Documentation

float* RandomSampler::imageSamples [private]

Definition at line 50 of file random.h.

Referenced by GetMoreSamples(), RandomSampler(), and ~RandomSampler().

Definition at line 48 of file random.h.

float * RandomSampler::lensSamples [private]

Definition at line 50 of file random.h.

Referenced by GetMoreSamples(), and RandomSampler().

int RandomSampler::nSamples [private]

Definition at line 49 of file random.h.

Referenced by GetMoreSamples(), GetSubSampler(), and RandomSampler().

int RandomSampler::samplePos [private]

Definition at line 51 of file random.h.

Referenced by GetMoreSamples(), and RandomSampler().

float * RandomSampler::timeSamples [private]

Definition at line 50 of file random.h.

Referenced by GetMoreSamples(), and RandomSampler().

int RandomSampler::xPos [private]

Definition at line 49 of file random.h.

Referenced by GetMoreSamples(), and RandomSampler().

int RandomSampler::yPos [private]

Definition at line 49 of file random.h.

Referenced by GetMoreSamples(), and RandomSampler().


The documentation for this class was generated from the following files:
Generated on Sat Aug 28 20:00:14 2010 for pbrt by  doxygen 1.6.3