MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / getInputsOutputs

Method getInputsOutputs

Engine/NodeGroup.cpp:1506–1543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1504}
1505
1506void
1507NodeGroup::getInputsOutputs(NodesList* nodes,
1508 bool useGuiConnexions) const
1509{
1510 QMutexLocker k(&_imp->nodesLock);
1511
1512 if (!useGuiConnexions) {
1513 for (U32 i = 0; i < _imp->inputs.size(); ++i) {
1514 NodesWList outputs;
1515 NodePtr input = _imp->inputs[i].lock();
1516 if (!input) {
1517 continue;
1518 }
1519 input->getOutputs_mt_safe(outputs);
1520 for (NodesWList::iterator it = outputs.begin(); it != outputs.end(); ++it) {
1521 NodePtr node = it->lock();
1522 if (node) {
1523 nodes->push_back(node);
1524 }
1525 }
1526 }
1527 } else {
1528 for (U32 i = 0; i < _imp->guiInputs.size(); ++i) {
1529 NodesWList outputs;
1530 NodePtr input = _imp->guiInputs[i].lock();
1531 if (!input) {
1532 continue;
1533 }
1534 input->getOutputs_mt_safe(outputs);
1535 for (NodesWList::iterator it = outputs.begin(); it != outputs.end(); ++it) {
1536 NodePtr node = it->lock();
1537 if (node) {
1538 nodes->push_back(node);
1539 }
1540 }
1541 }
1542 }
1543}
1544
1545void
1546NodeGroup::getInputs(std::vector<NodePtr>* inputs,

Calls 6

getOutputs_mt_safeMethod · 0.80
sizeMethod · 0.45
lockMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected