Changeset 10728 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionTreeTile.cs
- Timestamp:
- 04/07/14 17:05:31 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionTreeTile.cs
r10685 r10728 35 35 /// </summary> 36 36 public class SymbolicExpressionTreeTile : Group { 37 public doublePreferredNodeWidth { get; set; }38 public doublePreferredNodeHeight { get; set; }37 public int PreferredNodeWidth { get; set; } 38 public int PreferredNodeHeight { get; set; } 39 39 40 40 public Size Size { … … 119 119 var actualRoot = Root; 120 120 if (Root.Symbol is ProgramRootSymbol && Root.SubtreeCount == 1) { actualRoot = Root.GetSubtree(0); } 121 122 LayoutEngine.NodeWidth = PreferredNodeWidth; 123 LayoutEngine.NodeHeight = PreferredNodeHeight; 124 121 125 var visualNodes = LayoutEngine.CalculateLayout(actualRoot); 122 126 … … 139 143 this.Add(rectangularPrimitive); 140 144 141 // int x = Position.X, y = Position.Y;142 // if (x > rectangularPrimitive.LowerLeft.X) {143 // x = (int)Math.Floor(rectangularPrimitive.LowerLeft.X);144 // }145 // if (y > rectangularPrimitive.LowerLeft.Y) {146 // y = (int)Math.Floor(rectangularPrimitive.LowerLeft.Y);147 // }148 // Position = new Point(x, y);149 // int w = Size.Width, h = Size.Height;150 151 152 145 if (rectangularPrimitive.Size.Width.IsAlmost(0) || rectangularPrimitive.Size.Height.IsAlmost(0)) { 153 146 throw new Exception("Primitive size cannot be zero.");
Note: See TracChangeset
for help on using the changeset viewer.