#include <dots.h>
Public Member Functions | |
virtual | ~DotsTexture () |
DotsTexture (TextureMapping2D *m, boost::shared_ptr< Texture< T > > c1, boost::shared_ptr< Texture< T > > c2) | |
virtual T | Evaluate (const TsPack *tspack, const DifferentialGeometry &dg) const |
virtual void | SetPower (float power, float area) |
virtual void | SetIlluminant () |
Static Public Member Functions | |
static Texture< float > * | CreateFloatTexture (const Transform &tex2world, const TextureParams &tp) |
static Texture< SWCSpectrum > * | CreateSWCSpectrumTexture (const Transform &tex2world, const TextureParams &tp) |
Private Attributes | |
boost::shared_ptr< Texture< T > > | outsideDot |
boost::shared_ptr< Texture< T > > | insideDot |
TextureMapping2D * | mapping |
Definition at line 33 of file dots.h.
virtual lux::DotsTexture< T >::~DotsTexture | ( | ) | [inline, virtual] |
Definition at line 36 of file dots.h.
References lux::DotsTexture< T >::mapping.
lux::DotsTexture< T >::DotsTexture | ( | TextureMapping2D * | m, | |
boost::shared_ptr< Texture< T > > | c1, | |||
boost::shared_ptr< Texture< T > > | c2 | |||
) | [inline] |
Definition at line 39 of file dots.h.
References lux::DotsTexture< T >::insideDot, lux::DotsTexture< T >::mapping, and lux::DotsTexture< T >::outsideDot.
Texture< float > * lux::DotsTexture< T >::CreateFloatTexture | ( | const Transform & | tex2world, | |
const TextureParams & | tp | |||
) | [inline, static] |
Definition at line 85 of file dots.h.
References lux::TextureParams::FindFloat(), lux::TextureParams::FindString(), lux::TextureParams::FindVector(), lux::TextureParams::GetFloatTexture(), lux::Transform::GetInverse(), LUX_BADTOKEN, LUX_ERROR, and luxError.
Texture< SWCSpectrum > * lux::DotsTexture< T >::CreateSWCSpectrumTexture | ( | const Transform & | tex2world, | |
const TextureParams & | tp | |||
) | [inline, static] |
Definition at line 115 of file dots.h.
References lux::TextureParams::FindFloat(), lux::TextureParams::FindString(), lux::TextureParams::FindVector(), lux::Transform::GetInverse(), lux::TextureParams::GetSWCSpectrumTexture(), LUX_BADTOKEN, LUX_ERROR, and luxError.
virtual T lux::DotsTexture< T >::Evaluate | ( | const TsPack * | tspack, | |
const DifferentialGeometry & | dg | |||
) | const [inline, virtual] |
Implements lux::Texture< T >.
Definition at line 45 of file dots.h.
References Floor2Int(), lux::DotsTexture< T >::insideDot, lux::TextureMapping2D::Map(), lux::DotsTexture< T >::mapping, lux::Noise(), and lux::DotsTexture< T >::outsideDot.
virtual void lux::DotsTexture< T >::SetIlluminant | ( | ) | [inline, virtual] |
Reimplemented from lux::Texture< T >.
Definition at line 69 of file dots.h.
References lux::DotsTexture< T >::insideDot, and lux::DotsTexture< T >::outsideDot.
virtual void lux::DotsTexture< T >::SetPower | ( | float | power, | |
float | area | |||
) | [inline, virtual] |
Reimplemented from lux::Texture< T >.
Definition at line 64 of file dots.h.
References lux::DotsTexture< T >::insideDot, and lux::DotsTexture< T >::outsideDot.
boost::shared_ptr<Texture<T> > lux::DotsTexture< T >::insideDot [private] |
Definition at line 79 of file dots.h.
Referenced by lux::DotsTexture< T >::DotsTexture(), lux::DotsTexture< T >::Evaluate(), lux::DotsTexture< T >::SetIlluminant(), and lux::DotsTexture< T >::SetPower().
TextureMapping2D* lux::DotsTexture< T >::mapping [private] |
Definition at line 80 of file dots.h.
Referenced by lux::DotsTexture< T >::DotsTexture(), lux::DotsTexture< T >::Evaluate(), and lux::DotsTexture< T >::~DotsTexture().
boost::shared_ptr<Texture<T> > lux::DotsTexture< T >::outsideDot [private] |
Definition at line 79 of file dots.h.
Referenced by lux::DotsTexture< T >::DotsTexture(), lux::DotsTexture< T >::Evaluate(), lux::DotsTexture< T >::SetIlluminant(), and lux::DotsTexture< T >::SetPower().