MIPMap< T > Class Template Reference

#include <mipmap.h>

List of all members.

Classes

struct  ResampleWeight

Public Member Functions

 MIPMap ()
 MIPMap (uint32_t xres, uint32_t yres, const T *data, bool doTri=false, float maxAniso=8.f, ImageWrap wrapMode=TEXTURE_REPEAT)
 ~MIPMap ()
uint32_t Width () const
uint32_t Height () const
uint32_t Levels () const
const T & Texel (uint32_t level, int s, int t) const
Lookup (float s, float t, float width=0.f) const
Lookup (float s, float t, float ds0, float dt0, float ds1, float dt1) const

Private Member Functions

ResampleWeightresampleWeights (uint32_t oldres, uint32_t newres)
float clamp (float v)
RGBSpectrum clamp (const RGBSpectrum &v)
SampledSpectrum clamp (const SampledSpectrum &v)
triangle (uint32_t level, float s, float t) const
EWA (uint32_t level, float s, float t, float ds0, float dt0, float ds1, float dt1) const

Private Attributes

bool doTrilinear
float maxAnisotropy
ImageWrap wrapMode
BlockedArray< T > ** pyramid
uint32_t width
uint32_t height
uint32_t nLevels

Static Private Attributes

static float * weightLut = NULL

Detailed Description

template<typename T>
class MIPMap< T >

Definition at line 42 of file mipmap.h.


Constructor & Destructor Documentation

template<typename T>
MIPMap< T >::MIPMap (  )  [inline]

Definition at line 45 of file mipmap.h.

template<typename T>
MIPMap< T >::MIPMap ( uint32_t  xres,
uint32_t  yres,
const T *  data,
bool  doTri = false,
float  maxAniso = 8.f,
ImageWrap  wrapMode = TEXTURE_REPEAT 
) [inline]
template<typename T >
MIPMap< T >::~MIPMap (  )  [inline]

Definition at line 223 of file mipmap.h.

References MIPMap< T >::nLevels, and MIPMap< T >::pyramid.


Member Function Documentation

template<typename T>
SampledSpectrum MIPMap< T >::clamp ( const SampledSpectrum v  )  [inline, private]

Definition at line 82 of file mipmap.h.

template<typename T>
RGBSpectrum MIPMap< T >::clamp ( const RGBSpectrum v  )  [inline, private]

Definition at line 81 of file mipmap.h.

template<typename T>
float MIPMap< T >::clamp ( float  v  )  [inline, private]

Definition at line 80 of file mipmap.h.

Referenced by MIPMap< T >::MIPMap().

template<typename T >
T MIPMap< T >::EWA ( uint32_t  level,
float  s,
float  t,
float  ds0,
float  dt0,
float  ds1,
float  dt1 
) const [inline, private]
template<typename T>
uint32_t MIPMap< T >::Height (  )  const [inline]

Definition at line 50 of file mipmap.h.

Referenced by InfiniteAreaLight::SHProject().

template<typename T>
uint32_t MIPMap< T >::Levels (  )  const [inline]

Definition at line 51 of file mipmap.h.

template<typename T >
T MIPMap< T >::Lookup ( float  s,
float  t,
float  ds0,
float  dt0,
float  ds1,
float  dt1 
) const [inline]
template<typename T >
T MIPMap< T >::Lookup ( float  s,
float  t,
float  width = 0.f 
) const [inline]
template<typename T>
ResampleWeight* MIPMap< T >::resampleWeights ( uint32_t  oldres,
uint32_t  newres 
) [inline, private]

Definition at line 59 of file mipmap.h.

Referenced by MIPMap< T >::MIPMap().

template<typename T >
const T & MIPMap< T >::Texel ( uint32_t  level,
int  s,
int  t 
) const [inline]
template<typename T >
T MIPMap< T >::triangle ( uint32_t  level,
float  s,
float  t 
) const [inline, private]
template<typename T>
uint32_t MIPMap< T >::Width (  )  const [inline]

Definition at line 49 of file mipmap.h.

Referenced by InfiniteAreaLight::SHProject().


Member Data Documentation

template<typename T>
bool MIPMap< T >::doTrilinear [private]

Definition at line 87 of file mipmap.h.

Referenced by MIPMap< T >::Lookup(), and MIPMap< T >::MIPMap().

template<typename T>
uint32_t MIPMap< T >::height [private]
template<typename T>
float MIPMap< T >::maxAnisotropy [private]

Definition at line 88 of file mipmap.h.

Referenced by MIPMap< T >::Lookup(), and MIPMap< T >::MIPMap().

template<typename T>
uint32_t MIPMap< T >::nLevels [private]
template<typename T>
BlockedArray<T>** MIPMap< T >::pyramid [private]
template<typename T>
float * MIPMap< T >::weightLut = NULL [inline, static, private]

Definition at line 97 of file mipmap.h.

Referenced by MIPMap< T >::EWA(), and MIPMap< T >::MIPMap().

template<typename T>
uint32_t MIPMap< T >::width [private]
template<typename T>
ImageWrap MIPMap< T >::wrapMode [private]

Definition at line 89 of file mipmap.h.

Referenced by MIPMap< T >::MIPMap(), and MIPMap< T >::Texel().


The documentation for this class was generated from the following file:
Generated on Sat Aug 28 20:00:14 2010 for pbrt by  doxygen 1.6.3