TDirectionSampler Class Reference

List of all members.

Public Member Functions

 TDirectionSampler (const int32 quality)
 ~TDirectionSampler ()
int32 GetQuality () const
void ReInit ()

Protected Member Functions

virtual void SampleArea (const TMCPoint &position, int32 level, const real threshold)
virtual void SampleGrid ()
TMCColorRGBA AverageLighting ()
virtual void SampleDirection (const TMCPoint &position)=0
GridSample & GetSample (const TMCPoint &position)
int32 GetSampleOffset (const TMCPoint &position)
void InterpolateOrSample (const TMCPoint &position, const GridSample &leftSample, const GridSample &rightSample, const real threshold)
void InterpolateColor (const TMCPoint &position, int32 size)

Protected Attributes

int32 fMaxDepth
TMCClassArray
< GridSample > 
fGrid
TMCArray< boolean > fHasBeenSampled
int32 fSamplePerLine
real fDeltaX
real fDeltaY
int32 fQuality

Classes

struct  GridSample


Constructor & Destructor Documentation

TDirectionSampler::TDirectionSampler ( const int32  quality  ) 

TDirectionSampler::~TDirectionSampler (  ) 


Member Function Documentation

int32 TDirectionSampler::GetQuality (  )  const [inline]

void TDirectionSampler::ReInit (  ) 

virtual void TDirectionSampler::SampleArea ( const TMCPoint &  position,
int32  level,
const real  threshold 
) [protected, virtual]

virtual void TDirectionSampler::SampleGrid (  )  [protected, virtual]

TMCColorRGBA TDirectionSampler::AverageLighting (  )  [protected]

virtual void TDirectionSampler::SampleDirection ( const TMCPoint &  position  )  [protected, pure virtual]

GridSample& TDirectionSampler::GetSample ( const TMCPoint &  position  )  [inline, protected]

int32 TDirectionSampler::GetSampleOffset ( const TMCPoint &  position  )  [inline, protected]

void TDirectionSampler::InterpolateOrSample ( const TMCPoint &  position,
const GridSample &  leftSample,
const GridSample &  rightSample,
const real  threshold 
) [protected]

void TDirectionSampler::InterpolateColor ( const TMCPoint &  position,
int32  size 
) [protected]


Member Data Documentation

int32 TDirectionSampler::fMaxDepth [protected]

TMCClassArray< GridSample > TDirectionSampler::fGrid [protected]

TMCArray<boolean> TDirectionSampler::fHasBeenSampled [protected]

int32 TDirectionSampler::fSamplePerLine [protected]

real TDirectionSampler::fDeltaX [protected]

real TDirectionSampler::fDeltaY [protected]

int32 TDirectionSampler::fQuality [protected]


The documentation for this class was generated from the following file:
Generated on Fri Aug 24 15:19:29 2007 for Carrara SDK Doc by  doxygen 1.5.3