DiagramLite Programmer's Guide
RoutingOptions Members
Properties Methods
 


Allows customization of various aspects of the link routing algorithm.

The following tables list the members exposed by the RoutingOptions type.

 Public Properties

  Name Description

Anchoring

Gets or sets a value indicating whether to align link ends to the anchor points of nodes.

CrossingCost

Gets or sets a value added to the total cost of a route if it causes a link to cross another link.

Distance

Gets a heuristic delegate function that returns the real distance sqrt(dx^2 + dy^2) between two pieces of the routing grid.

DistSquare

Gets a heuristic delegate function that returns the square distance dx^2 + dy^2 as a cost evaluation of the distance between two pieces of the routing grid.

DontOptimizeLongRoutes

Gets or sets a value indicating whether long routes don't have their number of segments minimized in order to save up processing time.

EndOrientation

Gets or sets the desired orientation of the last segments of routed links.

GridSize

Gets or sets the size of the pieces of the routing grid.

IgnoreAnchoring

For internal use.

LengthCost

Gets or sets a value added to the total cost of a route for each piece of the routing grid occupied by the route.

MaxAbs

Gets a heuristic delegate function that returns max(dx, dy) as a cost evaluation of the distance between two pieces of the routing grid.

NodeVicinityCost

Gets or sets the size of a buffer zone around a node for which routes get a penalty cost if they pass through it.

NodeVicinitySize

Gets or sets the size of a buffer zone around a node in which routes get a penalty cost if they pass through it.

RouteHeuristics

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

SmartPolylineEnds

Gets or sets a value indicating whether the end segments of polyline links should be oriented orthogonally to the node bounds.

StartOrientation

Gets or sets the desired orientation of the first segments of routed links.

TriggerRerouting

Gets or sets a value indicating under what circumstances links are rerouted automatically.

TurnCost

Gets or sets a value added to the total cost of a route if it makes a turn.

 Public Methods

  Name Description

SetDefaultMode

Resets all routing properties to their default values.

SetMinSegmentsMode

Assigns a predefined set of values to the routing properties which allows finding paths that have a small number of segments.

SetQuickMode

Assigns a predefined set of values to the routing properties which allows finding paths quickly but the found paths are of low quality.

 See Also

RoutingOptions Class
MindFusion.Diagramming Namespace