Nevron Forum

Questions about used Routing (autolayout Algorithm), LineConnector

https://www.nevron.com/Forum/Topic3440.aspx

By Leon Kusnezow - Wednesday, April 28, 2010

Hi all,

 

I've got some generally Questions about the Routing (LineConnector) in the Editor of Nevron Diagram.

 

 

1. Which Algorithm is for the Routing exactly used?

 

 

2. How far is it possible to customize/optimize the Behavior of the Routing?

 

like:

·        to forbid overlap of the ConnectingLines?

·        to reduce the waydirection changing to a minimum?

 

2. Is it possible to build an minimal distance  between 2 Diagrammshapes?

 

 

3. Is it possible to build minimal distance between 2 ConnectorLines?

 

 

4. Is it possible to create an nodal point for the connecting of Lines?

 

thank you

from Germany

By Nevron Support - Thursday, May 13, 2010

Hi Leon,

Regarding your questions:

1. Which Algorithm is for the Routing exactly used?
The routing uses a modified A* path finding algorithm.

2. How far is it possible to customize/optimize the Behavior of the Routing?
like:
· to forbid overlap of the ConnectingLines?
Currently this is not a built in feature of the routing manager, as it simply tries to avoid obstacles in connectors paths.

· to reduce the waydirection changing to a minimum?
This can be controlled by the ChangeDirectionCost of the drawing.RoutingManager. The higher the cost the more reluctant connectors will be to make direction changes (turns).

3. Is it possible to build an minimal distance between 2 Diagrammshapes?
4. Is it possible to build minimal distance between 2 ConnectorLines?
Please elaborate. What do you mean by minimal distance, how should this distance be enforced etc.

4. Is it possible to create an nodal point for the connecting of Lines?
Please elaborate. What is a nodal point?
By Leon Kusnezow - Friday, June 25, 2010

I'm sorry for the late reply...

1.-2. thank you for this information


4. Is it possible to build minimal distance between 2 shape blocks?

I customized the grid, so the user can only move the blocks by permanent snap-on aligned the grid.

I want to forbid the user to place a block over an other block. If you move the block over the other (mousedown) it is no problem when the blocks overlay, but if you finished with the movement (mouseup) should the block jump to the next avaible positon. 1 grid box should be the distance i need between 2 shape blocks as show in the figures below.

http://www.fotos-hochladen.net/distancesd6bp9w3.jpeg

[Nevron Team - its not possible to upload jpeg in this forum]

thank you in advance

Leon K.