NASA World Wind

gov.nasa.worldwind.util
Class PickPointFrustumList

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

public class PickPointFrustumList
extends ArrayList<PickPointFrustum>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
PickPointFrustumList()
           
PickPointFrustumList(PickPointFrustumList list)
           
 
Method Summary
 boolean containsInAll(Point point)
          Returns true if the specified 2D screen point is inside the 2D screen rectangle enclosed by ALL of the frustums
 boolean containsInAll(Vec4 point)
          Returns true if the specified point is inside the space enclosed by ALL of the frustums
 boolean containsInAny(double x, double y)
          Returns true if the specified 2D point is inside the 2D screen rectangle enclosed by ANY of the frustums
 boolean containsInAny(Point point)
          Returns true if the specified 2D point is inside the 2D screen rectangle enclosed by ANY of the frustums
 boolean containsInAny(Vec4 point)
          Returns true if the specified point is inside the space enclosed by ANY of the frustums
 boolean intersectsAll(Extent extent)
          Returns true if the specified Extent intersects the space enclosed by ALL the Frustums.
 boolean intersectsAll(Rectangle rect)
          Returns true if the specified Rectangle intersects the 2D screen space enclosed by ALL the Frustums.
 boolean intersectsAny(Extent extent)
          Returns true if the specified Extent intersects the space enclosed by ANY of the Frustums.
 boolean intersectsAny(Rectangle rect)
          Returns true if the specified Rectangle intersects the 2D screen space enclosed by ANY of the Frustums.
 boolean intersectsAny(Vec4 pa, Vec4 pb)
          Returns true if a specified line segment intersects the space enclosed by ANY of the Frustums.
 
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

PickPointFrustumList

public PickPointFrustumList()

PickPointFrustumList

public PickPointFrustumList(PickPointFrustumList list)
Method Detail

containsInAll

public final boolean containsInAll(Point point)
Returns true if the specified 2D screen point is inside the 2D screen rectangle enclosed by ALL of the frustums

Parameters:
point - the point to test.
Returns:
true if the specified point is inside the space enclosed by ALL the Frustums, and false otherwise.
Throws:
IllegalArgumentException - if the point is null.

containsInAll

public final boolean containsInAll(Vec4 point)
Returns true if the specified point is inside the space enclosed by ALL of the frustums

Parameters:
point - the point to test.
Returns:
true if the specified point is inside the space enclosed by ALL the Frustums, and false otherwise.
Throws:
IllegalArgumentException - if the point is null.

containsInAny

public final boolean containsInAny(double x,
                                   double y)
Returns true if the specified 2D point is inside the 2D screen rectangle enclosed by ANY of the frustums

Parameters:
x - the x coordinate to test.
y - the y coordinate to test.
Returns:
true if the specified point is inside the space enclosed by ANY the Frustums, and false otherwise.
Throws:
IllegalArgumentException - if the point is null.

containsInAny

public final boolean containsInAny(Point point)
Returns true if the specified 2D point is inside the 2D screen rectangle enclosed by ANY of the frustums

Parameters:
point - the point to test.
Returns:
true if the specified point is inside the space enclosed by ANY the Frustums, and false otherwise.
Throws:
IllegalArgumentException - if the point is null.

containsInAny

public final boolean containsInAny(Vec4 point)
Returns true if the specified point is inside the space enclosed by ANY of the frustums

Parameters:
point - the point to test.
Returns:
true if the specified point is inside the space enclosed by ANY the Frustums, and false otherwise.
Throws:
IllegalArgumentException - if the point is null.

intersectsAll

public final boolean intersectsAll(Extent extent)
Returns true if the specified Extent intersects the space enclosed by ALL the Frustums. NOTE: Cannot be true if all frustums do not intersect.

Parameters:
extent - the Extent to test.
Returns:
true if the specified Extent intersects the space enclosed by ALL Frustums, and false otherwise.
Throws:
IllegalArgumentException - if the extent is null.

intersectsAll

public final boolean intersectsAll(Rectangle rect)
Returns true if the specified Rectangle intersects the 2D screen space enclosed by ALL the Frustums. NOTE: Cannot be true if all frustums do not intersect.

Parameters:
rect - the Rectangle to test.
Returns:
true if the specified Rectangle intersects the 2D screen space enclosed by ALL Frustums, and false otherwise.
Throws:
IllegalArgumentException - if the extent is null.

intersectsAny

public final boolean intersectsAny(Extent extent)
Returns true if the specified Extent intersects the space enclosed by ANY of the Frustums.

Parameters:
extent - the Extent to test.
Returns:
true if the specified Extent intersects the space enclosed by ANY of the Frustums, and false otherwise.
Throws:
IllegalArgumentException - if the extent is null.

intersectsAny

public final boolean intersectsAny(Rectangle rect)
Returns true if the specified Rectangle intersects the 2D screen space enclosed by ANY of the Frustums.

Parameters:
rect - the Rectangle to test.
Returns:
true if the specified Rectangle intersects the 2D screen space enclosed by ANY of the Frustums, and false otherwise.
Throws:
IllegalArgumentException - if the extent is null.

intersectsAny

public final boolean intersectsAny(Vec4 pa,
                                   Vec4 pb)
Returns true if a specified line segment intersects the space enclosed by ANY of the Frustums.

Parameters:
pa - one end of the segment.
pb - the other end of the segment.
Returns:
true if the specified segment intersects the space enclosed by ANY of the Frustums, otherwise false.
Throws:
IllegalArgumentException - if either point is null.

NASA World Wind