org.openstreetmap.josm.actions
Class OrthogonalizeAction.WayData

java.lang.Object
  extended by org.openstreetmap.josm.actions.OrthogonalizeAction.WayData
Enclosing class:
OrthogonalizeAction

private static class OrthogonalizeAction.WayData
extends java.lang.Object

Class contains everything we need to know about a singe way.


Field Summary
 double heading
           
 int nNode
           
 int nSeg
           
 OrthogonalizeAction.Direction[] segDirections
           
 EastNorth segSum
           
 Way way
           
 
Constructor Summary
OrthogonalizeAction.WayData(Way pWay)
           
 
Method Summary
 void calcDirections(OrthogonalizeAction.Direction pInitialDirection)
          Estimate the direction of the segments, given the first segment points in the direction pInitialDirection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

way

public final Way way

nSeg

public final int nSeg

nNode

public final int nNode

segDirections

public OrthogonalizeAction.Direction[] segDirections

segSum

public EastNorth segSum

heading

public double heading
Constructor Detail

OrthogonalizeAction.WayData

public OrthogonalizeAction.WayData(Way pWay)
Method Detail

calcDirections

public void calcDirections(OrthogonalizeAction.Direction pInitialDirection)
                    throws OrthogonalizeAction.InvalidUserInputException
Estimate the direction of the segments, given the first segment points in the direction pInitialDirection. Then sum up all horizontal / vertical segments to have a good guess for the heading of the entire way.

Throws:
OrthogonalizeAction.InvalidUserInputException


JOSM