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

Method getInputsOutputs

Engine/NodeGroup.cpp:1492–1529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1490}
1491
1492void
1493NodeGroup::getInputsOutputs(NodesList* nodes,
1494 bool useGuiConnexions) const
1495{
1496 QMutexLocker k(&_imp->nodesLock);
1497
1498 if (!useGuiConnexions) {
1499 for (U32 i = 0; i < _imp->inputs.size(); ++i) {
1500 NodesWList outputs;
1501 NodePtr input = _imp->inputs[i].lock();
1502 if (!input) {
1503 continue;
1504 }
1505 input->getOutputs_mt_safe(outputs);
1506 for (NodesWList::iterator it = outputs.begin(); it != outputs.end(); ++it) {
1507 NodePtr node = it->lock();
1508 if (node) {
1509 nodes->push_back(node);
1510 }
1511 }
1512 }
1513 } else {
1514 for (U32 i = 0; i < _imp->guiInputs.size(); ++i) {
1515 NodesWList outputs;
1516 NodePtr input = _imp->guiInputs[i].lock();
1517 if (!input) {
1518 continue;
1519 }
1520 input->getOutputs_mt_safe(outputs);
1521 for (NodesWList::iterator it = outputs.begin(); it != outputs.end(); ++it) {
1522 NodePtr node = it->lock();
1523 if (node) {
1524 nodes->push_back(node);
1525 }
1526 }
1527 }
1528 }
1529}
1530
1531void
1532NodeGroup::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