#include <imagemap.h>
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 |
TextureMapping2D * | mapping |
Static Private Attributes | |
static std::map< TexInfo, MIPMap< Tmemory > * > | textures |
Definition at line 61 of file imagemap.h.
ImageTexture< Tmemory, Treturn >::ImageTexture | ( | TextureMapping2D * | m, | |
const string & | filename, | |||
bool | doTri, | |||
float | maxAniso, | |||
ImageWrap | wm, | |||
float | scale, | |||
float | gamma | |||
) | [inline] |
Definition at line 32 of file imagemap.cpp.
References ImageTexture< Tmemory, Treturn >::GetTexture(), ImageTexture< Tmemory, Treturn >::mapping, and ImageTexture< Tmemory, Treturn >::mipmap.
ImageTexture< Tmemory, Treturn >::~ImageTexture | ( | ) | [inline] |
Definition at line 42 of file imagemap.cpp.
References ImageTexture< Tmemory, Treturn >::mapping.
static void ImageTexture< Tmemory, Treturn >::ClearCache | ( | ) | [inline, static] |
Definition at line 68 of file imagemap.h.
References ImageTexture< Tmemory, Treturn >::textures.
Referenced by pbrtWorldEnd().
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().
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().
static void ImageTexture< Tmemory, Treturn >::convertOut | ( | float | from, | |
float * | to | |||
) | [inline, static, private] |
Definition at line 94 of file imagemap.h.
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().
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().
MIPMap< Tmemory > * ImageTexture< Tmemory, Treturn >::GetTexture | ( | const string & | filename, | |
bool | doTrilinear, | |||
float | maxAniso, | |||
ImageWrap | wm, | |||
float | scale, | |||
float | gamma | |||
) | [inline, static, private] |
Definition at line 48 of file imagemap.cpp.
References ImageTexture< Tmemory, Treturn >::convertIn(), ReadImage(), and ImageTexture< Tmemory, Treturn >::textures.
Referenced by ImageTexture< Tmemory, Treturn >::ImageTexture().
TextureMapping2D* ImageTexture< Tmemory, Treturn >::mapping [private] |
Definition at line 100 of file imagemap.h.
Referenced by ImageTexture< Tmemory, Treturn >::ImageTexture(), and ImageTexture< Tmemory, Treturn >::~ImageTexture().
MIPMap<Tmemory>* ImageTexture< Tmemory, Treturn >::mipmap [private] |
Definition at line 99 of file imagemap.h.
Referenced by ImageTexture< Tmemory, Treturn >::ImageTexture().
std::map< TexInfo, MIPMap< Tmemory > * > ImageTexture< Tmemory, Treturn >::textures [inline, static, private] |
Definition at line 101 of file imagemap.h.
Referenced by ImageTexture< Tmemory, Treturn >::ClearCache(), and ImageTexture< Tmemory, Treturn >::GetTexture().