Re: A patch to support creating network diagrams using programs



On Mon, 2005-05-16 at 08:25 -0400, Michael Tiemann wrote:
I'm writing some scripts to extract data from spreadsheets and build
network flow diagrams.  I assumed that if I created a line that
connected handle A to handle B that dia would figure out where to put
the line and display it.  It did not (instead defaulting to position 0,0
and bounding box 0,0,0,0).  Here's a patch so that locations and bb's
can be inferred by what they connect.

A nice idea, but not quite that easy.  You implementation has a couple
problems (assuming that all objects have handles, assuming that
connectionpoint 0 is always connected on the objects we want to fix),
but also a more serious problem:  When you do move_handle, you're not
guaranteed that the connection will go to the connection point it was
originally on, but rather on the connection point that is on top at that
place.  Hopefully a generated diagram would not have many overlaps like
that, though.

-Lars

-- 
Lars Clausen <lars raeder dk>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]