gov.nasa.worldwind.terrain
Class SectorGeometryList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<SectorGeometry>
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
| 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 |
SectorGeometryList
public SectorGeometryList()
SectorGeometryList
public SectorGeometryList(SectorGeometryList list)
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)