private static class OrthogonalizeAction.WayData extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
double |
heading
heading of segSum == approximate heading of the way
|
int |
nNode
Number of Nodes of the Way
|
int |
nSeg
Number of Segments of the Way
|
OrthogonalizeAction.Direction[] |
segDirections
Direction of the segments
|
EastNorth |
segSum
(Vector-)sum of all horizontal segments plus the sum of all vertical
|
java.util.List<Node> |
wayNodes
The assigned way
|
Modifier and Type | Method and Description |
---|---|
void |
calcDirections(OrthogonalizeAction.Direction pInitialDirection)
Estimate the direction of the segments, given the first segment points in the
direction
pInitialDirection . |
public final int nSeg
public final int nNode
public final OrthogonalizeAction.Direction[] segDirections
public double heading
public void calcDirections(OrthogonalizeAction.Direction pInitialDirection) throws OrthogonalizeAction.InvalidUserInputException
pInitialDirection
.
Then sum up all horizontal / vertical segments to have a good guess for the
heading of the entire way.pInitialDirection
- initial directionOrthogonalizeAction.InvalidUserInputException
- if selected ways have an angle different from 90 or 180 degrees