|
IFEM
90A354
|
Class containing a set of properties defined through a texture map. More...
#include <TextureProperties.h>

Classes | |
| struct | Property |
| Struct holding information about a property. More... | |
Public Member Functions | |
| void | parse (const tinyxml2::XMLElement *elem) |
| Parse an XML definition. param elem XML element to parse. | |
| void | printLog () const |
| Print property information to log. | |
| bool | getProperty (const std::string &name, const Vec3 &X, double &val) const |
| Get value for a property. More... | |
| bool | hasProperty (const std::string &name) const |
| Check if a property is available. More... | |
Protected Attributes | |
| std::map< std::string, Property > | properties |
| Map of available properties. | |
Class containing a set of properties defined through a texture map.
| bool TextureProperties::getProperty | ( | const std::string & | name, |
| const Vec3 & | X, | ||
| double & | val | ||
| ) | const |
Get value for a property.
| [in] | name | Name of property |
| [in] | X | Position (including parameter values) to evaluate property for |
| [out] | val | Property value |
References utl::matrixBase< T >::dim(), TextureProperties::Property::max, TextureProperties::Property::min, TextureProperties::Property::prescaled, properties, utl::round(), TextureProperties::Property::textureData, and Vec4::u.
Referenced by PropertyFunc::evaluate().
| bool TextureProperties::hasProperty | ( | const std::string & | name | ) | const |