gov.nasa.worldwind.layers
Class BasicTiledImageLayer
java.lang.Object
gov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.WWObjectImpl
gov.nasa.worldwind.layers.AbstractLayer
gov.nasa.worldwind.layers.TiledImageLayer
gov.nasa.worldwind.layers.BasicTiledImageLayer
- All Implemented Interfaces:
- AVList, Disposable, Layer, NamedObject, Restorable, BulkRetrievable, WWObject, PropertyChangeListener, EventListener
- Direct Known Subclasses:
- Clementine30Layer, Clementine40Layer, MDIMLayer, MOCColorizedLayer, MOCLayer, MolaColorASULayer, MolaColoredJPLLayer, MSVirtualEarthLayer, ShadedElevationLayer, THEMISColorLayer, THEMISLayer, USGSDigitalOrtho, USGSTopographicMaps, USGSTopoHighRes, USGSTopoLowRes, USGSTopoMedRes, USGSUrbanAreaOrtho, WMSTiledImageLayer
public class BasicTiledImageLayer
- extends TiledImageLayer
- implements BulkRetrievable
Method Summary |
protected void |
checkResources()
|
protected Document |
createConfigurationDocument(AVList params)
|
protected void |
doGetRestorableStateForAVPair(String key,
Object value,
RestorableSupport rs,
RestorableSupport.StateObject context)
|
protected void |
doRestoreState(RestorableSupport rs,
RestorableSupport.StateObject context)
|
protected void |
doRestoreStateForObject(RestorableSupport rs,
RestorableSupport.StateObject so)
|
protected void |
downloadTexture(TextureTile tile)
|
protected void |
downloadTexture(TextureTile tile,
gov.nasa.worldwind.layers.BasicTiledImageLayer.DownloadPostProcessor postProcessor)
|
protected void |
doWriteConfigurationParams(FileStore fileStore,
String fileName,
AVList params)
|
protected void |
forceTextureLoad(TextureTile tile)
|
protected AVList |
getConfigurationParams(AVList params)
|
long |
getEstimatedMissingDataSize(Sector sector,
double resolution)
Get the estimated size in byte of the missing imagery for the given Sector and resolution. |
protected static AVList |
getParamsFromDocument(Element domElement,
AVList params)
|
String |
getRestorableState()
Returns an XML document string describing the object’s state. |
protected void |
initializeResources(AVList params)
|
protected void |
initPropertiesFromCapabilities(Capabilities caps,
AVList params)
|
protected void |
initPropertiesFromService(AVList params)
|
BulkRetrievalThread |
makeLocal(Sector sector,
double resolution)
Start a new BulkRetrievalThread that will try to download all texture tiles
for a given Sector and resolution. |
protected boolean |
needsConfigurationFile(FileStore fileStore,
String fileName,
AVList params,
boolean removeIfExpired)
|
protected void |
requestTexture(DrawContext dc,
TextureTile tile)
|
protected static AVList |
restorableStateToParams(String stateInXml)
|
void |
restoreState(String stateInXml)
Restores the object’s state to what is described in the specified XML document string. |
protected static void |
restoreStateForParams(RestorableSupport rs,
RestorableSupport.StateObject context,
AVList params)
|
protected static void |
setFallbacks(AVList params)
|
protected void |
writeConfigurationFile()
|
protected void |
writeConfigurationParams(AVList params)
|
Methods inherited from class gov.nasa.worldwind.layers.TiledImageLayer |
composeImageForSector, computeLevelForResolution, countImagesInSector, countImagesInSector, doRender, downloadImage, getAvailableImageFormats, getDefaultImageFormat, getLevels, getReferencePoint, getRequestQ, getTilesInSector, isAtMaxResolution, isDrawBoundingVolumes, isDrawTileBoundaries, isDrawTileIDs, isForceLevelZeroLoads, isImageFormatAvailable, isLayerInView, isMultiResolution, isRetainLevelZeroTiles, isShowImageTileOutlines, isUseMipMaps, isUseTransparentTextures, render, requestImage, setAvailableImageFormats, setBlendingFunction, setDrawBoundingVolumes, setDrawTileBoundaries, setDrawTileIDs, setExpiryTime, setForceLevelZeroLoads, setName, setRetainLevelZeroTiles, setShowImageTileOutlines, setSplitScale, setUseMipMaps, setUseTransparentTextures |
Methods inherited from class gov.nasa.worldwind.layers.AbstractLayer |
dispose, doPick, doPreRender, getExpiryTime, getMaxActiveAltitude, getMinActiveAltitude, getName, getOpacity, getScale, getScreenCredit, isEnabled, isLayerActive, isNetworkRetrievalEnabled, isPickEnabled, pick, preRender, setEnabled, setMaxActiveAltitude, setMinActiveAltitude, setNetworkRetrievalEnabled, setOpacity, setPickEnabled, setScreenCredit, toString |
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 interface gov.nasa.worldwind.avlist.AVList |
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues |
SERVICE_CAPABILITIES_RESOURCE_ID
protected static final int SERVICE_CAPABILITIES_RESOURCE_ID
- See Also:
- Constant Field Values
BasicTiledImageLayer
public BasicTiledImageLayer(AVList params)
BasicTiledImageLayer
public BasicTiledImageLayer(Document dom,
AVList params)
BasicTiledImageLayer
public BasicTiledImageLayer(Element domElement,
AVList params)
BasicTiledImageLayer
public BasicTiledImageLayer(LevelSet levelSet)
BasicTiledImageLayer
public BasicTiledImageLayer(String restorableStateInXml)
checkResources
protected void checkResources()
- Specified by:
checkResources
in class TiledImageLayer
createConfigurationDocument
protected Document createConfigurationDocument(AVList params)
doGetRestorableStateForAVPair
protected void doGetRestorableStateForAVPair(String key,
Object value,
RestorableSupport rs,
RestorableSupport.StateObject context)
doRestoreState
protected void doRestoreState(RestorableSupport rs,
RestorableSupport.StateObject context)
doRestoreStateForObject
protected void doRestoreStateForObject(RestorableSupport rs,
RestorableSupport.StateObject so)
downloadTexture
protected void downloadTexture(TextureTile tile)
downloadTexture
protected void downloadTexture(TextureTile tile,
gov.nasa.worldwind.layers.BasicTiledImageLayer.DownloadPostProcessor postProcessor)
doWriteConfigurationParams
protected void doWriteConfigurationParams(FileStore fileStore,
String fileName,
AVList params)
forceTextureLoad
protected void forceTextureLoad(TextureTile tile)
- Specified by:
forceTextureLoad
in class TiledImageLayer
getConfigurationParams
protected AVList getConfigurationParams(AVList params)
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 BulkRetrievable
- 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.
getParamsFromDocument
protected static AVList getParamsFromDocument(Element domElement,
AVList params)
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.
initializeResources
protected void initializeResources(AVList params)
initPropertiesFromCapabilities
protected void initPropertiesFromCapabilities(Capabilities caps,
AVList params)
initPropertiesFromService
protected void initPropertiesFromService(AVList params)
makeLocal
public BulkRetrievalThread makeLocal(Sector sector,
double resolution)
- Start a new
BulkRetrievalThread
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 BulkRetrievable
- Parameters:
sector
- the Sector
to download tiles for.resolution
- the target resolution provided in radian latitude per texel.
- Returns:
- the
BulkRetrievalThread
that executes the retrieval.
needsConfigurationFile
protected boolean needsConfigurationFile(FileStore fileStore,
String fileName,
AVList params,
boolean removeIfExpired)
requestTexture
protected void requestTexture(DrawContext dc,
TextureTile tile)
- Specified by:
requestTexture
in class TiledImageLayer
restorableStateToParams
protected static AVList restorableStateToParams(String stateInXml)
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.
restoreStateForParams
protected static void restoreStateForParams(RestorableSupport rs,
RestorableSupport.StateObject context,
AVList params)
setFallbacks
protected static void setFallbacks(AVList params)
writeConfigurationFile
protected void writeConfigurationFile()
writeConfigurationParams
protected void writeConfigurationParams(AVList params)