6 #ifndef MATERIALX_VARIANT_H
7 #define MATERIALX_VARIANT_H
73 return addChild<Variant>(
name);
79 return getChildOfType<Variant>(
name);
85 return getChildrenOfType<Variant>();
91 removeChildOfType<Variant>(
name);
108 Element(parent, CATEGORY, name)
shared_ptr< const VariantAssign > ConstVariantAssignPtr
A shared pointer to a const VariantAssign.
shared_ptr< Variant > VariantPtr
A shared pointer to a Variant.
static const string VARIANT_SET_ATTRIBUTE
#define MATERIALX_NAMESPACE_BEGIN
static const string CATEGORY
void setVariantSetString(const string &variantSet)
Set the element's variant set string.
static const string CATEGORY
const string & getVariantSetString() const
Return the element's variant set string.
MATERIALX_NAMESPACE_BEGIN MX_CORE_API const string EMPTY_STRING
const string & getAttribute(const string &attrib) const
VariantSet(ElementPtr parent, const string &name)
VariantPtr addVariant(const string &name=EMPTY_STRING)
shared_ptr< VariantSet > VariantSetPtr
A shared pointer to a VariantSet.
bool hasVariantSetString() const
Return true if the given element has a variant set string.
void setVariantString(const string &variant)
Set the element's variant string.
bool hasVariantString() const
Return true if the given element has a variant string.
const string & getVariantString() const
Return the element's variant string.
shared_ptr< VariantAssign > VariantAssignPtr
A shared pointer to a VariantAssign.
static const string VARIANT_ATTRIBUTE
GLuint const GLchar * name
shared_ptr< const VariantSet > ConstVariantSetPtr
A shared pointer to a const VariantSet.
static const string CATEGORY
void setAttribute(const string &attrib, const string &value)
Set the value string of the given attribute.
void removeVariant(const string &name)
Remove the Variant, if any, with the given name.
bool hasAttribute(const string &attrib) const
Return true if the given attribute is present.
VariantPtr getVariant(const string &name) const
Return the Variant, if any, with the given name.
shared_ptr< Element > ElementPtr
A shared pointer to an Element.
#define MATERIALX_NAMESPACE_END
shared_ptr< const Variant > ConstVariantPtr
A shared pointer to a const Variant.
Variant(ElementPtr parent, const string &name)
vector< VariantPtr > getVariants() const
Return a vector of all Variant elements in the look.
VariantAssign(ElementPtr parent, const string &name)