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

Method setNodeToPort

QtNodeEditor/src/Connection.cpp:226–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224
225
226void
227Connection::
228setNodeToPort(Node& node,
229 PortType portType,
230 PortIndex portIndex)
231{
232 auto& nodeWeak = getNode(portType);
233
234 nodeWeak = &node;
235
236 if (portType == PortType::Out)
237 _outPortIndex = portIndex;
238 else
239 _inPortIndex = portIndex;
240
241 _connectionState.setNoRequiredPort();
242
243 updated(*this);
244}
245
246
247void

Callers

nothing calls this directly

Calls 1

setNoRequiredPortMethod · 0.80

Tested by

no test coverage detected