TextureParams Class Reference

#include <paramset.h>

List of all members.

Public Member Functions

 TextureParams (const ParamSet &geomp, const ParamSet &matp, map< string, Reference< Texture< float > > > &ft, map< string, Reference< Texture< Spectrum > > > &st)
Reference< Texture< Spectrum > > GetSpectrumTexture (const string &name, const Spectrum &def) const
Reference< Texture< float > > GetFloatTexture (const string &name, float def) const
float FindFloat (const string &n, float d) const
string FindString (const string &n, const string &d="") const
int FindInt (const string &n, int d) const
bool FindBool (const string &n, bool d) const
Point FindPoint (const string &n, const Point &d) const
Vector FindVector (const string &n, const Vector &d) const
Normal FindNormal (const string &n, const Normal &d) const
Spectrum FindSpectrum (const string &n, const Spectrum &d) const
void ReportUnused () const
const ParamSetGetGeomParams () const
const ParamSetGetMaterialParams () const

Private Attributes

map< string, Reference
< Texture< float > > > & 
floatTextures
map< string, Reference
< Texture< Spectrum > > > & 
spectrumTextures
const ParamSetgeomParams
const ParamSetmaterialParams

Detailed Description

Definition at line 135 of file paramset.h.


Constructor & Destructor Documentation

TextureParams::TextureParams ( const ParamSet geomp,
const ParamSet matp,
map< string, Reference< Texture< float > > > &  ft,
map< string, Reference< Texture< Spectrum > > > &  st 
) [inline]

Definition at line 138 of file paramset.h.


Member Function Documentation

bool TextureParams::FindBool ( const string &  n,
bool  d 
) const [inline]
float TextureParams::FindFloat ( const string &  n,
float  d 
) const [inline]
int TextureParams::FindInt ( const string &  n,
int  d 
) const [inline]
Normal TextureParams::FindNormal ( const string &  n,
const Normal d 
) const [inline]

Definition at line 166 of file paramset.h.

References ParamSet::FindOneNormal(), geomParams, and materialParams.

Point TextureParams::FindPoint ( const string &  n,
const Point d 
) const [inline]

Definition at line 160 of file paramset.h.

References ParamSet::FindOnePoint(), geomParams, and materialParams.

Spectrum TextureParams::FindSpectrum ( const string &  n,
const Spectrum d 
) const [inline]
string TextureParams::FindString ( const string &  n,
const string &  d = "" 
) const [inline]
Vector TextureParams::FindVector ( const string &  n,
const Vector d 
) const [inline]
Reference< Texture< float > > TextureParams::GetFloatTexture ( const string &  name,
float  def 
) const
const ParamSet& TextureParams::GetGeomParams (  )  const [inline]

Definition at line 176 of file paramset.h.

References geomParams.

const ParamSet& TextureParams::GetMaterialParams (  )  const [inline]

Definition at line 177 of file paramset.h.

References materialParams.

Reference< Texture< Spectrum > > TextureParams::GetSpectrumTexture ( const string &  name,
const Spectrum def 
) const
void TextureParams::ReportUnused (  )  const [inline]

Definition at line 172 of file paramset.h.

References geomParams, materialParams, and ParamSet::ReportUnused().

Referenced by MakeFloatTexture(), MakeMaterial(), and MakeSpectrumTexture().


Member Data Documentation

map<string, Reference<Texture<float> > >& TextureParams::floatTextures [private]

Definition at line 180 of file paramset.h.

Referenced by GetFloatTexture().

Definition at line 181 of file paramset.h.

Referenced by GetSpectrumTexture().


The documentation for this class was generated from the following files:
Generated on Sat Aug 28 20:00:15 2010 for pbrt by  doxygen 1.6.3