Creating a node graph with links ?
Posted: Fri Jan 21, 2011 20:08
Hiya folks. I've just started using CEGUI for my project and I've reached a point where I'm not sure how to proceed and was hoping for some guidance from more experienced users. What I'm trying to create is a node graph like system where the user had the ability to connect nodes together however they want. To give you a visual example of the kind of thing I'm aiming for, here is a screengrab from filterforge which uses the kind of system I'm trying to create:

So far I have a master frame window which contains the graph (in the example image above this is the equivalent of the grid background) and then each node in the graph is a child frame window of the master, and each node can contain various other child windows/widgets depending on its function. So far so good. Where I'm stuck now is the best way to go about creating the node links (the lines that connect the different windows together). Does anyone have any good suggestions on how I could go about doing this?

So far I have a master frame window which contains the graph (in the example image above this is the equivalent of the grid background) and then each node in the graph is a child frame window of the master, and each node can contain various other child windows/widgets depending on its function. So far so good. Where I'm stuck now is the best way to go about creating the node links (the lines that connect the different windows together). Does anyone have any good suggestions on how I could go about doing this?