コード例 #1
0
 protected FloatingPort MakeMultiRelativeObstaclePort(RectilinearEdgeRouter router, Shape obstacle, List<Point> offsets)
 {
     var port = MakeMultiRelativeObstaclePort(obstacle, offsets);
     router.UpdateObstacle(obstacle); // Port changes are now auto-detected
     return port;
 }
コード例 #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;
 }