lux::ERPTSampler Class Reference

#include <erpt.h>

Inheritance diagram for lux::ERPTSampler:

lux::Sampler

List of all members.

Public Member Functions

 ERPTSampler (int xStart, int xEnd, int yStart, int yEnd, int totMutations, float rng, int sw)
 ~ERPTSampler ()
virtual ERPTSamplerclone () const
u_int GetTotalSamplePos ()
int RoundSize (int size) const
bool GetNextSample (Sample *sample, u_int *use_pos)
float * GetLazyValues (Sample *sample, u_int num, u_int pos)
void AddSample (float imageX, float imageY, const Sample &sample, const Ray &ray, const XYZColor &L, float alpha, int id=0)
void AddSample (const Sample &sample)

Static Public Member Functions

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

Public Attributes

float LY
float gain
int normalSamples
int totalSamples
int totalTimes
int totalMutations
int chain
int numChains
int mutation
int consecRejects
int stamp
float range
float weight
float alpha
float * baseImage
float * sampleImage
int * timeImage
int * offset
vector< Sample::ContributionoldContributions
float * strataSamples
int strataWidth
int strataSqr
int currentStrata

Static Public Attributes

static int initCount
static int initSamples
static float meanIntensity = 0.f


Detailed Description

Definition at line 35 of file erpt.h.


Constructor & Destructor Documentation

ERPTSampler::ERPTSampler ( int  xStart,
int  xEnd,
int  yStart,
int  yEnd,
int  totMutations,
float  rng,
int  sw 
)

Definition at line 66 of file erpt.cpp.

References lux::AllocAligned(), currentStrata, strataSamples, and strataSqr.

Referenced by clone(), and CreateSampler().

ERPTSampler::~ERPTSampler (  ) 

Definition at line 80 of file erpt.cpp.

References baseImage, lux::FreeAligned(), sampleImage, and timeImage.


Member Function Documentation

void ERPTSampler::AddSample ( const Sample sample  )  [virtual]

void ERPTSampler::AddSample ( float  imageX,
float  imageY,
const Sample sample,
const Ray ray,
const XYZColor L,
float  alpha,
int  id = 0 
)

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

Implements lux::Sampler.

Definition at line 87 of file erpt.cpp.

References ERPTSampler(), sampleImage, and totalSamples.

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

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

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

u_int lux::ERPTSampler::GetTotalSamplePos (  )  [inline, virtual]

Implements lux::Sampler.

Definition at line 42 of file erpt.h.

int lux::ERPTSampler::RoundSize ( int  size  )  const [inline, virtual]

Implements lux::Sampler.

Definition at line 43 of file erpt.h.


Member Data Documentation

Definition at line 52 of file erpt.h.

Referenced by AddSample().

Definition at line 53 of file erpt.h.

Referenced by AddSample(), GetLazyValues(), GetNextSample(), initERPT(), and ~ERPTSampler().

Definition at line 51 of file erpt.h.

Referenced by AddSample(), and GetNextSample().

Definition at line 51 of file erpt.h.

Referenced by AddSample().

Definition at line 59 of file erpt.h.

Referenced by ERPTSampler(), and GetNextSample().

Definition at line 50 of file erpt.h.

Referenced by AddSample().

int ERPTSampler::initCount [static]

Definition at line 55 of file erpt.h.

Referenced by AddSample(), CreateSampler(), and GetNextSample().

Definition at line 55 of file erpt.h.

Referenced by AddSample(), CreateSampler(), and GetNextSample().

Definition at line 50 of file erpt.h.

Referenced by AddSample().

float ERPTSampler::meanIntensity = 0.f [static]

Definition at line 56 of file erpt.h.

Referenced by AddSample(), and CreateSampler().

Definition at line 51 of file erpt.h.

Referenced by AddSample(), and GetNextSample().

Definition at line 51 of file erpt.h.

Referenced by GetNextSample(), and initERPT().

Definition at line 51 of file erpt.h.

Referenced by AddSample().

Definition at line 54 of file erpt.h.

Referenced by GetLazyValues(), and initERPT().

Definition at line 57 of file erpt.h.

Referenced by AddSample().

Definition at line 52 of file erpt.h.

Referenced by CreateSampler(), and GetNextSample().

Definition at line 53 of file erpt.h.

Referenced by AddSample(), clone(), GetLazyValues(), GetNextSample(), initERPT(), and ~ERPTSampler().

Definition at line 51 of file erpt.h.

Referenced by AddSample(), and GetLazyValues().

Definition at line 58 of file erpt.h.

Referenced by ERPTSampler(), and GetNextSample().

Definition at line 59 of file erpt.h.

Referenced by ERPTSampler(), and GetNextSample().

Definition at line 59 of file erpt.h.

Referenced by GetNextSample().

Definition at line 54 of file erpt.h.

Referenced by AddSample(), initERPT(), and ~ERPTSampler().

Definition at line 51 of file erpt.h.

Referenced by AddSample().

Definition at line 51 of file erpt.h.

Referenced by AddSample(), clone(), GetNextSample(), and initERPT().

Definition at line 51 of file erpt.h.

Referenced by AddSample(), GetNextSample(), and initERPT().

Definition at line 52 of file erpt.h.

Referenced by AddSample().


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

Generated on Mon May 18 07:13:52 2009 for lux by  doxygen 1.5.8