Search
GridRouter Members
Constructors Properties Methods
 


Implements a link routing algorithm that uses a grid to represent the free and occupied regions in the diagram.

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

 Public Constructors

  Name Description

GridRouter

Initializes a new instance of the GridRouter class.

 Public Properties

  Name Description

avoidOverlaps

Gets or sets a value indicating whether to avoid overlapping links. (Inherited from Router.)

crossingCost

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

gridSize

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

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.

nodeVicinityCost

Gets or sets a value added to the total cost of a route if the route passes too close to a node.

nodeVicinitySize

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

turnCost

Gets or sets a value added to the total cost of a route if the route passes too close to a node.

 Public Methods

  Name Description

route

Called when a single link must be routed. (Inherited from Router.)

routeInternal

Calculates actual route and returns it as an array of points. (Inherited from Router.)

routeLinks

Called when more than one link must be routed. (Inherited from Router.)

 See Also