DiagramLite Programmer's Guide
RoutingOptions.RouteHeuristics Property
See Also
 





Gets or sets a heuristic function used to evaluate the distance between two pieces of the routing grid.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming.Silverlight

 Syntax

C#  Copy Code

public RouteHeuristics RouteHeuristics { get; set; }

Visual Basic  Copy Code

Public Property RouteHeuristics As RouteHeuristics

 Property Value

A RouteHeuristics delegate used to evaluate the distance from a current routing grid piece to the target one. The default is Distance.

 Remarks

While generating a path, the routing algorithm evaluates pieces of the routing grid adjacent to the current one. It takes into account the cost for passing trough a piece and adds to that cost a heuristic value calculated by RouteHeuristics. So the smaller heuristic value a piece has, the greater the chance the found route to go through that piece.

 See Also

RoutingOptions Members
RoutingOptions Class
MindFusion.Diagramming Namespace