Aetheria/Assets/Scripts/NIH/MSAGL/Layout/LargeGraphLayout/LgEdgeInfo.cs
hyperion51 01a956eef6 MSAGL Support
Added new tech tree layout implementation using Microsoft Automatic Graph Layouts
Added some functionality to the database editor tools
2020-04-14 00:42:04 +01:00

44 lines
No EOL
1.2 KiB
C#

using System;
using System.Collections.Generic;
using System.Diagnostics;
using Microsoft.Msagl.Core.Geometry;
using Microsoft.Msagl.Core.Geometry.Curves;
using Microsoft.Msagl.Core.Layout;
namespace Microsoft.Msagl.Layout.LargeGraphLayout {
/// <summary>
///
/// </summary>
public class LgEdgeInfo:LgInfoBase {
#if DEBUG && TEST_MSAGL
/// <summary>
/// to string for debugging
/// </summary>
/// <returns></returns>
public override string ToString() {
return String.Format("zoom lvl={0:F2}", ZoomLevel);
}
#endif
/// <summary>
///
/// </summary>
/// <param name="edge"></param>
public LgEdgeInfo(Edge edge) {
Edge = edge;
ZoomLevel = int.MaxValue;
}
/// <summary>
///
/// </summary>
public Edge Edge { get; set; }
// /// <summary>
// /// those need to be set to correctly draw an edge of the level: ActiveGeometries include ICurves and Arrowheads ( labels todo?)
// /// </summary>
// public List<EdgePartialGeometryOnLevel> EdgeGeometriesByLevels; //EdgeGeometriesByLevels[i] corresponds to level i,
}
}