| 124 | } |
| 125 | |
| 126 | void |
| 127 | NodeCollection::getNodes_recursive(NodesList& nodes, |
| 128 | bool onlyActive) const |
| 129 | { |
| 130 | std::list<NodeGroup*> groupToRecurse; |
| 131 | |
| 132 | { |
| 133 | QMutexLocker k(&_imp->nodesMutex); |
| 134 | for (NodesList::const_iterator it = _imp->nodes.begin(); it != _imp->nodes.end(); ++it) { |
| 135 | if ( onlyActive && !(*it)->isActivated() ) { |
| 136 | continue; |
| 137 | } |
| 138 | nodes.push_back(*it); |
| 139 | NodeGroup* isGrp = (*it)->isEffectGroup(); |
| 140 | if (isGrp) { |
| 141 | groupToRecurse.push_back(isGrp); |
| 142 | } |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | for (std::list<NodeGroup*>::const_iterator it = groupToRecurse.begin(); it != groupToRecurse.end(); ++it) { |
| 147 | (*it)->getNodes_recursive(nodes, onlyActive); |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | void |
| 152 | NodeCollection::addNode(const NodePtr& node) |
no test coverage detected