lux::Sampler Class Reference

#include <sampling.h>

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

List of all members.

Public Member Functions

virtual ~Sampler ()
 Sampler (int xstart, int xend, int ystart, int yend, int spp)
virtual bool GetNextSample (Sample *sample, u_int *use_pos)=0
virtual float * GetLazyValues (Sample *sample, u_int num, u_int pos)
virtual u_int GetTotalSamplePos ()=0
int TotalSamples () const
virtual int RoundSize (int size) const =0
void SetFilm (Film *f)
virtual void GetBufferType (BufferType *t)
virtual void AddSample (const Sample &sample)
virtual Samplerclone () const =0
virtual bool IsMutating ()
void SetContributionPool (ContributionPool *p)
void Cleanup ()
void SetTsPack (TsPack *t)

Public Attributes

TsPacktspack
int xPixelStart
int xPixelEnd
int yPixelStart
int yPixelEnd
int samplesPerPixel
Filmfilm
ContributionPoolcontribPool
ContributionBuffercontribBuffer

Detailed Description

Definition at line 106 of file sampling.h.


Constructor & Destructor Documentation

virtual lux::Sampler::~Sampler (  )  [inline, virtual]

Definition at line 109 of file sampling.h.

Sampler::Sampler ( int  xstart,
int  xend,
int  ystart,
int  yend,
int  spp 
)

Definition at line 34 of file sampling.cpp.

References samplesPerPixel, xPixelEnd, xPixelStart, yPixelEnd, and yPixelStart.


Member Function Documentation

void Sampler::AddSample ( const Sample sample  )  [virtual]
void lux::Sampler::Cleanup (  )  [inline]

Definition at line 127 of file sampling.h.

References contribBuffer, contribPool, and lux::ContributionPool::End().

Referenced by lux::RenderThread::render().

virtual Sampler* lux::Sampler::clone (  )  const [pure virtual]
virtual void lux::Sampler::GetBufferType ( BufferType t  )  [inline, virtual]
float * Sampler::GetLazyValues ( Sample sample,
u_int  num,
u_int  pos 
) [virtual]
virtual bool lux::Sampler::GetNextSample ( Sample sample,
u_int use_pos 
) [pure virtual]
virtual u_int lux::Sampler::GetTotalSamplePos (  )  [pure virtual]
virtual bool lux::Sampler::IsMutating (  )  [inline, virtual]
virtual int lux::Sampler::RoundSize ( int  size  )  const [pure virtual]
void lux::Sampler::SetContributionPool ( ContributionPool p  )  [inline]

Definition at line 125 of file sampling.h.

References contribPool.

Referenced by lux::Scene::Render().

void lux::Sampler::SetFilm ( Film f  )  [inline]

Definition at line 118 of file sampling.h.

References film.

Referenced by initERPT(), and lux::Scene::Render().

void lux::Sampler::SetTsPack ( TsPack t  )  [inline]

Definition at line 132 of file sampling.h.

References tspack.

Referenced by initERPT(), lux::Scene::Render(), and lux::RenderThread::render().

int lux::Sampler::TotalSamples (  )  const [inline]

Definition at line 114 of file sampling.h.

References samplesPerPixel, xPixelEnd, xPixelStart, yPixelEnd, and yPixelStart.


Member Data Documentation

Definition at line 139 of file sampling.h.

Referenced by Cleanup(), and SetContributionPool().

Definition at line 137 of file sampling.h.

Referenced by Sampler(), and TotalSamples().


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