ImageTexture< T > Class Template Reference

Inheritance diagram for ImageTexture< T >:

Texture< T > ReferenceCounted

List of all members.

Public Member Functions

 ImageTexture (TextureMapping2D *m, const string &filename, bool doTri, float maxAniso, ImageWrap wm)
Evaluate (const DifferentialGeometry &) const
 ~ImageTexture ()

Static Private Member Functions

static MIPMap< T > * GetTexture (const string &filename, bool doTrilinear, float maxAniso, ImageWrap wm)
static void convert (const Spectrum &from, Spectrum *to)
static void convert (const Spectrum &from, float *to)

Private Attributes

MIPMap< T > * mipmap
TextureMapping2Dmapping


Detailed Description

template<class T>
class ImageTexture< T >

Definition at line 33 of file imagemap.cpp.


Constructor & Destructor Documentation

template<class T>
ImageTexture< T >::ImageTexture ( TextureMapping2D m,
const string &  filename,
bool  doTri,
float  maxAniso,
ImageWrap  wm 
) [inline]

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

Definition at line 68 of file imagemap.cpp.

References ImageTexture< T >::mapping.


Member Function Documentation

template<class T>
T ImageTexture< T >::Evaluate ( const DifferentialGeometry dg  )  const [inline, virtual]

template<class T>
MIPMap< T > * ImageTexture< T >::GetTexture ( const string &  filename,
bool  doTrilinear,
float  maxAniso,
ImageWrap  wm 
) [inline, static, private]

Definition at line 86 of file imagemap.cpp.

References ImageTexture< T >::convert(), and ReadImage().

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

template<class T>
static void ImageTexture< T >::convert ( const Spectrum from,
Spectrum to 
) [inline, static, private]

Definition at line 47 of file imagemap.cpp.

Referenced by ImageTexture< T >::GetTexture().

template<class T>
static void ImageTexture< T >::convert ( const Spectrum from,
float *  to 
) [inline, static, private]

Definition at line 50 of file imagemap.cpp.

References Spectrum::y().


Member Data Documentation

template<class T>
MIPMap<T>* ImageTexture< T >::mipmap [private]

Definition at line 54 of file imagemap.cpp.

Referenced by ImageTexture< T >::Evaluate(), and ImageTexture< T >::ImageTexture().

template<class T>
TextureMapping2D* ImageTexture< T >::mapping [private]


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