Here's a test example...
1) Install boost and boost graph lib 2) Build inkscape 3) Run inkscape: inkscape messy-connector-network.svg 4) select all: ctrl-a 5) open align-and-distribute dialog: ctrl-shift-a 6) hit the new lower-left most button
Tadah! Result should look like pretty-connector-network.svg
Cheers
Tim
Tim Dwyer wrote:
Hi Inkscapers,
Re: the earlier discussion I've checked in my first attempt at code to perform auto layout on a connector network. This raises some discussion points:
- It depends on the boost graph library (libboost-graph-dev debian
package).
- Note, this is a compile-time dependency only as this library is
header only.
- I've added a rule to configure.am that checks if these headers
are installed and if not, the boost dependent layout code is #ifdefed away. So inkscape compiles regardless of whether you have boost installed.
- A warning message is printed to stdout if the layout is initiated
and inkscape is compiled without boost
- You'll see a new button in the align-and-distribute dialog
(ctrl-shift-a)
- I made the icon very quickly... anyone with an eye for graphic
design is welcome to redo it.
- Maybe this button should be invisible if inkscape is compiled
without boost?
Anyway, to try it out... currently you just need to install the boost graph library, then svn up and make. Run inkscape and create a little network of rectangles linked by connectors. Select all, then hit the afore mentioned button.
Thanks go to Peter Moulder and Michael Wybrow for their help on this.
I'm going to be doing a lot more work on this... all feedback welcome!
Tim
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&da... _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel