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

Method addInstances

Gui/MultiInstancePanel.cpp:965–984  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

963}
964
965void
966MultiInstancePanel::addInstances(const std::list<NodePtr>& instances)
967{
968 std::list<NodePtr>::const_iterator next = instances.begin();
969
970 if ( next != instances.end() ) {
971 ++next;
972 }
973 for (std::list<NodePtr>::const_iterator it = instances.begin();
974 it != instances.end();
975 ++it) {
976 addRow(*it);
977 (*it)->activate( std::list<NodePtr>(), false, next == instances.end() );
978
979 // increment for next iteration
980 if ( next != instances.end() ) {
981 ++next;
982 }
983 } // for(it)
984}
985
986void
987MultiInstancePanel::removeRow(int index)

Callers 3

RemoveNodeCommandClass · 0.80
undoMethod · 0.80
redoMethod · 0.80

Calls 3

beginMethod · 0.45
endMethod · 0.45
activateMethod · 0.45

Tested by

no test coverage detected