#include <imagemap.h>
Public Member Functions | |
| ImageSpectrumTexture (TextureMapping2D *m, ImageTextureFilterType type, const string &filename, float maxAniso, ImageWrap wrapMode, float gain, float gamma) | |
| virtual | ~ImageSpectrumTexture () |
| virtual SWCSpectrum | Evaluate (const TsPack *tspack, const DifferentialGeometry &dg) const |
| u_int | getMemoryUsed () const |
| void | discardMipmaps (int n) |
Static Public Member Functions | |
| static Texture< SWCSpectrum > * | CreateSWCSpectrumTexture (const Transform &tex2world, const TextureParams &tp) |
Static Private Member Functions | |
| static MIPMap< RGBColor > * | GetTexture (ImageTextureFilterType filterType, const string &filename, float maxAniso, ImageWrap wrap, float gain, float gamma) |
| static void | convert (const RGBColor &from, RGBColor *to) |
| static void | convert (const RGBColor &from, float *to) |
Private Attributes | |
| ImageTextureFilterType | filterType |
| MIPMap< RGBColor > * | mipmap |
| TextureMapping2D * | mapping |
Definition at line 100 of file imagemap.h.
| lux::ImageSpectrumTexture::ImageSpectrumTexture | ( | TextureMapping2D * | m, | |
| ImageTextureFilterType | type, | |||
| const string & | filename, | |||
| float | maxAniso, | |||
| ImageWrap | wrapMode, | |||
| float | gain, | |||
| float | gamma | |||
| ) | [inline] |
Definition at line 103 of file imagemap.h.
References filterType, GetTexture(), mapping, and mipmap.
Referenced by CreateSWCSpectrumTexture().
| virtual lux::ImageSpectrumTexture::~ImageSpectrumTexture | ( | ) | [inline, virtual] |
Definition at line 116 of file imagemap.h.
References mapping.
| static void lux::ImageSpectrumTexture::convert | ( | const RGBColor & | from, | |
| float * | to | |||
| ) | [inline, static, private] |
Definition at line 151 of file imagemap.h.
References lux::RGBColor::Y().
| static void lux::ImageSpectrumTexture::convert | ( | const RGBColor & | from, | |
| RGBColor * | to | |||
| ) | [inline, static, private] |
Definition at line 148 of file imagemap.h.
| Texture< SWCSpectrum > * ImageSpectrumTexture::CreateSWCSpectrumTexture | ( | const Transform & | tex2world, | |
| const TextureParams & | tp | |||
| ) | [static] |
Definition at line 102 of file imagemap.cpp.
References lux::BILINEAR, discardMipmaps(), filterType, lux::TextureParams::FindFloat(), lux::TextureParams::FindInt(), lux::TextureParams::FindString(), lux::TextureParams::FindVector(), lux::Transform::GetInverse(), getMemoryUsed(), ImageSpectrumTexture(), 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.
| void lux::ImageSpectrumTexture::discardMipmaps | ( | int | n | ) | [inline] |
Definition at line 131 of file imagemap.h.
References lux::MIPMap< T >::discardMipmaps(), and mipmap.
Referenced by CreateSWCSpectrumTexture().
| virtual SWCSpectrum lux::ImageSpectrumTexture::Evaluate | ( | const TsPack * | tspack, | |
| const DifferentialGeometry & | dg | |||
| ) | const [inline, virtual] |
Implements lux::Texture< SWCSpectrum >.
Definition at line 118 of file imagemap.h.
References lux::MIPMap< T >::Lookup(), lux::TextureMapping2D::Map(), mapping, and mipmap.
| u_int lux::ImageSpectrumTexture::getMemoryUsed | ( | ) | const [inline] |
Definition at line 124 of file imagemap.h.
References lux::MIPMap< T >::getMemoryUsed(), and mipmap.
Referenced by CreateSWCSpectrumTexture().
| MIPMap< RGBColor > * lux::ImageSpectrumTexture::GetTexture | ( | ImageTextureFilterType | filterType, | |
| const string & | filename, | |||
| float | maxAniso, | |||
| ImageWrap | wrap, | |||
| float | gain, | |||
| float | gamma | |||
| ) | [inline, static, private] |
Definition at line 222 of file imagemap.h.
References lux::ReadImage().
Referenced by ImageSpectrumTexture().
Definition at line 156 of file imagemap.h.
Referenced by CreateSWCSpectrumTexture(), and ImageSpectrumTexture().
Definition at line 158 of file imagemap.h.
Referenced by Evaluate(), ImageSpectrumTexture(), and ~ImageSpectrumTexture().
MIPMap<RGBColor>* lux::ImageSpectrumTexture::mipmap [private] |
Definition at line 157 of file imagemap.h.
Referenced by discardMipmaps(), Evaluate(), getMemoryUsed(), and ImageSpectrumTexture().
1.6.2-20100208