Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/17/15 08:48:41 (9 years ago)
Author:
bburlacu
Message:

#1772: Merged trunk and worked on the graph view.

Location:
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views
Files:
4 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/HeuristicLab.Problems.DataAnalysis.Symbolic.Views-3.4.csproj

    r12155 r12208  
    4747    <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    4848    <Prefer32Bit>false</Prefer32Bit>
     49    <UseVSHostingProcess>false</UseVSHostingProcess>
    4950  </PropertyGroup>
    5051  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
     
    103104      <Private>False</Private>
    104105    </Reference>
    105     <Reference Include="EPPlus-3.1.3, Version=3.1.3.0, Culture=neutral, PublicKeyToken=ea159fdaa78159a1, processorArchitecture=MSIL">
     106    <Reference Include="EPPlus-4.0.3, Version=4.0.3.0, Culture=neutral, PublicKeyToken=ea159fdaa78159a1, processorArchitecture=MSIL">
    106107      <SpecificVersion>False</SpecificVersion>
    107       <HintPath>..\..\..\..\trunk\sources\bin\EPPlus-3.1.3.dll</HintPath>
     108      <HintPath>..\..\..\..\trunk\sources\bin\EPPlus-4.0.3.dll</HintPath>
    108109      <Private>False</Private>
    109110    </Reference>
     
    366367      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
    367368      <SubType>Designer</SubType>
     369    </EmbeddedResource>
     370    <EmbeddedResource Include="Tracking\SymbolicDataAnalysisGenealogyGraphView.resx">
     371      <DependentUpon>SymbolicDataAnalysisGenealogyGraphView.cs</DependentUpon>
    368372    </EmbeddedResource>
    369373  </ItemGroup>
  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Tracking/SymbolicDataAnalysisGenealogyGraphView.Designer.cs

    r12017 r12208  
    4646    private void InitializeComponent() {
    4747      this.groupBox1 = new System.Windows.Forms.GroupBox();
     48      this.nodeWeightLabel = new System.Windows.Forms.Label();
     49      this.nodeWeightLabelLabel = new System.Windows.Forms.Label();
    4850      this.navigateRightButton = new System.Windows.Forms.Button();
    4951      this.navigateLeftButton = new System.Windows.Forms.Button();
     
    7678      // groupBox1
    7779      //
     80      this.groupBox1.Controls.Add(this.nodeWeightLabel);
     81      this.groupBox1.Controls.Add(this.nodeWeightLabelLabel);
    7882      this.groupBox1.Controls.Add(this.navigateRightButton);
    7983      this.groupBox1.Controls.Add(this.navigateLeftButton);
     
    8488      this.groupBox1.Controls.Add(this.nodeQualityLabel);
    8589      this.groupBox1.Controls.Add(this.nodeQualityLabelLabel);
    86       this.groupBox1.Location = new System.Drawing.Point(420, 4);
     90      this.groupBox1.Location = new System.Drawing.Point(624, 4);
    8791      this.groupBox1.Name = "groupBox1";
    88       this.groupBox1.Size = new System.Drawing.Size(624, 44);
     92      this.groupBox1.Size = new System.Drawing.Size(617, 44);
    8993      this.groupBox1.TabIndex = 2;
    9094      this.groupBox1.TabStop = false;
    9195      this.groupBox1.Text = "Current Node";
    9296      //
     97      // nodeWeightLabel
     98      //
     99      this.nodeWeightLabel.AutoSize = true;
     100      this.nodeWeightLabel.Location = new System.Drawing.Point(285, 20);
     101      this.nodeWeightLabel.Name = "nodeWeightLabel";
     102      this.nodeWeightLabel.Size = new System.Drawing.Size(0, 13);
     103      this.nodeWeightLabel.TabIndex = 8;
     104      //
     105      // nodeWeightLabelLabel
     106      //
     107      this.nodeWeightLabelLabel.AutoSize = true;
     108      this.nodeWeightLabelLabel.Location = new System.Drawing.Point(241, 20);
     109      this.nodeWeightLabelLabel.Name = "nodeWeightLabelLabel";
     110      this.nodeWeightLabelLabel.Size = new System.Drawing.Size(44, 13);
     111      this.nodeWeightLabelLabel.TabIndex = 7;
     112      this.nodeWeightLabelLabel.Text = "Weight:";
     113      //
    93114      // navigateRightButton
    94115      //
    95116      this.navigateRightButton.Image = global::HeuristicLab.Problems.DataAnalysis.Symbolic.Views.Properties.Resources.LargeLeftDiagonal_235;
    96       this.navigateRightButton.Location = new System.Drawing.Point(309, 15);
     117      this.navigateRightButton.Location = new System.Drawing.Point(589, 14);
    97118      this.navigateRightButton.Name = "navigateRightButton";
    98119      this.navigateRightButton.Size = new System.Drawing.Size(22, 22);
     
    104125      //
    105126      this.navigateLeftButton.Image = global::HeuristicLab.Problems.DataAnalysis.Symbolic.Views.Properties.Resources.LargeRightDiagonal_238;
    106       this.navigateLeftButton.Location = new System.Drawing.Point(281, 15);
     127      this.navigateLeftButton.Location = new System.Drawing.Point(561, 14);
    107128      this.navigateLeftButton.Name = "navigateLeftButton";
    108129      this.navigateLeftButton.Size = new System.Drawing.Size(22, 22);
     
    114135      //
    115136      this.nodeDegreeLabel.AutoSize = true;
    116       this.nodeDegreeLabel.Location = new System.Drawing.Point(235, 20);
     137      this.nodeDegreeLabel.Location = new System.Drawing.Point(205, 20);
    117138      this.nodeDegreeLabel.Name = "nodeDegreeLabel";
    118139      this.nodeDegreeLabel.Size = new System.Drawing.Size(0, 13);
     
    122143      //
    123144      this.nodeDegreeLabelLabel.AutoSize = true;
    124       this.nodeDegreeLabelLabel.Location = new System.Drawing.Point(192, 20);
     145      this.nodeDegreeLabelLabel.Location = new System.Drawing.Point(154, 20);
    125146      this.nodeDegreeLabelLabel.Name = "nodeDegreeLabelLabel";
    126147      this.nodeDegreeLabelLabel.Size = new System.Drawing.Size(45, 13);
     
    131152      //
    132153      this.nodeRankLabel.AutoSize = true;
    133       this.nodeRankLabel.Location = new System.Drawing.Point(138, 20);
     154      this.nodeRankLabel.Location = new System.Drawing.Point(123, 20);
    134155      this.nodeRankLabel.Name = "nodeRankLabel";
    135156      this.nodeRankLabel.Size = new System.Drawing.Size(0, 13);
     
    139160      //
    140161      this.nodeRankLabelLabel.AutoSize = true;
    141       this.nodeRankLabelLabel.Location = new System.Drawing.Point(96, 20);
     162      this.nodeRankLabelLabel.Location = new System.Drawing.Point(81, 20);
    142163      this.nodeRankLabelLabel.Name = "nodeRankLabelLabel";
    143164      this.nodeRankLabelLabel.Size = new System.Drawing.Size(36, 13);
     
    192213    private System.Windows.Forms.Button navigateRightButton;
    193214    private System.Windows.Forms.Button navigateLeftButton;
     215    private System.Windows.Forms.Label nodeWeightLabelLabel;
     216    private System.Windows.Forms.Label nodeWeightLabel;
    194217  }
    195218}
  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Tracking/SymbolicDataAnalysisGenealogyGraphView.cs

    r12017 r12208  
    9292      nodeRankLabel.Text = String.Format("{0:0.0}", graphNode.Rank);
    9393      nodeDegreeLabel.Text = String.Format("{0} / {1}", graphNode.InDegree, graphNode.OutDegree);
     94      nodeWeightLabel.Text = String.Format("{0:0.00}", graphNode.Weight);
    9495
    9596      if (openNew_CheckBox.Checked) {
     
    143144              genealogyGraphChart.UpdateEnabled = true;
    144145              genealogyGraphChart.EnforceUpdate();
    145               MainFormManager.MainForm.ShowContent(traceGraph); // display the fragment graph on the screen
     146              if (openNew_CheckBox.Checked)
     147                MainFormManager.MainForm.ShowContent(traceGraph); // display the fragment graph on the screen
     148
     149              var max = traceGraph.Vertices.Max(x => x.Weight);
     150
     151              genealogyGraphChart.UpdateEnabled = false;
     152              foreach (var traceNode in traceGraph.Vertices) {
     153                var g = Content.GetByContent(traceNode.Data);
     154                g.Weight = traceNode.Weight;
     155                var v = genealogyGraphChart.GetMappedNode(g);
     156                if (v != null) {
     157                  int i = (int)Math.Round(g.Weight * (ColorGradient.Colors.Count - 1) / max);
     158
     159                  v.Brush = new SolidBrush(ColorGradient.Colors[i]);
     160                }
     161              }
     162              genealogyGraphChart.UpdateEnabled = true;
     163              genealogyGraphChart.EnforceUpdate();
    146164            }
    147165          } else {
Note: See TracChangeset for help on using the changeset viewer.