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

Method getNodes_recursive

Engine/NodeGroup.cpp:124–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 6

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