| 220 | } |
| 221 | |
| 222 | void |
| 223 | NodeCollection::getViewers(std::list<ViewerInstance*>* viewers) const |
| 224 | { |
| 225 | QMutexLocker k(&_imp->nodesMutex); |
| 226 | |
| 227 | for (NodesList::iterator it = _imp->nodes.begin(); it != _imp->nodes.end(); ++it) { |
| 228 | ViewerInstance* isViewer = (*it)->isEffectViewer(); |
| 229 | if (isViewer) { |
| 230 | viewers->push_back(isViewer); |
| 231 | } |
| 232 | NodeGroup* isGrp = (*it)->isEffectGroup(); |
| 233 | if (isGrp) { |
| 234 | isGrp->getViewers(viewers); |
| 235 | } |
| 236 | } |
| 237 | } |
| 238 | |
| 239 | void |
| 240 | NodeCollection::getWriters(std::list<OutputEffectInstance*>* writers) const |
no test coverage detected