NASA World Wind

gov.nasa.worldwind.terrain
Class SectorGeometryList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<SectorGeometry>
              extended by gov.nasa.worldwind.terrain.SectorGeometryList
All Implemented Interfaces:
Serializable, Cloneable, Iterable<SectorGeometry>, Collection<SectorGeometry>, List<SectorGeometry>, RandomAccess

public class SectorGeometryList
extends ArrayList<SectorGeometry>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
SectorGeometryList()
           
SectorGeometryList(SectorGeometryList list)
           
 
Method Summary
 Sector getSector()
           
 Vec4 getSurfacePoint(Angle latitude, Angle longitude)
           
 Vec4 getSurfacePoint(Angle latitude, Angle longitude, double metersOffset)
           
 Vec4 getSurfacePoint(Position position)
           
 Intersection[] intersect(double elevation, Sector sector)
          Determines if and where the geometry intersects the ellipsoid at a given elevation.
 Intersection[] intersect(Line line)
          Determines if and where a ray intersects the geometry.
 ArrayList<PickedObject> pick(DrawContext dc, List<Point> pickPoints)
           
 void pick(DrawContext dc, Point pickPoint)
           
 void setSector(Sector sector)
           
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

SectorGeometryList

public SectorGeometryList()

SectorGeometryList

public SectorGeometryList(SectorGeometryList list)
Method Detail

getSector

public Sector getSector()

getSurfacePoint

public Vec4 getSurfacePoint(Angle latitude,
                            Angle longitude)

getSurfacePoint

public Vec4 getSurfacePoint(Angle latitude,
                            Angle longitude,
                            double metersOffset)

getSurfacePoint

public Vec4 getSurfacePoint(Position position)

intersect

public Intersection[] intersect(double elevation,
                                Sector sector)
Determines if and where the geometry intersects the ellipsoid at a given elevation.

The returned array of Intersection describes a list of individual segments - two Intersection for each, corresponding to each geometry triangle that intersects the given elevation.

Note that the provided bounding Sector only serves as a 'hint' to avoid processing unnecessary geometry tiles. The returned intersection list may contain segments outside that sector.

Parameters:
elevation - the elevation for which intersections are to be found.
sector - the sector inside which intersections are to be found.
Returns:
a list of Intersection pairs/segments describing a contour line at the given elevation.

intersect

public Intersection[] intersect(Line line)
Determines if and where a ray intersects the geometry.

Parameters:
line - the Line for which an intersection is to be found.
Returns:
the point closest to the ray origin where an intersection has been found or null if no intersection was found.

pick

public ArrayList<PickedObject> pick(DrawContext dc,
                                    List<Point> pickPoints)

pick

public void pick(DrawContext dc,
                 Point pickPoint)

setSector

public void setSector(Sector sector)

NASA World Wind