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

Method getContainsElements

source/MaterialXCore/Node.cpp:843–859  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

841}
842
843vector<TypedElementPtr> Backdrop::getContainsElements() const
844{
845 vector<TypedElementPtr> vec;
846 ConstGraphElementPtr graph = getAncestorOfType<GraphElement>();
847 if (graph)
848 {
849 for (const string& str : getTypedAttribute<StringVec>(CONTAINS_ATTRIBUTE))
850 {
851 TypedElementPtr elem = graph->getChildOfType<TypedElement>(str);
852 if (elem)
853 {
854 vec.push_back(elem);
855 }
856 }
857 }
858 return vec;
859}
860
861bool Backdrop::validate(string* message) const
862{

Callers 2

Node.cppFile · 0.80

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected