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

Method getNodes_recursive

Engine/NodeGroup.cpp:126–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126void
127NodeCollection::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
151void
152NodeCollection::addNode(const NodePtr& node)

Callers 7

destroyNodeMethod · 0.80
quitNowMethod · 0.80

Calls 4

beginMethod · 0.45
endMethod · 0.45
isActivatedMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected