DiagramLinkRouter
StockSharp.Xaml.Diagram.Routing
Builds deterministic orthogonal routes around diagram node rectangles.
Propriedades
NodeClearance
public static double NodeClearance { get; }
value = DiagramLinkRouter.NodeClearance
Gets the clearance kept between a routed link and a node.
Métodos
Route
public IReadOnlyList<DiagramRoutePoint> Route(DiagramRoutePoint start, DiagramRoutePoint end, IReadOnlyCollection<DiagramRouteRect> obstacles)
result = diagramLinkRouter.Route(start, end, obstacles)
Routes a link between two socket points while avoiding node interiors.
- start
- Output socket point.
- end
- Input socket point.
- obstacles
- Node rectangles that must not be crossed.
Retorna: An ordered, deterministic list of orthogonal route points.