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

Method boundingRectWithEdges

Gui/NodeGui.cpp:1689–1703  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1687}
1688
1689QRectF
1690NodeGui::boundingRectWithEdges() const
1691{
1692 QRectF ret;
1693 QRectF bbox = boundingRect();
1694
1695 ret = mapToScene(bbox).boundingRect();
1696 for (InputEdges::const_iterator it = _inputEdges.begin(); it != _inputEdges.end(); ++it) {
1697 if ( !(*it)->hasSource() ) {
1698 ret = ret.united( (*it)->mapToScene( (*it)->boundingRect() ).boundingRect() );
1699 }
1700 }
1701
1702 return ret;
1703}
1704
1705bool
1706NodeGui::isNearby(QPointF &point)

Callers 3

checkForHintsMethod · 0.80
areAllNodesVisibleMethod · 0.80
calcNodesBoundingRectMethod · 0.80

Calls 4

hasSourceMethod · 0.80
boundingRectMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected