Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/17/16 18:21:19 (9 years ago)
Author:
gkronber
Message:

#1966 work in progress WPF control to visualize packings

Location:
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.Views/3.3/Shapes
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.Views/3.3/Shapes/CuboidPackingItemView.Designer.cs

    r13466 r13532  
    4848    /// </summary>
    4949    private void InitializeComponent() {
    50       this.packingPlan3D = new PackingPlanVisualizations.PackingPlan3D();
    5150      this.SuspendLayout();
    52       //
    53       // packingPlan3D
    54       //
    55       this.packingPlan3D.Dock = System.Windows.Forms.DockStyle.Fill;
    56       this.packingPlan3D.Location = new System.Drawing.Point(0, 0);
    57       this.packingPlan3D.Name = "packingPlan3D";
    58       this.packingPlan3D.Size = new System.Drawing.Size(351, 299);
    59       this.packingPlan3D.TabIndex = 3;
    6051      //
    6152      // CuboidPackingItemView
    6253      //
    6354      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
    64       this.Controls.Add(this.packingPlan3D);
    6555      this.Name = "CuboidPackingItemView";
    6656      this.Size = new System.Drawing.Size(351, 299);
     
    7161    #endregion
    7262
    73     private PackingPlanVisualizations.PackingPlan3D packingPlan3D;
    74 
    7563  }
    7664}
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.Views/3.3/Shapes/CuboidPackingItemView.cs

    r13466 r13532  
    4343      } else {
    4444        Redraw(Content);
    45         packingPlan3D.StartRendering();
    4645      }
    4746    }
    4847
    4948    private void Redraw() {
    50       packingPlan3D.InitializeContainer(0, 0, 0);
     49      // packingPlan3D.InitializeContainer(0, 0, 0);
    5150    }
    5251
    5352    private void Redraw(CuboidPackingItem item) {
    54       packingPlan3D.InitializeContainer(item.TargetBin.Width, item.TargetBin.Height, item.TargetBin.Depth);
    55       packingPlan3D.AddItemToContainer(item.Width, item.Height, item.Depth, 0, 0, 0, 0);
     53      // packingPlan3D.InitializeContainer(item.TargetBin.Width, item.TargetBin.Height, item.TargetBin.Depth);
     54      // packingPlan3D.AddItemToContainer(item.Width, item.Height, item.Depth, 0, 0, 0, 0);
    5655    }
    5756  }
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.Views/3.3/Shapes/CuboidPackingShapeView.Designer.cs

    r13466 r13532  
    4848    /// </summary>
    4949    private void InitializeComponent() {
    50       this.packingPlan3D = new PackingPlanVisualizations.PackingPlan3D();
    5150      this.SuspendLayout();
    52       //
    53       // packingPlan3D
    54       //
    55       this.packingPlan3D.Dock = System.Windows.Forms.DockStyle.Fill;
    56       this.packingPlan3D.Location = new System.Drawing.Point(0, 0);
    57       this.packingPlan3D.Name = "packingPlan3D";
    58       this.packingPlan3D.Size = new System.Drawing.Size(351, 299);
    59       this.packingPlan3D.TabIndex = 3;
    6051      //
    6152      // CuboidPackingShapeView
    6253      //
    6354      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
    64       this.Controls.Add(this.packingPlan3D);
    6555      this.Name = "CuboidPackingShapeView";
    6656      this.Size = new System.Drawing.Size(351, 299);
     
    7161    #endregion
    7262
    73     private PackingPlanVisualizations.PackingPlan3D packingPlan3D;
    74 
    7563  }
    7664}
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.Views/3.3/Shapes/CuboidPackingShapeView.cs

    r13466 r13532  
    4343      } else {
    4444        Redraw(Content);
    45         packingPlan3D.StartRendering();
    4645      }
    4746    }
    4847
    4948    private void Redraw() {
    50       packingPlan3D.InitializeContainer(0, 0, 0);
     49      // packingPlan3D.InitializeContainer(0, 0, 0);
    5150    }
    5251
    5352    private void Redraw(CuboidPackingShape shape) {
    54       packingPlan3D.InitializeContainer(shape.Width, shape.Height, shape.Depth);
     53      // packingPlan3D.InitializeContainer(shape.Width, shape.Height, shape.Depth);
    5554    }
    5655  }
Note: See TracChangeset for help on using the changeset viewer.