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

Method getOutputsConnectedToThisNode

Engine/Node.cpp:2940–2959  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2938}
2939
2940void
2941Node::getOutputsConnectedToThisNode(std::map<NodePtr, int>* outputs)
2942{
2943 ////Only called by the main-thread
2944 assert( QThread::currentThread() == qApp->thread() );
2945
2946 NodePtr thisSHared = shared_from_this();
2947 for (NodesWList::iterator it = _imp->outputs.begin(); it != _imp->outputs.end(); ++it) {
2948 NodePtr output = it->lock();
2949 if (!output) {
2950 continue;
2951 }
2952
2953 int indexOfThis = output->inputIndex(thisSHared);
2954 assert(indexOfThis != -1);
2955 if (indexOfThis >= 0) {
2956 outputs->insert( std::make_pair(output, indexOfThis) );
2957 }
2958 }
2959}
2960
2961const std::string &
2962Node::getScriptName() const

Callers 5

autoConnectNodesMethod · 0.80
refreshOutputNodeMethod · 0.80
onInputChangedMethod · 0.80
InlineGroupCommandMethod · 0.80

Calls 5

inputIndexMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
lockMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected