Exemple #1
0
        internal void SetBoundingBox(List <ColoBox> staticBoxes)
        {
            boundingBox = GetBiggestBox(staticBoxes);
            DXFPoc.Model.LocationStatemachine.Machine locationMachine = new LocationStatemachine.Machine(coldAisle, spaceAfterObstacle, boundingBox);
            this.locationMachine           = locationMachine;
            this.locationMachine.direction = DirectionController;

            borderVerifier = new BorderVerifier(staticBoxes, locationMachine);
            locationMachine.BorderVerifier = borderVerifier;

            //if (borderVerifier.IsRotating)
            //{
            //    double angle = borderVerifier.Angle;
            //    foreach (ColoBox cb in staticBoxes)
            //    {
            //        cb.Rotate(angle);
            //    }
            //}

            //borderVerifier = new BorderVerifier(staticBoxes, locationMachine);
        }
Exemple #2
0
 internal StateBase(Machine machine)
 {
     this.machine = machine;
 }