| 1504 | } |
| 1505 | |
| 1506 | void |
| 1507 | NodeGroup::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 | |
| 1545 | void |
| 1546 | NodeGroup::getInputs(std::vector<NodePtr>* inputs, |
no test coverage detected