Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Routing with Two Way Links (Read 2835 times)
Aziz ur Rahman
YaBB Newbies
*
Offline



Posts: 43
Joined: Feb 23rd, 2009
Routing with Two Way Links
Jun 18th, 2009 at 8:17am
Print Post  
u want to layout a diagram in which two nodes can have two or more links between them. Currently If i use any of the layout now, it will overlap the links. Is there any property i can set and use a particular layout algo. Check the picture below. It is the kind of result i want.

http://weblogs.com.pk/photos/aziz/images/168078/original.aspx
  

Syed Aziz ur Rahman
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Routing with Two Way Links
Reply #1 - Jun 18th, 2009 at 9:28am
Print Post  
Hi,

Copy the code from the event handler here to a method, and call it for all link pairs:
http://mindfusion.eu/Forum/YaBB.pl?board=fcnet_disc;action=display;num=122711142...

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Aziz ur Rahman
YaBB Newbies
*
Offline



Posts: 43
Joined: Feb 23rd, 2009
Re: Routing with Two Way Links
Reply #2 - Aug 11th, 2009 at 1:32pm
Print Post  
Dear Stoyo,
The solution you provide may work for a normal view but when i am trying it on 3D view, it is not working.

I have tried setting the style property of the links to Bezier but it did not help as well.


2) The link created event is not getting fired when i am creating a link programmatically in 3D view.

Can you please check and propose some other solution.
  

Syed Aziz ur Rahman
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Routing with Two Way Links
Reply #3 - Aug 13th, 2009 at 4:00pm
Print Post  
Hi Aziz,

Links in the 3D view are always drawn as straight lines between the 3D coordinates of the nodes they connect. We'll see if we can add some support for 3D Bezier curves. At this time you might try setting a Pen that draws two lines when you detect a double link; the MoleculeViewer example shows how to do that by setting the CompoundArray property of the "twoLinks" pen.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint