Changeset 14154 for branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.Views/3.3/Container2DView.xaml.cs
- Timestamp:
- 07/21/16 15:08:21 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BinPacking/HeuristicLab.Problems.BinPacking.Views/3.3/Container2DView.xaml.cs
r14151 r14154 71 71 if (packing == null) return; 72 72 // the container should fill the whole size 73 var scalingX = renderSize.Width / Packing.Bin Measures.Width;74 var scalingY = renderSize.Height / Packing.Bin Measures.Width;73 var scalingX = renderSize.Width / Packing.BinShape.Width; 74 var scalingY = renderSize.Height / Packing.BinShape.Width; 75 75 // draw container 76 76 drawingContext.DrawRectangle(Brushes.LightGray, new Pen(Brushes.Black, 1), new Rect(new Point(0, 0), renderSize)); … … 79 79 var unselectedBrush = selectedItemKey < 0 ? selectedBrush : Brushes.DarkGray; 80 80 81 foreach (var t in Packing.Item Measures) {81 foreach (var t in Packing.Items) { 82 82 var key = t.Key; 83 83 var item = t.Value; 84 var pos = Packing. ItemPositions[key];84 var pos = Packing.Positions[key]; 85 85 86 86 var scaledPos = new Point(pos.X * scalingX, pos.Y * scalingY);
Note: See TracChangeset
for help on using the changeset viewer.