#include <imagemap.h>
Public Member Functions | |
| ImageFloatTexture (TextureMapping2D *m, ImageTextureFilterType type, const string &filename, float maxAniso, ImageWrap wrapMode, float gain, float gamma) | |
| virtual | ~ImageFloatTexture () |
| virtual float | Evaluate (const TsPack *tspack, const DifferentialGeometry &dg) const |
| u_int | getMemoryUsed () const |
| void | discardMipmaps (int n) |
Static Public Member Functions | |
| static Texture< float > * | CreateFloatTexture (const Transform &tex2world, const TextureParams &tp) |
Static Private Member Functions | |
| static MIPMap< float > * | 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< float > * | mipmap |
| TextureMapping2D * | mapping |
Definition at line 39 of file imagemap.h.
| lux::ImageFloatTexture::ImageFloatTexture | ( | TextureMapping2D * | m, | |
| ImageTextureFilterType | type, | |||
| const string & | filename, | |||
| float | maxAniso, | |||
| ImageWrap | wrapMode, | |||
| float | gain, | |||
| float | gamma | |||
| ) | [inline] |
Definition at line 42 of file imagemap.h.
References filterType, GetTexture(), mapping, and mipmap.
Referenced by CreateFloatTexture().
| virtual lux::ImageFloatTexture::~ImageFloatTexture | ( | ) | [inline, virtual] |
Definition at line 55 of file imagemap.h.
References mapping.
| static void lux::ImageFloatTexture::convert | ( | const RGBColor & | from, | |
| float * | to | |||
| ) | [inline, static, private] |
Definition at line 90 of file imagemap.h.
References lux::RGBColor::Y().
| static void lux::ImageFloatTexture::convert | ( | const RGBColor & | from, | |
| RGBColor * | to | |||
| ) | [inline, static, private] |
Definition at line 87 of file imagemap.h.
| Texture< float > * ImageFloatTexture::CreateFloatTexture | ( | const Transform & | tex2world, | |
| const TextureParams & | tp | |||
| ) | [static] |
Definition at line 29 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(), ImageFloatTexture(), 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::ImageFloatTexture::discardMipmaps | ( | int | n | ) | [inline] |
Definition at line 70 of file imagemap.h.
References lux::MIPMap< T >::discardMipmaps(), and mipmap.
Referenced by CreateFloatTexture().
| virtual float lux::ImageFloatTexture::Evaluate | ( | const TsPack * | tspack, | |
| const DifferentialGeometry & | dg | |||
| ) | const [inline, virtual] |
Implements lux::Texture< float >.
Definition at line 57 of file imagemap.h.
References lux::MIPMap< T >::Lookup(), lux::TextureMapping2D::Map(), mapping, and mipmap.
| u_int lux::ImageFloatTexture::getMemoryUsed | ( | ) | const [inline] |
Definition at line 63 of file imagemap.h.
References lux::MIPMap< T >::getMemoryUsed(), and mipmap.
Referenced by CreateFloatTexture().
| MIPMap< float > * lux::ImageFloatTexture::GetTexture | ( | ImageTextureFilterType | filterType, | |
| const string & | filename, | |||
| float | maxAniso, | |||
| ImageWrap | wrap, | |||
| float | gain, | |||
| float | gamma | |||
| ) | [inline, static, private] |
Definition at line 188 of file imagemap.h.
References lux::ReadImage().
Referenced by ImageFloatTexture().
Definition at line 95 of file imagemap.h.
Referenced by CreateFloatTexture(), and ImageFloatTexture().
TextureMapping2D* lux::ImageFloatTexture::mapping [private] |
Definition at line 97 of file imagemap.h.
Referenced by Evaluate(), ImageFloatTexture(), and ~ImageFloatTexture().
MIPMap<float>* lux::ImageFloatTexture::mipmap [private] |
Definition at line 96 of file imagemap.h.
Referenced by discardMipmaps(), Evaluate(), getMemoryUsed(), and ImageFloatTexture().
1.6.2-20100208