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

Method buildTree

Gui/NodeGraphUndoRedo.cpp:739–750  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

737 }
738
739 void buildTree(const NodeGuiPtr & output,
740 const NodesGuiList& selectedNodes,
741 std::list<NodeGui*> & usedNodes)
742 {
743 QPointF outputPos = output->pos();
744 QSize nodeSize = output->getSize();
745
746 outputPos += QPointF(nodeSize.width() / 2., nodeSize.height() / 2.);
747 addNode(output, outputPos);
748
749 buildTreeInternal(selectedNodes, output.get(), output->mapToScene( output->mapFromParent(outputPos) ), usedNodes);
750 }
751
752 const std::list<TreeNode> & getNodes() const
753 {

Callers 1

Calls 5

QPointFClass · 0.70
getSizeMethod · 0.45
widthMethod · 0.45
heightMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected