| 64 | //------------------------------------------------------------------------------ |
| 65 | |
| 66 | std::shared_ptr<Connection> |
| 67 | FlowScene:: |
| 68 | createConnection(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 | |
| 87 | std::shared_ptr<Connection> |
nothing calls this directly
no test coverage detected