2023-01-12 23:02:53 +08:00
|
|
|
|
using AIStudio.Wpf.DiagramDesigner.Geometrys;
|
2023-01-08 09:22:37 +08:00
|
|
|
|
|
|
|
|
|
|
namespace AIStudio.Wpf.DiagramDesigner
|
|
|
|
|
|
{
|
|
|
|
|
|
public class PathGeneratorResult
|
|
|
|
|
|
{
|
2023-01-15 11:59:51 +08:00
|
|
|
|
public PathGeneratorResult(string[] paths, double sourceMarkerAngle, PointBase sourceMarkerPosition,
|
2023-02-04 11:16:39 +08:00
|
|
|
|
double targetMarkerAngle, PointBase targetMarkerPosition, PointBase[] route)
|
2023-01-08 09:22:37 +08:00
|
|
|
|
{
|
|
|
|
|
|
Paths = paths;
|
|
|
|
|
|
SourceMarkerAngle = sourceMarkerAngle;
|
|
|
|
|
|
SourceMarkerPosition = sourceMarkerPosition;
|
|
|
|
|
|
TargetMarkerAngle = targetMarkerAngle;
|
|
|
|
|
|
TargetMarkerPosition = targetMarkerPosition;
|
2023-02-04 11:16:39 +08:00
|
|
|
|
Route = route;
|
2023-01-08 09:22:37 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2023-02-04 11:16:39 +08:00
|
|
|
|
public string[] Paths
|
|
|
|
|
|
{
|
|
|
|
|
|
get;
|
|
|
|
|
|
}
|
|
|
|
|
|
public double SourceMarkerAngle
|
|
|
|
|
|
{
|
|
|
|
|
|
get;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// SourceMarker左上角的点
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public PointBase SourceMarkerPosition
|
|
|
|
|
|
{
|
|
|
|
|
|
get;
|
|
|
|
|
|
}
|
|
|
|
|
|
public double TargetMarkerAngle
|
|
|
|
|
|
{
|
|
|
|
|
|
get;
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// TargetMarker左上角的点
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public PointBase TargetMarkerPosition
|
|
|
|
|
|
{
|
|
|
|
|
|
get;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public PointBase[] Route
|
|
|
|
|
|
{
|
|
|
|
|
|
get;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public PointBase Last1
|
|
|
|
|
|
{
|
|
|
|
|
|
get => Route[Route.Length - 1];
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public PointBase Last2
|
|
|
|
|
|
{
|
|
|
|
|
|
get => Route[Route.Length - 2];
|
|
|
|
|
|
}
|
2023-01-08 09:22:37 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|