MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / getWriters

Method getWriters

Engine/NodeGroup.cpp:239–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239void
240NodeCollection::getWriters(std::list<OutputEffectInstance*>* writers) const
241{
242 QMutexLocker k(&_imp->nodesMutex);
243
244 for (NodesList::iterator it = _imp->nodes.begin(); it != _imp->nodes.end(); ++it) {
245 if ( (*it)->getGroup() && (*it)->isActivated() && (*it)->getEffectInstance()->isWriter() && (*it)->isPartOfProject() ) {
246 OutputEffectInstance* out = dynamic_cast<OutputEffectInstance*>( (*it)->getEffectInstance().get() );
247 assert(out);
248 writers->push_back(out);
249 }
250 NodeGroup* isGrp = (*it)->isEffectGroup();
251 if (isGrp) {
252 isGrp->getWriters(writers);
253 }
254 }
255}
256
257void
258NodeCollection::quitAnyProcessingInternal(bool blocking)

Callers 1

Calls 9

getEffectInstanceMethod · 0.80
isPartOfProjectMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
getGroupMethod · 0.45
isActivatedMethod · 0.45
isWriterMethod · 0.45
getMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected