Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/23/15 16:22:22 (9 years ago)
Author:
bburlacu
Message:

#1772: Adapted visualization code according to the changes in the HeuristicLab.Visualization branch.

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

Legend:

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

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Tracking/SymbolicDataAnalysisGenealogyGraphView.cs

    r12406 r13061  
    139139        var subtreeIndex = graphNode.Data.IterateNodesPrefix().ToList().IndexOf(node);
    140140        var traceGraph = TraceCalculator.TraceSubtree(graphNode, subtreeIndex, updateVertexWeights: false, updateSubtreeWeights: false, cacheTraceNodes: true);
    141         genealogyGraphChart.UpdateEnabled = false;
     141        genealogyGraphChart.SuspendRendering();
    142142        genealogyGraphChart.ClearPrimitives(); // clear everything
    143143        var rankMaximums = new Dictionary<double, double>();
     
    177177          }
    178178        }
    179         genealogyGraphChart.UpdateEnabled = true;
    180         genealogyGraphChart.EnforceUpdate();
     179        genealogyGraphChart.ResumeRendering();
    181180      } else {
    182181        // perform matching like it was done before
     
    218217
    219218      switch (args.Button) {
    220         case MouseButtons.Left: {
     219        case MouseButtons.Left:
     220          {
    221221            OnTreeNodeLeftClicked(subtree);
    222222            break;
    223223          }
    224         case MouseButtons.Middle: {
     224        case MouseButtons.Middle:
     225          {
    225226            OnTreeNodeMiddleClicked(subtree);
    226227            break;
     
    243244
    244245    private void graphChart_HighlightMatchingVertices(IEnumerable<IGenealogyGraphNode> vertices) {
    245       genealogyGraphChart.Chart.UpdateEnabled = false;
     246      genealogyGraphChart.SuspendRendering();
    246247      genealogyGraphChart.ClearPrimitives();
    247248      genealogyGraphChart.HighlightNodes(vertices);
    248       genealogyGraphChart.Chart.UpdateEnabled = true;
    249       genealogyGraphChart.Chart.EnforceUpdate();
     249      genealogyGraphChart.ResumeRendering();
    250250    }
    251251
Note: See TracChangeset for help on using the changeset viewer.