Changeset 10650 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views
- Timestamp:
- 03/24/14 16:59:22 (10 years ago)
- Location:
- branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views
- Files:
-
- 4 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Views merged: 10545,10561,10564
- Property svn:mergeinfo changed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic.Views-3.4.csproj
r10514 r10650 219 219 <DependentUpon>SlidingWindowDataView.cs</DependentUpon> 220 220 </Compile> 221 <Compile Include="SymboldDataAnalysisGenealogyView.cs"> 222 <SubType>UserControl</SubType> 223 </Compile> 224 <Compile Include="SymboldDataAnalysisGenealogyView.Designer.cs"> 225 <DependentUpon>SymboldDataAnalysisGenealogyView.cs</DependentUpon> 226 </Compile> 227 <Compile Include="SymbolicDataAnalysisExpressionGenealogyGraphChart.cs"> 228 <SubType>UserControl</SubType> 229 </Compile> 230 <Compile Include="SymbolicDataAnalysisExpressionGenealogyGraphChart.Designer.cs"> 231 <DependentUpon>SymbolicDataAnalysisExpressionGenealogyGraphChart.cs</DependentUpon> 232 </Compile> 221 233 <Compile Include="SymbolicDataAnalysisExpressionLineageExplorerChart.cs"> 222 234 <SubType>UserControl</SubType> -
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/InteractiveSymbolicDataAnalysisSolutionSimplifierView.Designer.cs
r9462 r10650 19 19 */ 20 20 #endregion 21 21 22 22 23 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Views { … … 137 138 // 138 139 // btnOptimizeConstants 139 // 140 this.btnOptimizeConstants.A nchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));140 // 141 this.btnOptimizeConstants.AutoSize = true; 141 142 this.btnOptimizeConstants.Enabled = false; 142 this.btnOptimizeConstants.Location = new System.Drawing.Point(104, 3); 143 // this.btnOptimizeConstants.Image = HeuristicLab.Common.Resources.VSImageLibrary.Performance; 144 this.btnOptimizeConstants.ImageAlign = System.Drawing.ContentAlignment.MiddleCenter; 145 this.btnOptimizeConstants.Location = new System.Drawing.Point(105, 3); 143 146 this.btnOptimizeConstants.Name = "btnOptimizeConstants"; 144 this.btnOptimizeConstants.Size = new System.Drawing.Size( 97, 23);147 this.btnOptimizeConstants.Size = new System.Drawing.Size(80, 24); 145 148 this.btnOptimizeConstants.TabIndex = 2; 146 149 this.btnOptimizeConstants.Text = "Optimize"; 150 this.btnOptimizeConstants.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; 151 this.btnOptimizeConstants.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; 147 152 this.btnOptimizeConstants.UseVisualStyleBackColor = true; 148 153 this.btnOptimizeConstants.Click += new System.EventHandler(this.btnOptimizeConstants_Click); … … 150 155 // btnSimplify 151 156 // 157 this.btnSimplify.AutoSize = true; 158 this.btnSimplify.Enabled = true; 159 // this.btnSimplify.Image = HeuristicLab.Common.Resources.VSImageLibrary.FormulaEvaluator; 160 this.btnSimplify.ImageAlign = System.Drawing.ContentAlignment.MiddleCenter; 152 161 this.btnSimplify.Location = new System.Drawing.Point(3, 3); 153 162 this.btnSimplify.Name = "btnSimplify"; 154 this.btnSimplify.Size = new System.Drawing.Size( 95, 23);163 this.btnSimplify.Size = new System.Drawing.Size(80, 24); 155 164 this.btnSimplify.TabIndex = 1; 156 165 this.btnSimplify.Text = "Simplify"; 166 this.btnSimplify.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; 167 this.btnSimplify.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; 157 168 this.btnSimplify.UseVisualStyleBackColor = true; 158 169 this.btnSimplify.Click += new System.EventHandler(this.btnSimplify_Click); -
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/InteractiveSymbolicDataAnalysisSolutionSimplifierView.cs
r10524 r10650 52 52 Content.ModelChanged += Content_Changed; 53 53 Content.ProblemDataChanged += Content_Changed; 54 treeChart.Repainted += treeChart_Repainted; 54 55 } 55 56 protected override void DeregisterContentEvents() { … … 57 58 Content.ModelChanged -= Content_Changed; 58 59 Content.ProblemDataChanged -= Content_Changed; 60 treeChart.Repainted -= treeChart_Repainted; 59 61 } 60 62 … … 68 70 UpdateView(); 69 71 viewHost.Content = this.Content; 72 } 73 74 private void treeChart_Repainted(object sender, EventArgs e) { 75 if (nodeImpacts != null && nodeImpacts.Count > 0) 76 PaintNodeImpacts(); 70 77 } 71 78 -
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/InteractiveSymbolicExpressionTreeChart.cs
r10524 r10650 32 32 33 33 internal sealed partial class InteractiveSymbolicExpressionTreeChart : SymbolicExpressionTreeChart { 34 private ISymbolicExpressionTreeNode tempNode; // 35 private VisualTreeNode<ISymbolicExpressionTreeNode> currSelected; // 34 private ISymbolicExpressionTreeNode tempNode; //node in clipboard (to be cut/copy/pasted etc) 35 private VisualTreeNode<ISymbolicExpressionTreeNode> currSelected; //currently selected node 36 36 private enum EditOp { NoOp, CopySubtree, CutSubtree } 37 37 private EditOp lastOp = EditOp.NoOp; … … 218 218 if (tempNode.IterateNodesBreadth().Contains(node)) 219 219 throw new ArgumentException();// cannot cut/paste a node into itself 220 ModifyTree(Tree, tempNode.Parent, tempNode, null); //remove node from its original parent 220 ModifyTree(Tree, tempNode.Parent, tempNode, null); //remove node from its original parent 221 221 ModifyTree(Tree, node, null, tempNode); //insert it as a child to the new parent 222 222 break; -
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Plugin.cs.frame
r10037 r10650 32 32 [PluginDependency("HeuristicLab.Collections", "3.3")] 33 33 [PluginDependency("HeuristicLab.Common", "3.3")] 34 [PluginDependency("HeuristicLab.Common.Resources", "3.3")] 34 35 [PluginDependency("HeuristicLab.Core", "3.3")] 35 36 [PluginDependency("HeuristicLab.Core.Views", "3.3")] -
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/SymbolicDataAnalysisExpressionLineageExplorerChart.cs
r10517 r10650 1 1 using System.Collections.Generic; 2 2 using System.Drawing; 3 using System.Windows.Forms; 3 4 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views; 4 5 using HeuristicLab.Visualization; … … 59 60 } 60 61 } 62 63 protected override void pictureBox_MouseUp(object sender, MouseEventArgs e) { 64 base.pictureBox_MouseUp(sender, e); 65 // get the selected primitive and update it's graphics 66 var point = new Point(e.X, e.Y); 67 68 var selectedPrimitives = Chart.GetAllPrimitives(point); 69 // first primitive in the list should be the tile, the second one should be the actual primitive representing a tree node 70 var tile = (SymbolicExpressionTreeTile)selectedPrimitives[0]; 71 var selectedPrimitive = (RectangularPrimitiveBase)selectedPrimitives[1]; 72 var tree = tile.SymbolicExpressionTree; // use the tree to get the genealogy graph node and the fragments used for tracing building blocks 73 74 var pen = new Pen(Color.Blue); 75 using (var g = Graphics.FromImage(pictureBox.Image)) { 76 g.DrawRectangle(pen, (float)selectedPrimitive.LowerLeft.X, (float)selectedPrimitive.LowerLeft.Y, (float)selectedPrimitive.Size.Width, (float)selectedPrimitive.Size.Height); 77 } 78 } 61 79 } 62 80 } -
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/SymbolicDataAnalysisExpressionLineageExplorerView.cs
r10524 r10650 30 30 public SymbolicDataAnalysisExpressionLineageExplorerView() { 31 31 InitializeComponent(); 32 symbolicExpressionTreeNodeLayoutEngine = new ReingoldTilfordLayoutEngine<ISymbolicExpressionTreeNode> {32 symbolicExpressionTreeNodeLayoutEngine = new ReingoldTilfordLayoutEngine<ISymbolicExpressionTreeNode>(node => node.Subtrees) { 33 33 HorizontalSpacing = MinHorizontalSpacing, 34 34 VerticalSpacing = MinVerticalSpacing, … … 36 36 NodeHeight = PreferredNodeHeight 37 37 }; 38 38 39 treeMap = new Dictionary<TreeNode, ISymbolicExpressionTree>(); 39 40 double width = lineageExplorerChart.PreferredSize.Width; … … 43 44 } 44 45 } 45 46 46 47 47 #region events
Note: See TracChangeset
for help on using the changeset viewer.