internal void SetBoundingBox(List <ColoBox> staticBoxes, bool isCandidate = false) { boundingBox = GetBiggestBox(staticBoxes, isCandidate); boundingBox.LayoutManager = this; if (this.LocationMachine == null) { ColoEngine.Model.LocationStatemachine.Machine locationMachine = new LocationStatemachine.Machine(initParam, boundingBox); this.LocationMachine = locationMachine; this.LocationMachine.direction = DirectionController; } this.LocationMachine.boundingBox = boundingBox; //assign the layout manager to all the static boxes foreach (ColoBox box in staticBoxes) { box.LayoutManager = this; } borderVerifier = new BorderVerifier(staticBoxes, this.LocationMachine); this.LocationMachine.BorderVerifier = borderVerifier; //if (borderVerifier.IsRotating) //{ // double angle = borderVerifier.Angle; // foreach (ColoBox cb in staticBoxes) // { // cb.Rotate(angle); // } //} //borderVerifier = new BorderVerifier(staticBoxes, locationMachine); }
public FirstBorderNegative(Machine stateMachine, Border border) { this.stateMachine = stateMachine; this.FirstBorder = border; }
public State_RowStart(Machine machine) : base(machine) { }