Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/14/14 17:15:32 (10 years ago)
Author:
bburlacu
Message:

#1772: Small improvements to FragmentGraphView, moved tracking classes to separate folder.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking.Views/3.4/GenealogyGraphChart.cs

    r10732 r10746  
    225225    private static void DrawLineage(VisualGenealogyGraphNode node, Func<VisualGenealogyGraphNode, IEnumerable<VisualGenealogyGraphArc>> arcSelector, Func<VisualGenealogyGraphArc, VisualGenealogyGraphNode> nodeSelector) {
    226226      var brush = (SolidBrush)node.Brush;
     227      if (brush.Color != Color.Transparent) return; // this lineage was already drawn (avoid redrawing common ancestors)
    227228      brush.Color = node.Data.GetColor();
    228       var arcs = arcSelector(node).ToList();
     229      var arcs = arcSelector(node);
    229230      foreach (var arc in arcs) {
    230231        var source = arc.Source.Data;
     
    234235        arc.Pen.Brush = new LinearGradientBrush(start, end, source.GetColor(), target.GetColor());
    235236        arc.Pen.Color = Color.Transparent;
    236         //        if (arc == arcs[0]) { arc.Pen.Width = 2; } // mark connection to the root parent
    237237        DrawLineage(nodeSelector(arc), arcSelector, nodeSelector);
    238238      }
Note: See TracChangeset for help on using the changeset viewer.