lux::HaltonSampler Class Reference

#include <halton.h>

Inheritance diagram for lux::HaltonSampler:

lux::Sampler

List of all members.

Public Member Functions

 HaltonSampler (int xstart, int xend, int ystart, int yend, int nsamp, string pixelsampler)
 ~HaltonSampler ()
int RoundSize (int size) const
u_int GetTotalSamplePos ()
bool GetNextSample (Sample *sample, u_int *use_pos)
float * GetLazyValues (Sample *sample, u_int num, u_int pos)
virtual HaltonSamplerclone () const

Static Public Member Functions

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

Private Attributes

int xPos
int yPos
int pixelSamples
int samplePos
float * imageSamples
float * lensSamples
float * timeSamples
float * wavelengthsSamples
float * singleWavelengthSamples
float ** oneDSamples
float ** twoDSamples
float ** xDSamples
int n1D
int n2D
int nxD
u_int TotalPixels
PixelSamplerpixelSampler


Detailed Description

Definition at line 32 of file halton.h.


Constructor & Destructor Documentation

HaltonSampler::HaltonSampler ( int  xstart,
int  xend,
int  ystart,
int  yend,
int  nsamp,
string  pixelsampler 
)

HaltonSampler::~HaltonSampler (  ) 

Definition at line 79 of file halton.cpp.

References imageSamples, n1D, n2D, nxD, oneDSamples, twoDSamples, and xDSamples.


Member Function Documentation

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

Implements lux::Sampler.

Definition at line 35 of file halton.cpp.

References HaltonSampler().

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

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

Reimplemented from lux::Sampler.

Definition at line 190 of file halton.cpp.

References lux::Sample::dxD, lux::Sample::nxD, pixelSamples, samplePos, lux::Sample::sxD, lux::Sample::xD, and xDSamples.

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

u_int HaltonSampler::GetTotalSamplePos (  )  [virtual]

Implements lux::Sampler.

Definition at line 93 of file halton.cpp.

References TotalPixels.

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

Implements lux::Sampler.

Definition at line 40 of file halton.h.

References RoundUpPow2().


Member Data Documentation

Definition at line 53 of file halton.h.

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

Definition at line 53 of file halton.h.

Referenced by GetNextSample(), and HaltonSampler().

int lux::HaltonSampler::n1D [private]

Definition at line 56 of file halton.h.

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

int lux::HaltonSampler::n2D [private]

Definition at line 56 of file halton.h.

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

int lux::HaltonSampler::nxD [private]

Definition at line 56 of file halton.h.

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

Definition at line 55 of file halton.h.

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

Definition at line 58 of file halton.h.

Referenced by GetNextSample(), and HaltonSampler().

Definition at line 51 of file halton.h.

Referenced by GetLazyValues(), GetNextSample(), and HaltonSampler().

Definition at line 52 of file halton.h.

Referenced by GetLazyValues(), GetNextSample(), and HaltonSampler().

Definition at line 53 of file halton.h.

Referenced by HaltonSampler().

Definition at line 53 of file halton.h.

Referenced by GetNextSample(), and HaltonSampler().

Definition at line 57 of file halton.h.

Referenced by GetTotalSamplePos(), and HaltonSampler().

float ** lux::HaltonSampler::twoDSamples [private]

Definition at line 55 of file halton.h.

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

Definition at line 53 of file halton.h.

Referenced by GetNextSample(), and HaltonSampler().

float ** lux::HaltonSampler::xDSamples [private]

Definition at line 55 of file halton.h.

Referenced by GetLazyValues(), GetNextSample(), HaltonSampler(), and ~HaltonSampler().

int lux::HaltonSampler::xPos [private]

Definition at line 51 of file halton.h.

Referenced by GetNextSample(), and HaltonSampler().

int lux::HaltonSampler::yPos [private]

Definition at line 51 of file halton.h.

Referenced by GetNextSample(), and HaltonSampler().


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

Generated on Mon May 18 07:16:19 2009 for lux by  doxygen 1.5.8