MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/MaterialX / setContainsElements

Method setContainsElements

source/MaterialXCore/Node.cpp:826–841  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

824//
825
826void Backdrop::setContainsElements(const vector<ConstTypedElementPtr>& elems)
827{
828 if (!elems.empty())
829 {
830 StringVec stringVec;
831 for (ConstTypedElementPtr elem : elems)
832 {
833 stringVec.push_back(elem->getName());
834 }
835 setTypedAttribute(CONTAINS_ATTRIBUTE, stringVec);
836 }
837 else
838 {
839 removeAttribute(CONTAINS_ATTRIBUTE);
840 }
841}
842
843vector<TypedElementPtr> Backdrop::getContainsElements() const
844{

Callers 2

Node.cppFile · 0.80

Calls 4

setTypedAttributeFunction · 0.85
push_backMethod · 0.80
emptyMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected