- Timestamp:
- 07/12/16 18:23:13 (8 years ago)
- Location:
- branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.Views/3.3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.Views/3.3/Container2DView.xaml.cs
r13605 r14045 25 25 using HeuristicLab.Encodings.PackingEncoding.PackingPlan; 26 26 using HeuristicLab.Problems.BinPacking.Dimensions; 27 using HeuristicLab.Problems.BinPacking.PackingBin;28 27 using HeuristicLab.Problems.BinPacking.PackingItem; 28 using HeuristicLab.Problems.BinPacking.Shapes; 29 29 using Point = System.Windows.Point; 30 30 using Size = System.Windows.Size; … … 35 35 private int selectedItemKey; 36 36 private Size renderSize; 37 private BinPacking<TwoDimensionalPacking, RectangularPacking Bin, RectangularPackingItem> packing;38 public BinPacking<TwoDimensionalPacking, RectangularPacking Bin, RectangularPackingItem> Packing {37 private BinPacking<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem> packing; 38 public BinPacking<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem> Packing { 39 39 get { return packing; } 40 40 set { -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.Views/3.3/Container3DView.xaml.cs
r13605 r14045 26 26 using HeuristicLab.Encodings.PackingEncoding.PackingPlan; 27 27 using HeuristicLab.Problems.BinPacking.Dimensions; 28 using HeuristicLab.Problems.BinPacking.PackingBin;29 28 using HeuristicLab.Problems.BinPacking.PackingItem; 29 using HeuristicLab.Problems.BinPacking.Shapes; 30 30 31 31 namespace HeuristicLab.Problems.BinPacking.Views { … … 37 37 private int selectedItemKey; 38 38 39 private BinPacking<ThreeDimensionalPacking, CuboidPacking Bin, CuboidPackingItem> packing;40 public BinPacking<ThreeDimensionalPacking, CuboidPacking Bin, CuboidPackingItem> Packing {39 private BinPacking<ThreeDimensionalPacking, CuboidPackingShape, CuboidPackingItem> packing; 40 public BinPacking<ThreeDimensionalPacking, CuboidPackingShape, CuboidPackingItem> Packing { 41 41 get { return packing; } 42 42 set { -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.Views/3.3/PackingPlan2DView.cs
r14038 r14045 25 25 using HeuristicLab.Encodings.PackingEncoding.PackingPlan; 26 26 using HeuristicLab.Problems.BinPacking.Dimensions; 27 using HeuristicLab.Problems.BinPacking.PackingBin; 27 28 28 using HeuristicLab.Problems.BinPacking.PackingItem; 29 using HeuristicLab.Problems.BinPacking.Shapes; 29 30 30 31 namespace HeuristicLab.Problems.BinPacking.Views { 31 32 [View("2-dimensional packing plan view")] 32 [Content(typeof(PackingPlan<TwoDimensionalPacking, RectangularPacking Bin, RectangularPackingItem>), true)]33 [Content(typeof(PackingPlan<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem>), true)] 33 34 public partial class PackingPlan2DView : ItemView { 34 35 … … 37 38 } 38 39 39 public new PackingPlan<TwoDimensionalPacking, RectangularPacking Bin, RectangularPackingItem> Content {40 get { return (PackingPlan<TwoDimensionalPacking, RectangularPacking Bin, RectangularPackingItem>)base.Content; }40 public new PackingPlan<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem> Content { 41 get { return (PackingPlan<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem>)base.Content; } 41 42 set { base.Content = value; } 42 43 } … … 58 59 } 59 60 60 private void UpdateState(PackingPlan<TwoDimensionalPacking, RectangularPacking Bin, RectangularPackingItem> plan) {61 private void UpdateState(PackingPlan<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem> plan) { 61 62 int currentBin = (binSelection != null && binSelection.SelectedItem != null) ? (int)(binSelection.SelectedItem) : 0; 62 63 container2DView.Packing = plan.BinPackings[currentBin]; -
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.Views/3.3/PackingPlan3DView.cs
r13576 r14045 25 25 using HeuristicLab.Encodings.PackingEncoding.PackingPlan; 26 26 using HeuristicLab.Problems.BinPacking.PackingItem; 27 using HeuristicLab.Problems.BinPacking.PackingBin; 27 28 28 using HeuristicLab.Problems.BinPacking.Dimensions; 29 using HeuristicLab.Problems.BinPacking.Shapes; 29 30 30 31 namespace HeuristicLab.Problems.BinPacking.Views { 31 32 [View("3-dimensional packing plan View")] 32 [Content(typeof(PackingPlan<ThreeDimensionalPacking, CuboidPacking Bin, CuboidPackingItem>), true)]33 [Content(typeof(PackingPlan<ThreeDimensionalPacking, CuboidPackingShape, CuboidPackingItem>), true)] 33 34 public partial class PackingPlan3DView : ItemView { 34 35 … … 37 38 } 38 39 39 public new PackingPlan<ThreeDimensionalPacking, CuboidPacking Bin, CuboidPackingItem> Content {40 get { return (PackingPlan<ThreeDimensionalPacking, CuboidPacking Bin, CuboidPackingItem>)base.Content; }40 public new PackingPlan<ThreeDimensionalPacking, CuboidPackingShape, CuboidPackingItem> Content { 41 get { return (PackingPlan<ThreeDimensionalPacking, CuboidPackingShape, CuboidPackingItem>)base.Content; } 41 42 set { base.Content = value; } 42 43 }
Note: See TracChangeset
for help on using the changeset viewer.