Changeset 13821 for branches/HeuristicLab.VariableInteractionNetworks/HeuristicLab.VariableInteractionNetworks.Views/3.3/Layout/ConstrainedForceDirectedLayout.cs
- Timestamp:
- 05/02/16 15:25:14 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.VariableInteractionNetworks/HeuristicLab.VariableInteractionNetworks.Views/3.3/Layout/ConstrainedForceDirectedLayout.cs
r13727 r13821 45 45 private Dictionary<uint, uint> idMap; 46 46 private Dictionary<IVertex, int> indexMap; 47 public double IdealEdgeLength { get; set; } = 1;48 public double DefaultEdgeLength { get; set; } = 200;49 public bool PreventOverlaps { get; set; } = true;50 public int LayoutWidth { get; set; } = 800;51 public int LayoutHeight { get; set; } = 600;52 public bool PerformEdgeRouting { get; set; } = true;53 public int MinHorizontalSpacing { get; set; } = 0;54 public int MinVerticalSpacing { get; set; } = 0;55 public EdgeRouting EdgeRoutingMode { get; set; } = EdgeRouting.None;47 public double IdealEdgeLength { get; set; } 48 public double DefaultEdgeLength { get; set; } 49 public bool PreventOverlaps { get; set; } 50 public int LayoutWidth { get; set; } 51 public int LayoutHeight { get; set; } 52 public bool PerformEdgeRouting { get; set; } 53 public int MinHorizontalSpacing { get; set; } 54 public int MinVerticalSpacing { get; set; } 55 public EdgeRouting EdgeRoutingMode { get; set; } 56 56 57 57 public Dictionary<IVertex, PointF> VertexPositions { … … 82 82 } 83 83 84 public ConstrainedForceDirectedLayout() { } 84 public ConstrainedForceDirectedLayout() { 85 IdealEdgeLength = 1; 86 DefaultEdgeLength = 200; 87 PreventOverlaps = true; 88 LayoutWidth = 800; 89 LayoutHeight = 600; 90 PerformEdgeRouting = true; 91 MinHorizontalSpacing = 0; 92 MinVerticalSpacing = 0; 93 EdgeRoutingMode = EdgeRouting.None; 94 } 85 95 86 96 public void Run(Dictionary<IVertex, RectangleF> nodeShapes) {
Note: See TracChangeset
for help on using the changeset viewer.