Class ForwardLineOfOwnTroops.PositionIterator
- java.lang.Object
-
- gov.nasa.worldwind.symbology.milstd2525.graphics.lines.ForwardLineOfOwnTroops.PositionIterator
-
- All Implemented Interfaces:
java.util.Iterator<Position>
- Enclosing class:
- ForwardLineOfOwnTroops
protected static class ForwardLineOfOwnTroops.PositionIterator extends java.lang.Object implements java.util.Iterator<Position>
Iterator to generate equally spaced positions along a control line.
-
-
Field Summary
Fields Modifier and Type Field Description protected AngleintervalWavelength, as a geographic angle.protected PositionnextControlPositionPosition of the next control point.protected java.util.Iterator<? extends Position>positionsControl positions.protected PositionthisPositionCurrent position.protected doubletolerance
-
Constructor Summary
Constructors Modifier Constructor Description protectedPositionIterator(java.lang.Iterable<? extends Position> positions, double interval, Globe globe)Create a new iterator to compute the positions of a triangle wave.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Positionnext()voidremove()Not supported.
-
-
-
Field Detail
-
positions
protected java.util.Iterator<? extends Position> positions
Control positions.
-
interval
protected Angle interval
Wavelength, as a geographic angle.
-
tolerance
protected double tolerance
-
thisPosition
protected Position thisPosition
Current position.
-
nextControlPosition
protected Position nextControlPosition
Position of the next control point.
-
-
Constructor Detail
-
PositionIterator
protected PositionIterator(java.lang.Iterable<? extends Position> positions, double interval, Globe globe)
Create a new iterator to compute the positions of a triangle wave.- Parameters:
positions- Control positions for the triangle wave line.interval- Generate positions along the control line at this interval.globe- Globe used to compute geographic positions.
-
-