mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-02 07:06:37 +08:00
暂时存一版
This commit is contained in:
@@ -5,19 +5,57 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
public class PathGeneratorResult
|
||||
{
|
||||
public PathGeneratorResult(string[] paths, double sourceMarkerAngle, PointBase sourceMarkerPosition,
|
||||
double targetMarkerAngle, PointBase targetMarkerPosition)
|
||||
double targetMarkerAngle, PointBase targetMarkerPosition, PointBase[] route)
|
||||
{
|
||||
Paths = paths;
|
||||
SourceMarkerAngle = sourceMarkerAngle;
|
||||
SourceMarkerPosition = sourceMarkerPosition;
|
||||
TargetMarkerAngle = targetMarkerAngle;
|
||||
TargetMarkerPosition = targetMarkerPosition;
|
||||
Route = route;
|
||||
}
|
||||
|
||||
public string[] Paths { get; }
|
||||
public double SourceMarkerAngle { get; }
|
||||
public PointBase SourceMarkerPosition { get; }
|
||||
public double TargetMarkerAngle { get; }
|
||||
public PointBase TargetMarkerPosition { get; }
|
||||
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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user