- Timestamp:
- 11/04/11 11:44:37 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting.Views/3.4/MDCVRPPDTWView.cs
r6856 r6947 170 170 } else { 171 171 { 172 Point[] locationPoints = new Point[c oordinates.Rows];172 Point[] locationPoints = new Point[cities]; 173 173 //just draw customers 174 for (int i = 1; i < coordinates.Rows; i++) {175 locationPoints[i] = new Point(border + ((int)(( coordinates[i,0] - xMin) * xStep)),176 bitmap.Height - (border + ((int)(( coordinates[i,1] - yMin) * yStep))));174 for (int i = 0; i < cities; i++) { 175 locationPoints[i] = new Point(border + ((int)((Content.GetCoordinates(i + 1)[0] - xMin) * xStep)), 176 bitmap.Height - (border + ((int)((Content.GetCoordinates(i + 1)[1] - yMin) * yStep)))); 177 177 178 178 graphics.FillRectangle(Brushes.Black, locationPoints[i].X - 3, locationPoints[i].Y - 3, 6, 6); … … 182 182 for (int i = 0; i < cities; i++) { 183 183 if (demand[i] < 0) { 184 graphics.DrawLine(flowPen, locationPoints[pickupDeliveryLocation[i] ], locationPoints[i + 1]);184 graphics.DrawLine(flowPen, locationPoints[pickupDeliveryLocation[i] - 1], locationPoints[i]); 185 185 } 186 186 }
Note: See TracChangeset
for help on using the changeset viewer.