Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Automatic Routing of Connections
Automatic Routing of Connections [message #133762] Mon, 24 May 2004 08:42 Go to next message
Eclipse UserFriend
Originally posted by: bbdaffy.hotmail.com

Hi,

I am trying to make my connections route by themselves. I tried using
routers like the ManhattanConnectionRouter and the FanRouter etc. However
these routers seem to only avoid collisions with other connections, but
not with other figures. For example if I have three UMLClassFigures
arranged in a horizontal straight line, and I try to connect the first one
to the last one, the above mentioned routers will draw the line straight
across the middle Figure.

What is the appropriate manner for me to accomplish such a requirement?
Please advise. Thanks very much...

Regards.
Re: Automatic Routing of Connections [message #133775 is a reply to message #133762] Mon, 24 May 2004 09:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: brian.fernandes.codito.com

Hi Nicole,

Peter Armstrong had contributed a RectilinearRouter - one which would avoid
figures in it's path. You might try using that. Look up the newsgroup
archives for the source.

Wen I last checked, there were some issues with this router (wouldn't work
properly when the viewer was scrolled, AFAIK), I think Carl Hagenmaier fixed
a few of them - but he hasn't released the changes yet.

All the best,
Brian.
Re: Automatic Routing of Connections [message #133799 is a reply to message #133775] Mon, 24 May 2004 09:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bbdaffy.hotmail.com

Hi Brian,

Thanks a lot for your help. I will take a look at that. :)

Regards.


Brian Fernandes wrote:

> Hi Nicole,

> Peter Armstrong had contributed a RectilinearRouter - one which would avoid
> figures in it's path. You might try using that. Look up the newsgroup
> archives for the source.

> Wen I last checked, there were some issues with this router (wouldn't work
> properly when the viewer was scrolled, AFAIK), I think Carl Hagenmaier fixed
> a few of them - but he hasn't released the changes yet.

> All the best,
> Brian.
Re: Automatic Routing of Connections [message #133824 is a reply to message #133762] Mon, 24 May 2004 12:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

In tonight's build (midnight), there will be a new class which performs
shortest path routing between two nodes.

"nicole" <bbdaffy@hotmail.com> wrote in message
news:c8sch7$bt6$1@eclipse.org...
> Hi,
>
> I am trying to make my connections route by themselves. I tried using
> routers like the ManhattanConnectionRouter and the FanRouter etc. However
> these routers seem to only avoid collisions with other connections, but
> not with other figures. For example if I have three UMLClassFigures
> arranged in a horizontal straight line, and I try to connect the first one
> to the last one, the above mentioned routers will draw the line straight
> across the middle Figure.
>
> What is the appropriate manner for me to accomplish such a requirement?
> Please advise. Thanks very much...
>
> Regards.
>
Re: Automatic Routing of Connections [message #134533 is a reply to message #133824] Thu, 27 May 2004 07:43 Go to previous messageGo to next message
Sean Woodhouse is currently offline Sean WoodhouseFriend
Messages: 45
Registered: July 2009
Member
Woohoo!! Thanks guys!

"Randy Hudson" <none@us.ibm.com> wrote in message
news:c8sqiq$4mp$1@eclipse.org...
> In tonight's build (midnight), there will be a new class which performs
> shortest path routing between two nodes.
>
> "nicole" <bbdaffy@hotmail.com> wrote in message
> news:c8sch7$bt6$1@eclipse.org...
> > Hi,
> >
> > I am trying to make my connections route by themselves. I tried using
> > routers like the ManhattanConnectionRouter and the FanRouter etc.
However
> > these routers seem to only avoid collisions with other connections, but
> > not with other figures. For example if I have three UMLClassFigures
> > arranged in a horizontal straight line, and I try to connect the first
one
> > to the last one, the above mentioned routers will draw the line straight
> > across the middle Figure.
> >
> > What is the appropriate manner for me to accomplish such a requirement?
> > Please advise. Thanks very much...
> >
> > Regards.
> >
>
>
Re: Automatic Routing of Connections [message #135245 is a reply to message #134533] Tue, 01 June 2004 01:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

This code came late in the cycle because of IP issues. And it's not the
easiest stuff to use so I'll warn you up front.

The way to use this new algorithm is to combine a connection router and a
normal layout on your diagram's primary layer. The traditional layout will
be hooked into to allow tracking of obstacles (i.e. figures on your primary
layer). The connection router is just the bridge to the algorithm.

Similar to our directed graph layout, this algorithm can be invoked without
the use of figures. We didn't have time to develop the layout/router
wrappers to these algorithms, but we will demonstrate such a wrapper in the
logic example.

"Sean Woodhouse" <swoodhouse@agentissoftware.com> wrote in message
news:c945oj$llq$1@eclipse.org...
> Woohoo!! Thanks guys!
>
> "Randy Hudson" <none@us.ibm.com> wrote in message
> news:c8sqiq$4mp$1@eclipse.org...
> > In tonight's build (midnight), there will be a new class which performs
> > shortest path routing between two nodes.
> >
> > "nicole" <bbdaffy@hotmail.com> wrote in message
> > news:c8sch7$bt6$1@eclipse.org...
> > > Hi,
> > >
> > > I am trying to make my connections route by themselves. I tried using
> > > routers like the ManhattanConnectionRouter and the FanRouter etc.
> However
> > > these routers seem to only avoid collisions with other connections,
but
> > > not with other figures. For example if I have three UMLClassFigures
> > > arranged in a horizontal straight line, and I try to connect the first
> one
> > > to the last one, the above mentioned routers will draw the line
straight
> > > across the middle Figure.
> > >
> > > What is the appropriate manner for me to accomplish such a
requirement?
> > > Please advise. Thanks very much...
> > >
> > > Regards.
> > >
> >
> >
>
>
Re: Automatic Routing of Connections [message #137439 is a reply to message #135245] Thu, 10 June 2004 09:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bbdaffy.hotmail.com

Hi,

Sorry, these layout/router concepts are still very new to me. What is the
name of this new class and do i use it like i use a
ManhattanConnectionRouter? Thanks for all the help so far... :)

Regards,
Lee

Randy Hudson wrote:

> This code came late in the cycle because of IP issues. And it's not the
> easiest stuff to use so I'll warn you up front.

> The way to use this new algorithm is to combine a connection router and a
> normal layout on your diagram's primary layer. The traditional layout will
> be hooked into to allow tracking of obstacles (i.e. figures on your primary
> layer). The connection router is just the bridge to the algorithm.

> Similar to our directed graph layout, this algorithm can be invoked without
> the use of figures. We didn't have time to develop the layout/router
> wrappers to these algorithms, but we will demonstrate such a wrapper in the
> logic example.

> "Sean Woodhouse" <swoodhouse@agentissoftware.com> wrote in message
> news:c945oj$llq$1@eclipse.org...
> > Woohoo!! Thanks guys!
> >
> > "Randy Hudson" <none@us.ibm.com> wrote in message
> > news:c8sqiq$4mp$1@eclipse.org...
> > > In tonight's build (midnight), there will be a new class which performs
> > > shortest path routing between two nodes.
> > >
> > > "nicole" <bbdaffy@hotmail.com> wrote in message
> > > news:c8sch7$bt6$1@eclipse.org...
> > > > Hi,
> > > >
> > > > I am trying to make my connections route by themselves. I tried using
> > > > routers like the ManhattanConnectionRouter and the FanRouter etc.
> > However
> > > > these routers seem to only avoid collisions with other connections,
> but
> > > > not with other figures. For example if I have three UMLClassFigures
> > > > arranged in a horizontal straight line, and I try to connect the first
> > one
> > > > to the last one, the above mentioned routers will draw the line
> straight
> > > > across the middle Figure.
> > > >
> > > > What is the appropriate manner for me to accomplish such a
> requirement?
> > > > Please advise. Thanks very much...
> > > >
> > > > Regards.
> > > >
> > >
> > >
> >
> >
Re: Automatic Routing of Connections [message #137552 is a reply to message #137439] Thu, 10 June 2004 14:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

You should be able to see it in todays build. The algorithm is called
ShortestPathRouter.
A connection router example can be found in the Logic example.
Re: Automatic Routing of Connections [message #137704 is a reply to message #137552] Fri, 11 June 2004 02:18 Go to previous message
Eclipse UserFriend
Originally posted by: bbdaffy.hotmail.com

Ok. Thank you very much. :)

Regards,
Lee

Randy Hudson wrote:

> You should be able to see it in todays build. The algorithm is called
> ShortestPathRouter.
> A connection router example can be found in the Logic example.
Previous Topic:Refresh Connection Figures
Next Topic:adding layer
Goto Forum:
  


Current Time: Fri Mar 29 06:07:28 GMT 2024

Powered by FUDForum. Page generated in 0.03113 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top