Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/03/14 17:04:46 (10 years ago)
Author:
bburlacu
Message:

#1772: Merged trunk changes. Updated PhenotypicSimilarityCalculator, updated FragmentGraphView.

Location:
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views

  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Tracking/FragmentGraphView.Designer.cs

    r10746 r11638  
    4545      this.Name = "FragmentGraphView";
    4646      this.Size = new System.Drawing.Size(1144, 682);
     47      this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.FragmentGraphView_KeyPress);
    4748      this.ResumeLayout(false);
    4849
  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Tracking/FragmentGraphView.cs

    r11318 r11638  
    2424using System.Drawing;
    2525using System.Linq;
     26using System.Windows.Forms;
    2627using HeuristicLab.Core.Views;
    2728using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
     
    7172        var tile = new SymbolicExpressionTreeTile(chart);
    7273        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;
    7677        var tileNode = new TileLayoutNode { Tile = tile };
    7778        nodeToTileMap.Add(node, tileNode);
     
    115116        var aSize = aTile.Size;
    116117        var aPos = aTile.Position;
    117         var graphNode = node.Data;
     118        var tree = node.Data;
    118119
    119120        if (node.SubtreeIndex > 0) {
    120           var subtree = graphNode.Data.Root.NodeAt(node.SubtreeIndex);
     121          var subtree = tree.Root.NodeAt(node.SubtreeIndex);
    121122          foreach (var s in subtree.IterateNodesPrefix()) {
    122123            var primitive = aTile.GetPrimitive(s);
     
    130131        }
    131132        if (node.FragmentIndex > 0) {
    132           var subtree = graphNode.Data.Root.NodeAt(node.FragmentIndex);
     133          var subtree = tree.Root.NodeAt(node.FragmentIndex);
    133134          foreach (var s in subtree.IterateNodesPrefix()) {
    134135            var primitive = aTile.GetPrimitive(s);
     
    147148            var index = node.SubtreeIndex + (parent.FragmentIndex - parent.SubtreeIndex);
    148149            // 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);
    151152              var primitive = aTile.GetPrimitive(subtree);
    152153              primitive.Brush = new SolidBrush(Color.LightCoral);
     
    198199    }
    199200
     201    private void FragmentGraphView_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) {
     202      if (e.KeyChar == 'i') {
     203        // highlight node impacts
     204      }
     205    }
     206
    200207    #region Event Handlers (child controls)
    201208
Note: See TracChangeset for help on using the changeset viewer.