| 1490 | } |
| 1491 | |
| 1492 | void |
| 1493 | NodeGroup::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 | |
| 1531 | void |
| 1532 | NodeGroup::getInputs(std::vector<NodePtr >* inputs, |
no test coverage detected