Changeset 10797 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Tracking
- Timestamp:
- 05/05/14 17:04:25 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Tracking/FragmentGraphView.cs
r10755 r10797 2 2 using System.Drawing; 3 3 using System.Linq; 4 using HeuristicLab.Common;5 4 using HeuristicLab.Core.Views; 6 5 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; … … 51 50 var tile = new SymbolicExpressionTreeTile(chart); 52 51 tile.LayoutEngine = symbolicExpressionEngine; 52 tile.Label = "Generation " + node.Rank; 53 53 tile.Root = node.Content.Root; 54 54 var tileNode = new TileLayoutNode { Tile = tile }; … … 94 94 var aPos = aTile.Position; 95 95 96 if (node.Rank.IsAlmost(0)) { 97 foreach (var s in node.Content.Root.IterateNodesPrefix()) { 96 if (node.Content.Index1 > 0) { 97 var subtree = node.Content.Root.NodeAt(node.Content.Index1); 98 foreach (var s in subtree.IterateNodesPrefix()) { 98 99 var primitive = aTile.GetPrimitive(s); 99 100 if (primitive != null) { 100 101 var rpb = primitive as RectangularPrimitiveBase; 101 102 if (rpb != null) { 102 rpb.Pen = new Pen(Color.ForestGreen); 103 } 104 } 105 } 106 } else { 107 108 if (node.Content.Index1 > 0) { 109 var subtree = node.Content.Root.NodeAt(node.Content.Index1); 110 foreach (var s in subtree.IterateNodesPrefix()) { 111 var primitive = aTile.GetPrimitive(s); 112 if (primitive != null) { 113 var rpb = primitive as RectangularPrimitiveBase; 114 if (rpb != null) { 115 rpb.Pen = new Pen(Color.RoyalBlue); 116 } 103 rpb.Pen = new Pen(Color.RoyalBlue); 117 104 } 118 105 }
Note: See TracChangeset
for help on using the changeset viewer.