NASA World Wind

gov.nasa.worldwind.layers
Class BasicTiledImageLayer

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.WWObjectImpl
          extended by gov.nasa.worldwind.layers.AbstractLayer
              extended by gov.nasa.worldwind.layers.TiledImageLayer
                  extended by gov.nasa.worldwind.layers.BasicTiledImageLayer
All Implemented Interfaces:
AVList, Disposable, Layer, Restorable, Retrievable, WWObject, PropertyChangeListener, EventListener
Direct Known Subclasses:
BMNGSurfaceLayer, Clementine30Layer, Clementine40Layer, CountryBoundariesLayer, LandsatI3, MDIMLayer, MOCColorizedLayer, MOCLayer, MolaColorASULayer, MolaColoredJPLLayer, MSVirtualEarthLayer, NAIPCalifornia, NASAEarthObservatory, OpenStreetMapLayer, ShadedElevationLayer, THEMISColorLayer, THEMISLayer, USGSDigitalOrtho, USGSTopographicMaps, USGSTopoHighRes, USGSTopoLowRes, USGSTopoMedRes, USGSUrbanAreaOrtho, WMSTiledImageLayer

public class BasicTiledImageLayer
extends TiledImageLayer
implements Retrievable


Field Summary
 
Fields inherited from class gov.nasa.worldwind.avlist.AVListImpl
changeSupport
 
Constructor Summary
BasicTiledImageLayer(AVList params)
           
BasicTiledImageLayer(LevelSet levelSet)
           
BasicTiledImageLayer(String stateInXml)
           
 
Method Summary
protected  void downloadTexture(TextureTile tile)
           
protected  void downloadTexture(TextureTile tile, gov.nasa.worldwind.layers.BasicTiledImageLayer.DownloadPostProcessor postProcessor)
           
protected  void forceTextureLoad(TextureTile tile)
           
 long getEstimatedMissingDataSize(Sector sector, double resolution)
          Get the estimated size in byte of the missing imagery for the given Sector and resolution.
 String getRestorableState()
          Returns an XML document string describing the object’s state.
 BulkDownloadThread makeLocal(Sector sector, double resolution)
          Start a new BulkDownloadThread that will try to download all texture tiles for a given Sector and resolution.
protected  void requestTexture(DrawContext dc, TextureTile tile)
           
 void restoreState(String stateInXml)
          Restores the object’s state to what is described in the specified XML document string.
protected static AVList xmlStateToParams(String stateInXml)
           
 
Methods inherited from class gov.nasa.worldwind.layers.TiledImageLayer
composeImageForSector, computeLevelForResolution, countImagesInSector, countImagesInSector, doRender, getAvailableImageFormats, getDefaultImageFormat, getLevels, getReferencePoint, getRequestQ, getTilesInSector, isAtMaxResolution, isDrawBoundingVolumes, isDrawTileBoundaries, isDrawTileIDs, isForceLevelZeroLoads, isImageFormatAvailable, isLayerInView, isMultiResolution, isRetainLevelZeroTiles, isShowImageTileOutlines, isUseMipMaps, isUseTransparentTextures, render, setAvailableImageFormats, setBlendingFunction, setDrawBoundingVolumes, setDrawTileBoundaries, setDrawTileIDs, setForceLevelZeroLoads, setName, setRetainLevelZeroTiles, setShowImageTileOutlines, setSplitScale, setUseMipMaps, setUseTransparentTextures
 
Methods inherited from class gov.nasa.worldwind.layers.AbstractLayer
dispose, doPick, doPreRender, getMaxActiveAltitude, getMinActiveAltitude, getName, getOpacity, getScale, isEnabled, isLayerActive, isNetworkRetrievalEnabled, isPickEnabled, pick, preRender, setEnabled, setMaxActiveAltitude, setMinActiveAltitude, setNetworkRetrievalEnabled, setOpacity, setPickEnabled, toString
 
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, wait, wait, wait
 
Methods inherited from interface gov.nasa.worldwind.retrieve.Retrievable
getName
 
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
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 

Constructor Detail

BasicTiledImageLayer

public BasicTiledImageLayer(AVList params)

BasicTiledImageLayer

public BasicTiledImageLayer(LevelSet levelSet)

BasicTiledImageLayer

public BasicTiledImageLayer(String stateInXml)
Method Detail

downloadTexture

protected void downloadTexture(TextureTile tile)

downloadTexture

protected void downloadTexture(TextureTile tile,
                               gov.nasa.worldwind.layers.BasicTiledImageLayer.DownloadPostProcessor postProcessor)

forceTextureLoad

protected void forceTextureLoad(TextureTile tile)
Specified by:
forceTextureLoad in class TiledImageLayer

getEstimatedMissingDataSize

public long getEstimatedMissingDataSize(Sector sector,
                                        double resolution)
Get the estimated size in byte of the missing imagery for the given Sector and resolution. Note that the target resolution must be provided in radian latitude per texel - which is the resolution in meter divided by the globe radius.

Specified by:
getEstimatedMissingDataSize in interface Retrievable
Parameters:
sector - the Sector to estimate.
resolution - the target resolution provided in radian latitude per texel.
Returns:
the estimated size in byte of the missing imagery.

getRestorableState

public String getRestorableState()
Description copied from interface: Restorable
Returns an XML document string describing the object’s state. This state can be restored later by calling restoreState and passing the XML document.

Specified by:
getRestorableState in interface Restorable
Overrides:
getRestorableState in class AbstractLayer
Returns:
an XML document string describing the object's state.

makeLocal

public BulkDownloadThread makeLocal(Sector sector,
                                    double resolution)
Start a new BulkDownloadThread that will try to download all texture tiles for a given Sector and resolution. Note that the target resolution must be provided in radian latitude per texel - which is the resolution in meter divided by the globe radius.

Specified by:
makeLocal in interface Retrievable
Parameters:
sector - the Sector to download tiles for.
resolution - the target resolution provided in radian latitude per texel.
Returns:
the BulkDownloadThread that executes the retrieval.

requestTexture

protected void requestTexture(DrawContext dc,
                              TextureTile tile)
Specified by:
requestTexture in class TiledImageLayer

restoreState

public void restoreState(String stateInXml)
Description copied from interface: Restorable
Restores the object’s state to what is described in the specified XML document string.

Specified by:
restoreState in interface Restorable
Overrides:
restoreState in class AbstractLayer
Parameters:
stateInXml - an XML document string describing an object's state.

xmlStateToParams

protected static AVList xmlStateToParams(String stateInXml)

NASA World Wind