#include <imagemap.h>
Public Member Functions | |
ImageTexture (TextureMapping2D *m, ImageTextureFilterType type, const string &filename, float maxAniso, ImageWrap wrapMode, float gain, float gamma) | |
T | 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 |
TextureMapping2D * | mapping |
Definition at line 38 of file imagemap.h.
lux::ImageTexture< T >::ImageTexture | ( | TextureMapping2D * | m, | |
ImageTextureFilterType | type, | |||
const string & | filename, | |||
float | maxAniso, | |||
ImageWrap | wrapMode, | |||
float | gain, | |||
float | gamma | |||
) | [inline] |
Definition at line 238 of file imagemap.h.
References lux::ImageTexture< T >::filterType, lux::ImageTexture< T >::GetTexture(), lux::ImageTexture< T >::mapping, and lux::ImageTexture< T >::mipmap.
lux::ImageTexture< T >::~ImageTexture | ( | ) | [inline] |
static void lux::ImageTexture< T >::convert | ( | const Spectrum & | from, | |
float * | to | |||
) | [inline, static, private] |
static void lux::ImageTexture< T >::convert | ( | const Spectrum & | from, | |
Spectrum * | to | |||
) | [inline, static, private] |
Definition at line 76 of file imagemap.h.
Texture< float > * lux::ImageTexture< T >::CreateFloatTexture | ( | const Transform & | tex2world, | |
const TextureParams & | tp | |||
) | [inline, static] |
Definition at line 90 of file imagemap.h.
References lux::BILINEAR, lux::ImageTexture< T >::discardMipmaps(), lux::ImageTexture< T >::filterType, lux::TextureParams::FindFloat(), lux::TextureParams::FindInt(), lux::TextureParams::FindString(), lux::TextureParams::FindVector(), lux::Transform::GetInverse(), lux::ImageTexture< T >::getMemoryUsed(), LUX_BADTOKEN, LUX_ERROR, LUX_INFO, LUX_NOERROR, luxError, lux::MIPMAP_EWA, lux::MIPMAP_TRILINEAR, lux::NEAREST, lux::TEXTURE_BLACK, lux::TEXTURE_CLAMP, and lux::TEXTURE_REPEAT.
Referenced by lux::MakeFloatTexture().
Texture< Spectrum > * lux::ImageTexture< T >::CreateSpectrumTexture | ( | const Transform & | tex2world, | |
const TextureParams & | tp | |||
) | [inline, static] |
Definition at line 163 of file imagemap.h.
References lux::BILINEAR, lux::ImageTexture< T >::discardMipmaps(), lux::ImageTexture< T >::filterType, lux::TextureParams::FindFloat(), lux::TextureParams::FindInt(), lux::TextureParams::FindString(), lux::TextureParams::FindVector(), lux::Transform::GetInverse(), lux::ImageTexture< T >::getMemoryUsed(), LUX_BADTOKEN, LUX_ERROR, LUX_INFO, LUX_NOERROR, luxError, lux::MIPMAP_EWA, lux::MIPMAP_TRILINEAR, lux::NEAREST, lux::TEXTURE_BLACK, lux::TEXTURE_CLAMP, and lux::TEXTURE_REPEAT.
Referenced by lux::MakeSpectrumTexture().
void lux::ImageTexture< T >::discardMipmaps | ( | int | n | ) | [inline] |
Definition at line 59 of file imagemap.h.
References lux::MIPMap< T >::discardMipmaps(), and lux::ImageTexture< T >::mipmap.
Referenced by lux::ImageTexture< T >::CreateFloatTexture(), and lux::ImageTexture< T >::CreateSpectrumTexture().
T lux::ImageTexture< T >::Evaluate | ( | const DifferentialGeometry & | dg | ) | const [inline, virtual] |
Implements lux::Texture< T >.
Definition at line 317 of file imagemap.h.
References lux::MIPMap< T >::Lookup(), lux::TextureMapping2D::Map(), lux::ImageTexture< T >::mapping, and lux::ImageTexture< T >::mipmap.
u_int lux::ImageTexture< T >::getMemoryUsed | ( | ) | const [inline] |
Definition at line 52 of file imagemap.h.
References lux::MIPMap< T >::getMemoryUsed(), and lux::ImageTexture< T >::mipmap.
Referenced by lux::ImageTexture< T >::CreateFloatTexture(), and lux::ImageTexture< T >::CreateSpectrumTexture().
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().
ImageTextureFilterType lux::ImageTexture< T >::filterType [private] |
Definition at line 85 of file imagemap.h.
Referenced by lux::ImageTexture< T >::CreateFloatTexture(), lux::ImageTexture< T >::CreateSpectrumTexture(), and lux::ImageTexture< T >::ImageTexture().
TextureMapping2D* lux::ImageTexture< T >::mapping [private] |
Definition at line 87 of file imagemap.h.
Referenced by lux::ImageTexture< T >::Evaluate(), lux::ImageTexture< T >::ImageTexture(), and lux::ImageTexture< T >::~ImageTexture().
MIPMap<T>* lux::ImageTexture< T >::mipmap [private] |
Definition at line 86 of file imagemap.h.
Referenced by lux::ImageTexture< T >::discardMipmaps(), lux::ImageTexture< T >::Evaluate(), lux::ImageTexture< T >::getMemoryUsed(), and lux::ImageTexture< T >::ImageTexture().