MaterialX 1.39.2
Loading...
Searching...
No Matches
ElementEquivalenceOptions Class Reference

A set of options for comparing the functional equivalence of elements. More...

#include <Element.h>

Public Attributes

bool performValueComparisons
 Perform value comparisons as opposed to literal string comparisons.
 
Value::FloatFormat floatFormat
 Floating point format to use for floating point value comparisons.
 
int floatPrecision
 Floating point precision to use for floating point value comparisons.
 
StringSet attributeExclusionList
 Specifies the set of attributes that should be excluded when performing a comparison.
 

Detailed Description

A set of options for comparing the functional equivalence of elements.

Member Data Documentation

◆ attributeExclusionList

StringSet attributeExclusionList

Specifies the set of attributes that should be excluded when performing a comparison.

By default all attributes are considered. Name and category attributes cannot be excluded.

For example, to exclude UI and documentation attributes from consideration the follow may be set: attributeExclusionList = { ValueElement::UI_MIN_ATTRIBUTE, ValueElement::UI_MAX_ATTRIBUTE, ValueElement::UI_SOFT_MIN_ATTRIBUTE, ValueElement::UI_SOFT_MAX_ATTRIBUTE, ValueElement::UI_STEP_ATTRIBUTE, Element::XPOS_ATTRIBUTE, Element::YPOS_ATTRIBUTE, Element::DOC_ATTRIBUTE };

◆ performValueComparisons

bool performValueComparisons

Perform value comparisons as opposed to literal string comparisons.

Default is true.


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