MIPMap< T > Class Template Reference

#include <mipmap.h>

List of all members.

Public Member Functions

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

Private Member Functions

ResampleWeight * resampleWeights (int oldres, int newres)
float clamp (float v)
Spectrum clamp (const Spectrum &v)
const T & texel (int level, int s, int t) const
T triangle (int level, float s, float t) const
T EWA (float s, float t, float ds0, float dt0, float ds1, float dt1, int level) const

Private Attributes

bool doTrilinear
float maxAnisotropy
ImageWrap wrapMode
BlockedArray< T > ** pyramid
int nLevels

Static Private Attributes

static float * weightLut = NULL

Classes

struct  ResampleWeight


Detailed Description

template<class T>
class MIPMap< T >

Definition at line 35 of file mipmap.h.


Constructor & Destructor Documentation

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

template<class T>
MIPMap< T >::~MIPMap (  )  [inline]

Definition at line 197 of file mipmap.h.

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


Member Function Documentation

template<class T>
T MIPMap< T >::Lookup ( float  s,
float  t,
float  width = 0.f 
) const [inline]

template<class T>
T MIPMap< T >::Lookup ( float  s,
float  t,
float  ds0,
float  dt0,
float  ds1,
float  dt1 
) const [inline]

template<class T>
ResampleWeight* MIPMap< T >::resampleWeights ( int  oldres,
int  newres 
) [inline, private]

Definition at line 47 of file mipmap.h.

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

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

Definition at line 67 of file mipmap.h.

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

template<class T>
Spectrum MIPMap< T >::clamp ( const Spectrum &  v  )  [inline, private]

Definition at line 68 of file mipmap.h.

template<class T>
const T & MIPMap< T >::texel ( int  level,
int  s,
int  t 
) const [inline, private]

template<class T>
T MIPMap< T >::triangle ( int  level,
float  s,
float  t 
) const [inline, private]

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


Member Data Documentation

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

Definition at line 73 of file mipmap.h.

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

template<class T>
float MIPMap< T >::maxAnisotropy [private]

Definition at line 74 of file mipmap.h.

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

template<class T>
ImageWrap MIPMap< T >::wrapMode [private]

Definition at line 75 of file mipmap.h.

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

template<class T>
BlockedArray<T>** MIPMap< T >::pyramid [private]

template<class T>
int MIPMap< T >::nLevels [private]

template<class T>
float * MIPMap< T >::weightLut = NULL [inline, static, private]

Definition at line 83 of file mipmap.h.

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


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

Generated on Mon Jul 20 17:31:55 2009 for pbrt by  doxygen 1.5.6