Changeset 10746 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking.Views/3.4/GenealogyGraphChart.cs
- Timestamp:
- 04/14/14 17:15:32 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking.Views/3.4/GenealogyGraphChart.cs
r10732 r10746 225 225 private static void DrawLineage(VisualGenealogyGraphNode node, Func<VisualGenealogyGraphNode, IEnumerable<VisualGenealogyGraphArc>> arcSelector, Func<VisualGenealogyGraphArc, VisualGenealogyGraphNode> nodeSelector) { 226 226 var brush = (SolidBrush)node.Brush; 227 if (brush.Color != Color.Transparent) return; // this lineage was already drawn (avoid redrawing common ancestors) 227 228 brush.Color = node.Data.GetColor(); 228 var arcs = arcSelector(node) .ToList();229 var arcs = arcSelector(node); 229 230 foreach (var arc in arcs) { 230 231 var source = arc.Source.Data; … … 234 235 arc.Pen.Brush = new LinearGradientBrush(start, end, source.GetColor(), target.GetColor()); 235 236 arc.Pen.Color = Color.Transparent; 236 // if (arc == arcs[0]) { arc.Pen.Width = 2; } // mark connection to the root parent237 237 DrawLineage(nodeSelector(arc), arcSelector, nodeSelector); 238 238 }
Note: See TracChangeset
for help on using the changeset viewer.