IFEM  90A354
Classes | Public Member Functions | Protected Attributes | List of all members
TextureProperties Class Reference

Class containing a set of properties defined through a texture map. More...

#include <TextureProperties.h>

Collaboration diagram for TextureProperties:
Collaboration graph
[legend]

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, Propertyproperties
 Map of available properties.
 

Detailed Description

Class containing a set of properties defined through a texture map.

Member Function Documentation

◆ getProperty()

bool TextureProperties::getProperty ( const std::string &  name,
const Vec3 X,
double &  val 
) const

Get value for a property.

Parameters
[in]nameName of property
[in]XPosition (including parameter values) to evaluate property for
[out]valProperty 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().

◆ hasProperty()

bool TextureProperties::hasProperty ( const std::string &  name) const

Check if a property is available.

Parameters
nameName of property

References properties.


The documentation for this class was generated from the following files: