internal BorderCollection(ColoBox boundingBox, ColoEngine.Model.LocationStatemachine.Machine machine) { this.boundingBox = boundingBox; borders = new List <Border>(); transformed_borders = new List <Border>(); this.locationMachine = machine; }
public BorderVerifier(List <ColoBox> staticBoxes, ColoEngine.Model.LocationStatemachine.Machine machine) { //string ser = staticBoxes[0].SerializePoints(); this.boundingBox = machine.boundingBox; this.locationMachine = machine; verticalX = new BorderCollection(boundingBox, machine); horizontalY = new YBorderCollection(boundingBox, machine); tilted = new TiltedBorderCollection(boundingBox, machine); loadBorderCollections(staticBoxes); //if tilted has values and verticalX and horizontalY are empty, rotate the drawing if (tilted.Count > 0 && horizontalY.Count == 0 && verticalX.Count == 0) { machine.IsRotated = true; rotateDrawing(); //recalculate the borders after the rotation //loadBorderCollections(staticBoxes, true); } }
internal TiltedBorderCollection(ColoBox boundingBox, ColoEngine.Model.LocationStatemachine.Machine machine) : base(boundingBox, machine) { }