Source code for 2D dymamic symbols.


#1

I am interested in developing a graphic modeling tool - for making something similar to UML diagrams, and I’m looking for some free source code to handle the symbols, such as an OO class symbol that enlarges as one adds member names.

It would be nice to get a description of the techniques used to do this. I will start from scratch if I need to.

Should I be using a graphics package for that? OpenGL, maybe?

Can someone point me in the right directions?


#2

I would personally not go with OpenGL, although this would be perfectly possible. I’m not sure what language you’re using, but perhaps you can have a look at the QT libraries. Especially at an example such at this:

http://doc.trolltech.com/4.3/graphicsview-diagramscene.html

I think that within QT it should be fairly easy to handle different diagram types with varying content. Just a hint. There might be other (more) viable solutions out there.

HTH


#3

It’s on the tough side of things, but for scientific visualisation and lab work orange is extremely powerful.
http://orange.biolab.si/

Orange canvas comes with all kind of widgets for flow graphs, if you’re determined enough you will most likely find something of interest in there.


#4

Thank you, both. I’m a few months away from completing my current project and will have a closer look at the alternatives. Both look great. I know QT is widely used and works across Windows and Linux.


#5

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.