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

Method getActiveOutputs

source/MaterialXCore/Interface.cpp:408–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406}
407
408vector<OutputPtr> InterfaceElement::getActiveOutputs() const
409{
410 vector<OutputPtr> activeOutputs;
411 StringSet activeOutputNamesSet;
412 for (ConstElementPtr elem : traverseInheritance())
413 {
414 vector<OutputPtr> outputs = elem->asA<InterfaceElement>()->getOutputs();
415 for (const OutputPtr& output : outputs)
416 {
417 if (output && activeOutputNamesSet.insert(output->getName()).second)
418 {
419 activeOutputs.push_back(output);
420 }
421 }
422 }
423 return activeOutputs;
424}
425
426void InterfaceElement::setConnectedOutput(const string& inputName, OutputPtr output)
427{

Callers 13

mainFunction · 0.80
mainFunction · 0.80
setUiNodeInfoMethod · 0.80
addNodeMethod · 0.80
validateMethod · 0.80
isTransparentShaderGraphFunction · 0.80
isTransparentSurfaceFunction · 0.80
addOutputSocketsMethod · 0.80

Calls 3

insertMethod · 0.80
push_backMethod · 0.80
getNameMethod · 0.45

Tested by

no test coverage detected