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

Method getDeclaration

source/MaterialXCore/Node.cpp:808–820  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

806}
807
808ConstInterfaceElementPtr NodeGraph::getDeclaration(const string&) const
809{
810 ConstNodeDefPtr nodeDef = getNodeDef();
811 if (nodeDef)
812 {
813 return nodeDef;
814 }
815 if (!hasNodeDefString())
816 {
817 return getSelf()->asA<InterfaceElement>();
818 }
819 return nullptr;
820}
821
822//
823// Backdrop methods

Callers 5

Node.cppFile · 0.45
flattenSubgraphsMethod · 0.45
getDefaultValueMethod · 0.45
Element.cppFile · 0.45
validateMethod · 0.45

Calls 3

getNodeDefFunction · 0.85
hasNodeDefStringFunction · 0.85
getSelfFunction · 0.70

Tested by

no test coverage detected