Changeset 11638 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Tracking
- Timestamp:
- 12/03/14 17:04:46 (10 years ago)
- Location:
- branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Views merged: 11332,11344,11346,11523,11541,11623
- Property svn:mergeinfo changed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Tracking/FragmentGraphView.Designer.cs
r10746 r11638 45 45 this.Name = "FragmentGraphView"; 46 46 this.Size = new System.Drawing.Size(1144, 682); 47 this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.FragmentGraphView_KeyPress); 47 48 this.ResumeLayout(false); 48 49 -
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Tracking/FragmentGraphView.cs
r11318 r11638 24 24 using System.Drawing; 25 25 using System.Linq; 26 using System.Windows.Forms; 26 27 using HeuristicLab.Core.Views; 27 28 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; … … 71 72 var tile = new SymbolicExpressionTreeTile(chart); 72 73 tile.LayoutEngine = symbolicExpressionEngine; 73 tile.Label = "Generation " + node. Data.Rank + Environment.NewLine +74 "Quality " + String.Format("{0:0.000}", node. Data.Quality);75 tile.Root = node.Data. Data.Root;74 tile.Label = "Generation " + node.Rank + Environment.NewLine + 75 "Quality " + String.Format("{0:0.000}", node.Quality); 76 tile.Root = node.Data.Root; 76 77 var tileNode = new TileLayoutNode { Tile = tile }; 77 78 nodeToTileMap.Add(node, tileNode); … … 115 116 var aSize = aTile.Size; 116 117 var aPos = aTile.Position; 117 var graphNode = node.Data;118 var tree = node.Data; 118 119 119 120 if (node.SubtreeIndex > 0) { 120 var subtree = graphNode.Data.Root.NodeAt(node.SubtreeIndex);121 var subtree = tree.Root.NodeAt(node.SubtreeIndex); 121 122 foreach (var s in subtree.IterateNodesPrefix()) { 122 123 var primitive = aTile.GetPrimitive(s); … … 130 131 } 131 132 if (node.FragmentIndex > 0) { 132 var subtree = graphNode.Data.Root.NodeAt(node.FragmentIndex);133 var subtree = tree.Root.NodeAt(node.FragmentIndex); 133 134 foreach (var s in subtree.IterateNodesPrefix()) { 134 135 var primitive = aTile.GetPrimitive(s); … … 147 148 var index = node.SubtreeIndex + (parent.FragmentIndex - parent.SubtreeIndex); 148 149 // some mutations create discontinuities which invalidate the index 149 if (index >= 0 && index < graphNode.Data.Length) {150 var subtree = graphNode.Data.NodeAt(index);150 if (index >= 0 && index < tree.Length) { 151 var subtree = tree.NodeAt(index); 151 152 var primitive = aTile.GetPrimitive(subtree); 152 153 primitive.Brush = new SolidBrush(Color.LightCoral); … … 198 199 } 199 200 201 private void FragmentGraphView_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) { 202 if (e.KeyChar == 'i') { 203 // highlight node impacts 204 } 205 } 206 200 207 #region Event Handlers (child controls) 201 208
Note: See TracChangeset
for help on using the changeset viewer.