How does ShortestPath routing algorithm work? [message #219797] |
Fri, 21 July 2006 13:01  |
Eclipse User |
|
|
|
Originally posted by: pilgrim.us.ibm.com
The shortest path routing algorithm seems to do nothing different than
manual routing in my application. I've used the logic example as a base
and see the difference there. Switching to Manhattan in my application
does result in the same routing as the logic example. However, shortest
path does not. I have updated the value returned by getPreferredSize for
my figures. Any suggestions? Thanks!
|
|
|
|
|
|
|
Re: How does ShortestPath routing algorithm work? [message #222045 is a reply to message #219797] |
Thu, 24 August 2006 11:37  |
Eclipse User |
|
|
|
Originally posted by: pilgrim.us.ibm.com
Still a concern... The preferred size of my editparts are 40x40.
Depending on how many editparts are on the canvas, their relative
placement, and how many connections exist, I do indeed see that some of
the connecting lines are segmented and drawn around the editpart's figure.
However, there are also lines which cross it. That doesn't seem to be
the case with the logic example - never see the lines cross the gates
there when the shortest path routing option is used. I've tried various
values of the router spacing including values of 5, 10, 60, and 120. The
first line between the parts always crosses. Could this be because of the
size of the figures, inherent to the routing algorithm?
|
|
|
Powered by
FUDForum. Page generated in 0.04653 seconds