MCPcopy Create free account
hub / github.com/BehaviorTree/Groot / createConnection

Method createConnection

QtNodeEditor/src/FlowScene.cpp:66–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64//------------------------------------------------------------------------------
65
66std::shared_ptr<Connection>
67FlowScene::
68createConnection(PortType connectedPort,
69 Node& node,
70 PortIndex portIndex)
71{
72 auto connection = std::make_shared<Connection>(connectedPort, node, portIndex);
73
74 auto cgo = detail::make_unique<ConnectionGraphicsObject>(*this, *connection);
75
76 // after this function connection points are set to node port
77 connection->setGraphicsObject(std::move(cgo));
78
79 connection->connectionGeometry().setPortLayout( layout() );
80
81 _connections[connection->id()] = connection;
82
83 return connection;
84}
85
86
87std::shared_ptr<Connection>

Callers

nothing calls this directly

Calls 2

setPortLayoutMethod · 0.45
nPortsMethod · 0.45

Tested by

no test coverage detected