NASA World Wind

gov.nasa.worldwindx.examples.lineofsight
Class GridOfPoints.PositionIterator

java.lang.Object
  extended by gov.nasa.worldwindx.examples.lineofsight.GridOfPoints.PositionIterator
All Implemented Interfaces:
Iterator<Position>
Enclosing class:
GridOfPoints

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

Generates positions forming a lat/lon grid.


Field Summary
protected  List<Position> corners
           
protected  int h
           
protected  Position ne
           
protected  int numHigh
           
protected  int numWide
           
protected  Position nw
           
protected  Position se
           
protected  Position sw
           
protected  int w
           
 
Constructor Summary
GridOfPoints.PositionIterator(List<Position> corners, int numPointsWide, int numPointsHigh)
           
 
Method Summary
protected  Position computeNextPosition()
           
 boolean hasNext()
           
 Position next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

corners

protected List<Position> corners

h

protected int h

ne

protected Position ne

numHigh

protected int numHigh

numWide

protected int numWide

nw

protected Position nw

se

protected Position se

sw

protected Position sw

w

protected int w
Constructor Detail

GridOfPoints.PositionIterator

public GridOfPoints.PositionIterator(List<Position> corners,
                                     int numPointsWide,
                                     int numPointsHigh)
Method Detail

computeNextPosition

protected Position computeNextPosition()

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()
Specified by:
remove in interface Iterator<Position>

NASA World Wind