org.openstreetmap.josm.actions
Class JoinAreasAction.WayTraverser
java.lang.Object
org.openstreetmap.josm.actions.JoinAreasAction.WayTraverser
- Enclosing class:
- JoinAreasAction
private static class JoinAreasAction.WayTraverser
- extends java.lang.Object
This hepler class implements algorithm traversing trough connected ways.
Assumes you are going in clockwise orientation.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
availableWays
private java.util.Set<JoinAreasAction.WayInPolygon> availableWays
lastWay
private JoinAreasAction.WayInPolygon lastWay
lastWayReverse
private boolean lastWayReverse
JoinAreasAction.WayTraverser
public JoinAreasAction.WayTraverser(java.util.Collection<JoinAreasAction.WayInPolygon> ways)
removeWays
public void removeWays(java.util.Collection<JoinAreasAction.WayInPolygon> ways)
hasWays
public boolean hasWays()
startNewWay
public JoinAreasAction.WayInPolygon startNewWay(JoinAreasAction.WayInPolygon way)
startNewWay
public JoinAreasAction.WayInPolygon startNewWay()
advanceNextLeftmostWay
public JoinAreasAction.WayInPolygon advanceNextLeftmostWay()
advanceNextRightmostWay
public JoinAreasAction.WayInPolygon advanceNextRightmostWay()
advanceNextWay
private JoinAreasAction.WayInPolygon advanceNextWay(boolean rightmost)
isLastWayInsideToTheRight
public boolean isLastWayInsideToTheRight()
getLastWayStartNode
public Node getLastWayStartNode()
getLastWayEndNode
public Node getLastWayEndNode()
JOSM