NASA World Wind

gov.nasa.worldwind.symbology.milstd2525.graphics.lines
Class ForwardLineOfOwnTroops.PositionIterator

java.lang.Object
  extended by gov.nasa.worldwind.symbology.milstd2525.graphics.lines.ForwardLineOfOwnTroops.PositionIterator
All Implemented Interfaces:
Iterator<Position>
Enclosing class:
ForwardLineOfOwnTroops

protected static class ForwardLineOfOwnTroops.PositionIterator
extends Object
implements Iterator<Position>

Iterator to generate equally spaced positions along a control line.


Field Summary
protected  Angle interval
          Wavelength, as a geographic angle.
protected  Position nextControlPosition
          Position of the next control point.
protected  Iterator<? extends Position> positions
          Control positions.
protected  Position thisPosition
          Current position.
protected  double tolerance
           
 
Constructor Summary
protected ForwardLineOfOwnTroops.PositionIterator(Iterable<? extends Position> positions, double interval, Globe globe)
          Create a new iterator to compute the positions of a triangle wave.
 
Method Summary
 boolean hasNext()
          
 Position next()
          
 void remove()
          Not supported.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

interval

protected Angle interval
Wavelength, as a geographic angle.


nextControlPosition

protected Position nextControlPosition
Position of the next control point.


positions

protected Iterator<? extends Position> positions
Control positions.


thisPosition

protected Position thisPosition
Current position.


tolerance

protected double tolerance
Constructor Detail

ForwardLineOfOwnTroops.PositionIterator

protected ForwardLineOfOwnTroops.PositionIterator(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.
Method Detail

hasNext

public boolean hasNext()

Specified by:
hasNext in interface Iterator<Position>

next

public Position next()

Specified by:
next in interface Iterator<Position>

remove

public void remove()
Not supported.

Specified by:
remove in interface Iterator<Position>

NASA World Wind