lux::RandomSampler Class Reference

#include <random.h>

Inheritance diagram for lux::RandomSampler:

lux::Sampler

List of all members.

Public Member Functions

 RandomSampler (int xstart, int xend, int ystart, int yend, int xs, int ys, string pixelsampler)
 ~RandomSampler ()
u_int GetTotalSamplePos ()
bool GetNextSample (Sample *sample, u_int *use_pos)
float * GetLazyValues (Sample *sample, u_int num, u_int pos)
int RoundSize (int sz) const
virtual RandomSamplerclone () const

Static Public Member Functions

static SamplerCreateSampler (const ParamSet &params, const Film *film)

Private Attributes

bool jitterSamples
int xPos
int yPos
int xPixelSamples
int yPixelSamples
float * imageSamples
float * lensSamples
float * timeSamples
float * wavelengthsSamples
float * singleWavelengthSamples
int samplePos
u_int TotalPixels
PixelSamplerpixelSampler


Detailed Description

Definition at line 31 of file random.h.


Constructor & Destructor Documentation

RandomSampler::RandomSampler ( int  xstart,
int  xend,
int  ystart,
int  yend,
int  xs,
int  ys,
string  pixelsampler 
)

RandomSampler::~RandomSampler (  ) 

Definition at line 73 of file random.cpp.

References lux::FreeAligned(), and imageSamples.


Member Function Documentation

RandomSampler * RandomSampler::clone (  )  const [virtual]

Implements lux::Sampler.

Definition at line 34 of file random.cpp.

References RandomSampler().

Sampler * RandomSampler::CreateSampler ( const ParamSet params,
const Film film 
) [static]

float * RandomSampler::GetLazyValues ( Sample sample,
u_int  num,
u_int  pos 
) [virtual]

Reimplemented from lux::Sampler.

Definition at line 140 of file random.cpp.

References lux::Sample::dxD, lux::random::floatValue(), and lux::Sample::xD.

bool RandomSampler::GetNextSample ( Sample sample,
u_int use_pos 
) [virtual]

u_int RandomSampler::GetTotalSamplePos (  )  [virtual]

Implements lux::Sampler.

Definition at line 79 of file random.cpp.

References TotalPixels.

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

Implements lux::Sampler.

Definition at line 41 of file random.h.


Member Data Documentation

Definition at line 52 of file random.h.

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

Definition at line 50 of file random.h.

Definition at line 52 of file random.h.

Referenced by GetNextSample(), and RandomSampler().

Definition at line 56 of file random.h.

Referenced by GetNextSample(), and RandomSampler().

Definition at line 54 of file random.h.

Referenced by GetNextSample(), and RandomSampler().

Definition at line 52 of file random.h.

Referenced by GetNextSample(), and RandomSampler().

Definition at line 52 of file random.h.

Referenced by GetNextSample(), and RandomSampler().

Definition at line 55 of file random.h.

Referenced by GetTotalSamplePos(), and RandomSampler().

Definition at line 52 of file random.h.

Referenced by GetNextSample(), and RandomSampler().

Definition at line 51 of file random.h.

Referenced by GetNextSample(), and RandomSampler().

int lux::RandomSampler::xPos [private]

Definition at line 51 of file random.h.

Referenced by GetNextSample(), and RandomSampler().

Definition at line 51 of file random.h.

Referenced by GetNextSample(), and RandomSampler().

int lux::RandomSampler::yPos [private]

Definition at line 51 of file random.h.

Referenced by GetNextSample(), and RandomSampler().


The documentation for this class was generated from the following files:

Generated on Mon May 18 07:14:54 2009 for lux by  doxygen 1.5.7.1