Changeset 13532 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.Views/3.3/Shapes
- Timestamp:
- 01/17/16 18:21:19 (9 years ago)
- 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 48 48 /// </summary> 49 49 private void InitializeComponent() { 50 this.packingPlan3D = new PackingPlanVisualizations.PackingPlan3D();51 50 this.SuspendLayout(); 52 //53 // packingPlan3D54 //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;60 51 // 61 52 // CuboidPackingItemView 62 53 // 63 54 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 64 this.Controls.Add(this.packingPlan3D);65 55 this.Name = "CuboidPackingItemView"; 66 56 this.Size = new System.Drawing.Size(351, 299); … … 71 61 #endregion 72 62 73 private PackingPlanVisualizations.PackingPlan3D packingPlan3D;74 75 63 } 76 64 } -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.Views/3.3/Shapes/CuboidPackingItemView.cs
r13466 r13532 43 43 } else { 44 44 Redraw(Content); 45 packingPlan3D.StartRendering();46 45 } 47 46 } 48 47 49 48 private void Redraw() { 50 packingPlan3D.InitializeContainer(0, 0, 0);49 // packingPlan3D.InitializeContainer(0, 0, 0); 51 50 } 52 51 53 52 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); 56 55 } 57 56 } -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.Views/3.3/Shapes/CuboidPackingShapeView.Designer.cs
r13466 r13532 48 48 /// </summary> 49 49 private void InitializeComponent() { 50 this.packingPlan3D = new PackingPlanVisualizations.PackingPlan3D();51 50 this.SuspendLayout(); 52 //53 // packingPlan3D54 //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;60 51 // 61 52 // CuboidPackingShapeView 62 53 // 63 54 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 64 this.Controls.Add(this.packingPlan3D);65 55 this.Name = "CuboidPackingShapeView"; 66 56 this.Size = new System.Drawing.Size(351, 299); … … 71 61 #endregion 72 62 73 private PackingPlanVisualizations.PackingPlan3D packingPlan3D;74 75 63 } 76 64 } -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.Views/3.3/Shapes/CuboidPackingShapeView.cs
r13466 r13532 43 43 } else { 44 44 Redraw(Content); 45 packingPlan3D.StartRendering();46 45 } 47 46 } 48 47 49 48 private void Redraw() { 50 packingPlan3D.InitializeContainer(0, 0, 0);49 // packingPlan3D.InitializeContainer(0, 0, 0); 51 50 } 52 51 53 52 private void Redraw(CuboidPackingShape shape) { 54 packingPlan3D.InitializeContainer(shape.Width, shape.Height, shape.Depth);53 // packingPlan3D.InitializeContainer(shape.Width, shape.Height, shape.Depth); 55 54 } 56 55 }
Note: See TracChangeset
for help on using the changeset viewer.