ImageTexture< Tmemory, Treturn > Class Template Reference

#include <imagemap.h>

Inheritance diagram for ImageTexture< Tmemory, Treturn >:
Texture< Treturn > ReferenceCounted

List of all members.

Public Member Functions

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

Static Public Member Functions

static void ClearCache ()

Static Private Member Functions

static MIPMap< Tmemory > * GetTexture (const string &filename, bool doTrilinear, float maxAniso, ImageWrap wm, float scale, float gamma)
static void convertIn (const RGBSpectrum &from, RGBSpectrum *to, float scale, float gamma)
static void convertIn (const RGBSpectrum &from, float *to, float scale, float gamma)
static void convertOut (const RGBSpectrum &from, Spectrum *to)
static void convertOut (float from, float *to)

Private Attributes

MIPMap< Tmemory > * mipmap
TextureMapping2Dmapping

Static Private Attributes

static std::map< TexInfo,
MIPMap< Tmemory > * > 
textures

Detailed Description

template<typename Tmemory, typename Treturn>
class ImageTexture< Tmemory, Treturn >

Definition at line 61 of file imagemap.h.


Constructor & Destructor Documentation

template<typename Tmemory , typename Treturn >
ImageTexture< Tmemory, Treturn >::ImageTexture ( TextureMapping2D m,
const string &  filename,
bool  doTri,
float  maxAniso,
ImageWrap  wm,
float  scale,
float  gamma 
) [inline]
template<typename Tmemory , typename Treturn >
ImageTexture< Tmemory, Treturn >::~ImageTexture (  )  [inline]

Definition at line 42 of file imagemap.cpp.

References ImageTexture< Tmemory, Treturn >::mapping.


Member Function Documentation

template<typename Tmemory, typename Treturn>
static void ImageTexture< Tmemory, Treturn >::ClearCache (  )  [inline, static]

Definition at line 68 of file imagemap.h.

References ImageTexture< Tmemory, Treturn >::textures.

Referenced by pbrtWorldEnd().

template<typename Tmemory, typename Treturn>
static void ImageTexture< Tmemory, Treturn >::convertIn ( const RGBSpectrum from,
float *  to,
float  scale,
float  gamma 
) [inline, static, private]

Definition at line 85 of file imagemap.h.

References RGBSpectrum::y().

template<typename Tmemory, typename Treturn>
static void ImageTexture< Tmemory, Treturn >::convertIn ( const RGBSpectrum from,
RGBSpectrum to,
float  scale,
float  gamma 
) [inline, static, private]

Definition at line 81 of file imagemap.h.

References Pow().

Referenced by ImageTexture< Tmemory, Treturn >::GetTexture().

template<typename Tmemory, typename Treturn>
static void ImageTexture< Tmemory, Treturn >::convertOut ( float  from,
float *  to 
) [inline, static, private]

Definition at line 94 of file imagemap.h.

template<typename Tmemory, typename Treturn>
static void ImageTexture< Tmemory, Treturn >::convertOut ( const RGBSpectrum from,
Spectrum to 
) [inline, static, private]

Definition at line 89 of file imagemap.h.

References RGBSpectrum::FromRGB(), and RGBSpectrum::ToRGB().

template<typename Tmemory , typename Treturn >
Treturn ImageTexture< Tmemory, Treturn >::Evaluate ( const DifferentialGeometry dg  )  const [inline, virtual]

Implements Texture< Treturn >.

Definition at line 86 of file imagemap.cpp.

References MIPMap< T >::Lookup().

template<typename Tmemory , typename Treturn >
MIPMap< Tmemory > * ImageTexture< Tmemory, Treturn >::GetTexture ( const string &  filename,
bool  doTrilinear,
float  maxAniso,
ImageWrap  wm,
float  scale,
float  gamma 
) [inline, static, private]

Member Data Documentation

template<typename Tmemory, typename Treturn>
TextureMapping2D* ImageTexture< Tmemory, Treturn >::mapping [private]
template<typename Tmemory, typename Treturn>
MIPMap<Tmemory>* ImageTexture< Tmemory, Treturn >::mipmap [private]

Definition at line 99 of file imagemap.h.

Referenced by ImageTexture< Tmemory, Treturn >::ImageTexture().

template<typename Tmemory, typename Treturn>
std::map< TexInfo, MIPMap< Tmemory > * > ImageTexture< Tmemory, Treturn >::textures [inline, static, private]

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