lux::RandomSampler Class Reference

#include <random.h>

Inheritance diagram for lux::RandomSampler:
[legend]
Collaboration diagram for lux::RandomSampler:
[legend]

List of all members.

Public Member Functions

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

Static Public Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 31 of file random.h.


Constructor & Destructor Documentation

RandomSampler::RandomSampler ( int  xstart,
int  xend,
int  ystart,
int  yend,
int  ps,
string  pixelsampler 
)
RandomSampler::~RandomSampler (  )  [virtual]

Definition at line 79 of file random.cpp.

References lux::FreeAligned(), and imageSamples.


Member Function Documentation

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

Implements lux::Sampler.

Definition at line 38 of file random.cpp.

References RandomSampler().

Sampler * RandomSampler::CreateSampler ( const ParamSet params,
const Film film 
) [static]
virtual void lux::RandomSampler::GetBufferType ( BufferType type  )  [inline, virtual]

Reimplemented from lux::Sampler.

Definition at line 45 of file random.h.

References lux::BUF_TYPE_PER_PIXEL.

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

Implements lux::Sampler.

Definition at line 85 of file random.cpp.

References TotalPixels.

virtual 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 53 of file random.h.

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

bool lux::RandomSampler::init [private]

Definition at line 58 of file random.h.

Referenced by GetNextSample(), and RandomSampler().

Definition at line 51 of file random.h.

Definition at line 53 of file random.h.

Referenced by GetNextSample(), and RandomSampler().

Definition at line 57 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 GetNextSample(), and RandomSampler().

Definition at line 53 of file random.h.

Referenced by GetNextSample(), and RandomSampler().

Definition at line 53 of file random.h.

Referenced by GetNextSample(), and RandomSampler().

Definition at line 56 of file random.h.

Referenced by GetTotalSamplePos(), and RandomSampler().

Definition at line 53 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().


The documentation for this class was generated from the following files:
Generated by  doxygen 1.6.2-20100208