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

Method getMaterialOutputs

source/MaterialXCore/Node.cpp:596–611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

594}
595
596vector<OutputPtr> NodeGraph::getMaterialOutputs() const
597{
598 vector<OutputPtr> materialOutputs;
599 for (auto graphOutput : getActiveOutputs())
600 {
601 if (graphOutput->getType() == MATERIAL_TYPE_STRING)
602 {
603 NodePtr node = graphOutput->getConnectedNode();
604 if (node && node->getType() == MATERIAL_TYPE_STRING)
605 {
606 materialOutputs.push_back(graphOutput);
607 }
608 }
609 }
610 return materialOutputs;
611}
612
613void NodeGraph::setNodeDef(ConstNodeDefPtr nodeDef)
614{

Callers 1

Material.cppFile · 0.45

Calls 3

push_backMethod · 0.80
getTypeMethod · 0.45
getConnectedNodeMethod · 0.45

Tested by

no test coverage detected