Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/12/16 18:23:13 (8 years ago)
Author:
gkronber
Message:

#1966: removed types for *PackingBin because PackingBins and PackingShapes have the same capabilities

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  
    2525using HeuristicLab.Encodings.PackingEncoding.PackingPlan;
    2626using HeuristicLab.Problems.BinPacking.Dimensions;
    27 using HeuristicLab.Problems.BinPacking.PackingBin;
    2827using HeuristicLab.Problems.BinPacking.PackingItem;
     28using HeuristicLab.Problems.BinPacking.Shapes;
    2929using Point = System.Windows.Point;
    3030using Size = System.Windows.Size;
     
    3535    private int selectedItemKey;
    3636    private Size renderSize;
    37     private BinPacking<TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem> packing;
    38     public BinPacking<TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem> Packing {
     37    private BinPacking<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem> packing;
     38    public BinPacking<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem> Packing {
    3939      get { return packing; }
    4040      set {
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.Views/3.3/Container3DView.xaml.cs

    r13605 r14045  
    2626using HeuristicLab.Encodings.PackingEncoding.PackingPlan;
    2727using HeuristicLab.Problems.BinPacking.Dimensions;
    28 using HeuristicLab.Problems.BinPacking.PackingBin;
    2928using HeuristicLab.Problems.BinPacking.PackingItem;
     29using HeuristicLab.Problems.BinPacking.Shapes;
    3030
    3131namespace HeuristicLab.Problems.BinPacking.Views {
     
    3737    private int selectedItemKey;
    3838
    39     private BinPacking<ThreeDimensionalPacking, CuboidPackingBin, CuboidPackingItem> packing;
    40     public BinPacking<ThreeDimensionalPacking, CuboidPackingBin, CuboidPackingItem> Packing {
     39    private BinPacking<ThreeDimensionalPacking, CuboidPackingShape, CuboidPackingItem> packing;
     40    public BinPacking<ThreeDimensionalPacking, CuboidPackingShape, CuboidPackingItem> Packing {
    4141      get { return packing; }
    4242      set {
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.Views/3.3/PackingPlan2DView.cs

    r14038 r14045  
    2525using HeuristicLab.Encodings.PackingEncoding.PackingPlan;
    2626using HeuristicLab.Problems.BinPacking.Dimensions;
    27 using HeuristicLab.Problems.BinPacking.PackingBin;
     27
    2828using HeuristicLab.Problems.BinPacking.PackingItem;
     29using HeuristicLab.Problems.BinPacking.Shapes;
    2930
    3031namespace HeuristicLab.Problems.BinPacking.Views {
    3132  [View("2-dimensional packing plan view")]
    32   [Content(typeof(PackingPlan<TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem>), true)]
     33  [Content(typeof(PackingPlan<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem>), true)]
    3334  public partial class PackingPlan2DView : ItemView {
    3435
     
    3738    }
    3839
    39     public new PackingPlan<TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem> Content {
    40       get { return (PackingPlan<TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem>)base.Content; }
     40    public new PackingPlan<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem> Content {
     41      get { return (PackingPlan<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem>)base.Content; }
    4142      set { base.Content = value; }
    4243    }
     
    5859    }
    5960
    60     private void UpdateState(PackingPlan<TwoDimensionalPacking, RectangularPackingBin, RectangularPackingItem> plan) {
     61    private void UpdateState(PackingPlan<TwoDimensionalPacking, RectangularPackingShape, RectangularPackingItem> plan) {
    6162      int currentBin = (binSelection != null && binSelection.SelectedItem != null) ? (int)(binSelection.SelectedItem) : 0;
    6263      container2DView.Packing = plan.BinPackings[currentBin];
  • branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.Views/3.3/PackingPlan3DView.cs

    r13576 r14045  
    2525using HeuristicLab.Encodings.PackingEncoding.PackingPlan;
    2626using HeuristicLab.Problems.BinPacking.PackingItem;
    27 using HeuristicLab.Problems.BinPacking.PackingBin;
     27
    2828using HeuristicLab.Problems.BinPacking.Dimensions;
     29using HeuristicLab.Problems.BinPacking.Shapes;
    2930
    3031namespace HeuristicLab.Problems.BinPacking.Views {
    3132  [View("3-dimensional packing plan View")]
    32   [Content(typeof(PackingPlan<ThreeDimensionalPacking, CuboidPackingBin, CuboidPackingItem>), true)]
     33  [Content(typeof(PackingPlan<ThreeDimensionalPacking, CuboidPackingShape, CuboidPackingItem>), true)]
    3334  public partial class PackingPlan3DView : ItemView {
    3435
     
    3738    }
    3839
    39     public new PackingPlan<ThreeDimensionalPacking, CuboidPackingBin, CuboidPackingItem> Content {
    40       get { return (PackingPlan<ThreeDimensionalPacking, CuboidPackingBin, CuboidPackingItem>)base.Content; }
     40    public new PackingPlan<ThreeDimensionalPacking, CuboidPackingShape, CuboidPackingItem> Content {
     41      get { return (PackingPlan<ThreeDimensionalPacking, CuboidPackingShape, CuboidPackingItem>)base.Content; }
    4142      set { base.Content = value; }
    4243    }
Note: See TracChangeset for help on using the changeset viewer.