NASA World Wind

gov.nasa.worldwind.util
Class SpatialTree.SectorTree<S,T>

java.lang.Object
  extended by gov.nasa.worldwind.util.SpatialTree<Sector,gov.nasa.worldwind.util.SpatialTree.ItemInfo<T>>
      extended by gov.nasa.worldwind.util.SpatialTree.SectorTree<S,T>
Enclosing class:
SpatialTree<S,T>

public static class SpatialTree.SectorTree<S,T>
extends SpatialTree<Sector,gov.nasa.worldwind.util.SpatialTree.ItemInfo<T>>


Nested Class Summary
 
Nested classes/interfaces inherited from class gov.nasa.worldwind.util.SpatialTree
SpatialTree.LocationTree, SpatialTree.MarkerTree, SpatialTree.SectorTree<S,T>
 
Field Summary
 
Fields inherited from class gov.nasa.worldwind.util.SpatialTree
addToAllLevels, children, coverage, depth, items, maxDepth, subCoverage
 
Constructor Summary
  SpatialTree.SectorTree(int maxDepth)
           
  SpatialTree.SectorTree(Sector coverage, int maxDepth, boolean addToAllLevels)
           
protected SpatialTree.SectorTree(Sector coverage, int depth, int maxDepth, boolean addToAllLevels)
           
 
Method Summary
protected  boolean contains(Sector extent, LatLon location)
           
protected  SpatialTree<Sector,gov.nasa.worldwind.util.SpatialTree.ItemInfo<T>> createInstance(Sector sector, int depth, int maxDepth, boolean addToAllLevels)
           
protected  boolean intersects(Sector sector, gov.nasa.worldwind.util.SpatialTree.ItemInfo<T> item)
           
protected  boolean intersectsCoverage(Sector sector1, Sector sector2)
           
protected  ArrayList<Sector> subdivide(Sector extent, int rows, int cols)
           
 
Methods inherited from class gov.nasa.worldwind.util.SpatialTree
add, getAll, getCoverage, getDepth, getItems, getItems, getMaxDepth, maxDepthAdd, maxDepthRemove, normalAdd, normalRemove, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpatialTree.SectorTree

public SpatialTree.SectorTree(int maxDepth)

SpatialTree.SectorTree

public SpatialTree.SectorTree(Sector coverage,
                              int maxDepth,
                              boolean addToAllLevels)

SpatialTree.SectorTree

protected SpatialTree.SectorTree(Sector coverage,
                                 int depth,
                                 int maxDepth,
                                 boolean addToAllLevels)
Method Detail

contains

protected boolean contains(Sector extent,
                           LatLon location)
Specified by:
contains in class SpatialTree<Sector,gov.nasa.worldwind.util.SpatialTree.ItemInfo<T>>

createInstance

protected SpatialTree<Sector,gov.nasa.worldwind.util.SpatialTree.ItemInfo<T>> createInstance(Sector sector,
                                                                                             int depth,
                                                                                             int maxDepth,
                                                                                             boolean addToAllLevels)
Specified by:
createInstance in class SpatialTree<Sector,gov.nasa.worldwind.util.SpatialTree.ItemInfo<T>>

intersects

protected boolean intersects(Sector sector,
                             gov.nasa.worldwind.util.SpatialTree.ItemInfo<T> item)
Specified by:
intersects in class SpatialTree<Sector,gov.nasa.worldwind.util.SpatialTree.ItemInfo<T>>

intersectsCoverage

protected boolean intersectsCoverage(Sector sector1,
                                     Sector sector2)
Specified by:
intersectsCoverage in class SpatialTree<Sector,gov.nasa.worldwind.util.SpatialTree.ItemInfo<T>>

subdivide

protected ArrayList<Sector> subdivide(Sector extent,
                                      int rows,
                                      int cols)
Specified by:
subdivide in class SpatialTree<Sector,gov.nasa.worldwind.util.SpatialTree.ItemInfo<T>>

NASA World Wind