lux::ImageFloatTexture Class Reference

#include <imagemap.h>

Inheritance diagram for lux::ImageFloatTexture:
[legend]
Collaboration diagram for lux::ImageFloatTexture:
[legend]

List of all members.

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
TextureMapping2Dmapping

Detailed Description

Definition at line 39 of file imagemap.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]
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().


Member Data Documentation

Definition at line 95 of file imagemap.h.

Referenced by CreateFloatTexture(), and ImageFloatTexture().

Definition at line 97 of file imagemap.h.

Referenced by Evaluate(), ImageFloatTexture(), and ~ImageFloatTexture().

Definition at line 96 of file imagemap.h.

Referenced by discardMipmaps(), Evaluate(), getMemoryUsed(), and ImageFloatTexture().


The documentation for this class was generated from the following files:
Generated by  doxygen 1.6.2-20100208