-
Hello Eckig, I am trying to set a method to pre-build connections between nodes instead of creating them in the Editor. The idea is avoid any user Drag and drop actions, but instead draw the connections between nodes when the GraphEditorContainer is shown in the screen: The idea is build such connections by crossing data from the Database, which the relations/connections between nodes are defined in its corresponding tables. As for Nodes, Connectors can also have Ids that could be potentially linked to each other (outputConnectorId -> inputConnectorId), but I cannot find the command or an example where the user action is actually translated into this command. Is there an example for this or could you please let me know which command works for this action? Edit: I found the GConnection class with the implementation (GConnectionClass), so I thought I could do my own customized connection class, but the GModel does not have a method for setConnections |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Have a look into the wiki: https://github.com/eckig/graph-editor/wiki/2.-Feature-Overview You have the You can also look into this issue, where a similar question was asked: #42 |
Beta Was this translation helpful? Give feedback.
Have a look into the wiki: https://github.com/eckig/graph-editor/wiki/2.-Feature-Overview
You have the
GNode
s in the model. Each node hasGConnector
s and each connector hasGConnection
s. So you can add the connections programmatically by adding them to the connectors.You can also look into this issue, where a similar question was asked: #42