Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic TreeLayout and RoutingOptions (Read 1179 times)
jaschwa
YaBB Newbies
*
Offline



Posts: 3
Location: FL
Joined: Mar 1st, 2007
TreeLayout and RoutingOptions
Mar 21st, 2007 at 2:58pm
Print Post  
I'm evaluating FlowChart.NET, using version 4.3.0.20058.

Does the TreeLayout use the FlowChart.RoutingOptions at all? I'm changing the RoutingOptions, but there's no change in the layout.

This is my specific problem: Nodes A and D are siblings. Nodes A, B,C are connected. Node C connects to Node C. The problem is that the Arrow from D to C goes over Node B.

A-----B-----C
|
D-----+

Changing the routing options NodeVicinityCost and NodeSize don't seem to have any affect. Is there any way to prevent this overlap?
  

Jeff Schwandt&&Corporate Net Solutions&&Fidelity National Financial&&Jacksonville, FL&&
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: TreeLayout and RoutingOptions
Reply #1 - Mar 21st, 2007 at 4:27pm
Print Post  
TreeLayout does not use arrow routing and ignores the RoutingOptions. The layout works only with strict trees; if a graphs is not a tree, some arrows are ignored. E.g. if D in your graphs is connected to both B and C, the DC link might be ignored.

You could explicitly call the Route method of arrows that are not processed by the tree layout. A possible way to do that is to use the TreeEnumerator class to find all arrows that are considered a part of the tree, and then call Route on all other arrows.

Another option is to use the LayeredLayout. If you need it to produce orthogonal links, you can use the method shown here -

http://mindfusion.org/cgi/Forum/YaBB.pl?board=fcnet_disc;action=display;num=1171...

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