GridRouter
Class
Routing based on the A* algorithm.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.dll
Syntax:
C#
public sealed class GridRouter : RoutingBase, IRouter
Inheritance: objectRoutingBaseGridRouter
Implements:
Constructors
Initializes a new instance of the GridRouter class.
C#
public GridRouter(IGraphInternal diagram, Func<Point, bool> locationDelegate)
The diagram.
locationDelegateFunc<Point, bool>The location delegate.
Initializes a new instance of the GridRouter class.
Properties
Methods
Finds the duplicate in the list of points which leads to loops in the paths.
C#
public static Point? FindDuplicate(IEnumerable<Point> source)
The source.
Returns:Point?
Gets the route points.
C#
public override IList<Point> GetRoutePoints(IConnection connection, bool showLastLine = true)
The connection.
showLastLineboolIf set to true the intermediate points will be added to the resulting path.
IList<Point>
Overrides:
Route(Point, Point)
IList<Point>
Returns null, if no path is found. Start- and End-Node are included in returned path.
C#
public IList<Point> Route(Point startPoint, Point endPoint)
IList<Point>