NASA World Wind

gov.nasa.worldwind.util
Class LevelSet

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.WWObjectImpl
          extended by gov.nasa.worldwind.util.LevelSet
All Implemented Interfaces:
AVList, WWObject, java.beans.PropertyChangeListener, java.util.EventListener

public class LevelSet
extends WWObjectImpl


Nested Class Summary
static class LevelSet.SectorResolution
           
 
Field Summary
 
Fields inherited from class gov.nasa.worldwind.avlist.AVListImpl
changeSupport
 
Constructor Summary
LevelSet(AVList params)
           
LevelSet(AVList params, java.util.Collection<Level> levels)
           
LevelSet(java.util.Collection<Level> levels, AVList params)
           
LevelSet(LevelSet source)
           
 
Method Summary
 Sector computeSectorForKey(TileKey key)
           
 Tile createTile(TileKey key)
           
 Level getFirstLevel()
           
 Level getLastLevel()
           
 Level getLastLevel(Angle latitude, Angle longitude)
           
 Level getLastLevel(Sector sector)
           
 Level getLevel(int levelNumber)
           
 java.util.ArrayList<Level> getLevels()
           
 LatLon getLevelZeroTileDelta()
           
 Level getNextToLastLevel()
           
 int getNumLevels()
           
 Sector getSector()
           
 boolean isFinalLevel(int levelNum)
           
 boolean isLevelEmpty(int levelNumber)
           
 boolean isResourceAbsent(Tile tile)
          Indicates whether a tile has been marked as absent.
 void markResourceAbsent(Tile tile)
          Instructs the level set that a tile is likely to be absent.
 void unmarkResourceAbsent(Tile tile)
          Removes the absent-tile mark associated with a tile, if one is associatied.
 
Methods inherited from class gov.nasa.worldwind.WWObjectImpl
propertyChange
 
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.nasa.worldwind.avlist.AVList
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 

Constructor Detail

LevelSet

public LevelSet(AVList params)

LevelSet

public LevelSet(AVList params,
                java.util.Collection<Level> levels)

LevelSet

public LevelSet(java.util.Collection<Level> levels,
                AVList params)

LevelSet

public LevelSet(LevelSet source)
Method Detail

computeSectorForKey

public Sector computeSectorForKey(TileKey key)

createTile

public Tile createTile(TileKey key)

getFirstLevel

public final Level getFirstLevel()

getLastLevel

public final Level getLastLevel()

getLastLevel

public final Level getLastLevel(Angle latitude,
                                Angle longitude)

getLastLevel

public final Level getLastLevel(Sector sector)

getLevel

public final Level getLevel(int levelNumber)

getLevels

public final java.util.ArrayList<Level> getLevels()

getLevelZeroTileDelta

public final LatLon getLevelZeroTileDelta()

getNextToLastLevel

public final Level getNextToLastLevel()

getNumLevels

public final int getNumLevels()

getSector

public final Sector getSector()

isFinalLevel

public final boolean isFinalLevel(int levelNum)

isLevelEmpty

public final boolean isLevelEmpty(int levelNumber)

isResourceAbsent

public final boolean isResourceAbsent(Tile tile)
Indicates whether a tile has been marked as absent.

Parameters:
tile - The tile in question.
Returns:
true if the tile is marked absent, otherwise false.
Throws:
java.lang.IllegalArgumentException - if tile is null

markResourceAbsent

public final void markResourceAbsent(Tile tile)
Instructs the level set that a tile is likely to be absent.

Parameters:
tile - The tile to mark as having an absent resource.
Throws:
java.lang.IllegalArgumentException - if tile is null

unmarkResourceAbsent

public final void unmarkResourceAbsent(Tile tile)
Removes the absent-tile mark associated with a tile, if one is associatied.

Parameters:
tile - The tile to unmark.
Throws:
java.lang.IllegalArgumentException - if tile is null

NASA World Wind