GUI creation for boost::graph

Hi, I whish to create a boost graph gui using qt However I have a problem I do not know how to link qt to boost graph. If I use bundle property of qt object could I get next and previous node from the qtobject? I am thinking about using a sets indexed by qtobject adress but I seems really painfull for managing memory. Particularly I want my implement my algorigthm on the graph and able to modify the graphical object from the boost::graph but also able to modify the graph from graphical qt object Any ideas? Bastien

On Thu, 3 Mar 2011, Bastien ROUCARIES wrote:
Hi,
I whish to create a boost graph gui using qt
However I have a problem I do not know how to link qt to boost graph.
If I use bundle property of qt object could I get next and previous node from the qtobject?
Unless you put an external map from QObjects to BGL nodes, you will not be able to do that lookup.
I am thinking about using a sets indexed by qtobject adress but I seems really painfull for managing memory.
You will need some kind of lookup table like that, but it could be a hash table. It looks like QObject has a property mechanism, so you might be able to use that to link back to the BGL graph.
Particularly I want my implement my algorigthm on the graph and able to modify the graphical object from the boost::graph but also able to modify the graph from graphical qt object
-- Jeremiah Willcock

Le jeudi 3 mars 2011 20:28:02, Jeremiah Willcock a écrit :
On Thu, 3 Mar 2011, Bastien ROUCARIES wrote:
Hi,
I whish to create a boost graph gui using qt
However I have a problem I do not know how to link qt to boost graph.
If I use bundle property of qt object could I get next and previous node from the qtobject?
Unless you put an external map from QObjects to BGL nodes, you will not be able to do that lookup.
Thanks
I am thinking about using a sets indexed by qtobject adress but I seems really painfull for managing memory.
Ok
You will need some kind of lookup table like that, but it could be a hash table. It looks like QObject has a property mechanism, so you might be able to use that to link back to the BGL graph.
Particularly I want my implement my algorigthm on the graph and able to modify the graphical object from the boost::graph but also able to modify the graph from graphical qt object
-- Jeremiah Willcock _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

On Mon, 7 Mar 2011, Bastien ROUCARIES wrote:
Le jeudi 3 mars 2011 20:28:02, Jeremiah Willcock a écrit :
On Thu, 3 Mar 2011, Bastien ROUCARIES wrote:
Hi,
I whish to create a boost graph gui using qt
However I have a problem I do not know how to link qt to boost graph.
If I use bundle property of qt object could I get next and previous node from the qtobject?
Unless you put an external map from QObjects to BGL nodes, you will not be able to do that lookup.
Thanks
I am thinking about using a sets indexed by qtobject adress but I seems really painfull for managing memory.
Ok
You will need some kind of lookup table like that, but it could be a hash table. It looks like QObject has a property mechanism, so you might be able to use that to link back to the BGL graph.
You might want to take a look at this part of QObject; it might be the way to do the mapping you want. -- Jeremiah Willcock

Hi,
I whish to create a boost graph gui using qt
However I have a problem I do not know how to link qt to boost graph.
If I use bundle property of qt object could I get next and previous node from the qtobject?
I am thinking about using a sets indexed by qtobject adress but I seems really painfull for managing memory.
Particularly I want my implement my algorigthm on the graph and able to modify the graphical object from the boost::graph but also able to modify the graph from graphical qt object
Any ideas?
Hi, I did this prototype for my company last fall: http://youtube.com/watch?v=OHdc-wtSmg0 But its not connected to Qt, Qt is only used as a frontend here. I think sofar its best, when you have a central Object which manages the graph, and can be queried from Qt. Also of course you could try to get boost::graph with the Model/View Concept of Qt working, that would be indeed neat. regards, Jens Weller -- Schon gehört? GMX hat einen genialen Phishing-Filter in die Toolbar eingebaut! http://www.gmx.net/de/go/toolbar
participants (3)
-
Bastien ROUCARIES
-
Jens Weller
-
Jeremiah Willcock