Exemple #1
0
        protected FloatingPort MakeSingleRelativeObstaclePort(RectilinearEdgeRouter router, Shape obstacle, Point offset)
        {
            var port = MakeSingleRelativeObstaclePort(obstacle, offset);

            router.UpdateObstacle(obstacle); // Port changes are now auto-detected
            return(port);
        }
Exemple #2
0
        protected FloatingPort MakeAbsoluteObstaclePort(RectilinearEdgeRouter router, Shape obstacle, Point location)
        {
            Validate.IsNotNull(router, "Router should not be null");
            var port = MakeAbsoluteObstaclePort(obstacle, location);

            router.UpdateObstacle(obstacle); // Port changes are now auto-detected
            return(port);
        }