Table of Contents

Class ManualRouter

Namespace
FlowGraph.Core.Routing
Assembly
FlowGraph.Core.dll

Routes edges using user-defined waypoints without automatic path calculation. Used when Manual is set.

public class ManualRouter : IEdgeRouter
Inheritance
ManualRouter
Implements
Inherited Members

Remarks

This router simply interpolates through the user's waypoints without obstacle avoidance. For guided routing that respects waypoints while avoiding obstacles, use OrthogonalRouter with Guided mode.

Properties

CornerRadius

Radius for corner smoothing (if enabled).

public double CornerRadius { get; set; }

Property Value

double

Instance

Singleton instance.

public static ManualRouter Instance { get; }

Property Value

ManualRouter

SmoothCorners

Whether to smooth corners at waypoints.

public bool SmoothCorners { get; set; }

Property Value

bool

Methods

Route(EdgeRoutingContext, Edge)

Calculates waypoints for an edge to route around obstacles.

public IReadOnlyList<Point> Route(EdgeRoutingContext context, Edge edge)

Parameters

context EdgeRoutingContext

The routing context containing graph information.

edge Edge

The edge to route.

Returns

IReadOnlyList<Point>

A list of waypoints (including start and end points).