lux::ImageTexture< T > Class Template Reference

#include <imagemap.h>

Inheritance diagram for lux::ImageTexture< T >:

lux::Texture< T >

List of all members.

Public Member Functions

 ImageTexture (TextureMapping2D *m, ImageTextureFilterType type, const string &filename, float maxAniso, ImageWrap wrapMode, float gain, float gamma)
Evaluate (const DifferentialGeometry &) const
 ~ImageTexture ()
u_int getMemoryUsed () const
void discardMipmaps (int n)

Static Public Member Functions

static Texture< float > * CreateFloatTexture (const Transform &tex2world, const TextureParams &tp)
static Texture< Spectrum > * CreateSpectrumTexture (const Transform &tex2world, const TextureParams &tp)

Static Private Member Functions

static MIPMap< T > * GetTexture (ImageTextureFilterType filterType, const string &filename, float maxAniso, ImageWrap wrap, float gain, float gamma)
static void convert (const Spectrum &from, Spectrum *to)
static void convert (const Spectrum &from, float *to)

Private Attributes

ImageTextureFilterType filterType
MIPMap< T > * mipmap
TextureMapping2Dmapping


Detailed Description

template<class T>
class lux::ImageTexture< T >

Definition at line 38 of file imagemap.h.


Constructor & Destructor Documentation

template<class T >
lux::ImageTexture< T >::ImageTexture ( TextureMapping2D m,
ImageTextureFilterType  type,
const string &  filename,
float  maxAniso,
ImageWrap  wrapMode,
float  gain,
float  gamma 
) [inline]

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

Definition at line 251 of file imagemap.h.

References lux::ImageTexture< T >::mapping.


Member Function Documentation

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

Definition at line 79 of file imagemap.h.

References lux::Spectrum::y().

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

Definition at line 76 of file imagemap.h.

template<class T >
Texture< float > * lux::ImageTexture< T >::CreateFloatTexture ( const Transform tex2world,
const TextureParams tp 
) [inline, static]

template<class T >
Texture< Spectrum > * lux::ImageTexture< T >::CreateSpectrumTexture ( const Transform tex2world,
const TextureParams tp 
) [inline, static]

template<class T>
void lux::ImageTexture< T >::discardMipmaps ( int  n  )  [inline]

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

template<class T>
u_int lux::ImageTexture< T >::getMemoryUsed (  )  const [inline]

template<class T >
MIPMap< T > * lux::ImageTexture< T >::GetTexture ( ImageTextureFilterType  filterType,
const string &  filename,
float  maxAniso,
ImageWrap  wrap,
float  gain,
float  gamma 
) [inline, static, private]

Definition at line 280 of file imagemap.h.

References lux::ReadImage().

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


Member Data Documentation

template<class T>
ImageTextureFilterType lux::ImageTexture< T >::filterType [private]

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

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


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

Generated on Fri Jul 24 11:52:05 2009 for lux by  doxygen 1.5.9