IGraphHost
What a host must answer so GraphCanvas can run the interaction.
| Inherited By | face::FaceGraphHost and study::ui::StudyGraphHost |
In the namespace widgets::graph. Declared in src/libs/libwidgets/graph/IGraphHost.hpp.
Detailed description
⚠ The canvas NEVER holds a host node. It holds ids, and every question goes back through this interface. That is deliberate and it is the whole reason one widget can serve two different node models: libbahn's nodes are audio processors on a signal-flow graph, and libface's are mass points on a spring rig. Those models are not unified and this port does not try to unify them — see the note in parity-matrix.md.
Id is opaque to the canvas. A host may return a pointer value, a row index or a hash, so long as it is stable for as long as the node lives and NoId never names a live node.