gov.nasa.worldwind.util
Class LevelSet
java.lang.Object
gov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.WWObjectImpl
gov.nasa.worldwind.util.LevelSet
- All Implemented Interfaces:
- AVList, WWObject, java.beans.PropertyChangeListener, java.util.EventListener
public class LevelSet
- extends WWObjectImpl
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 |
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)
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