|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
gov.nasa.worldwind.retrieve.BulkRetrievalThread
gov.nasa.worldwind.layers.BasicTiledImageLayerBulkDownloader
public class BasicTiledImageLayerBulkDownloader
Downloads imagery not currently available in the World Wind file cache or a specified file store. The class derives
from Thread and is meant to operate in its own thread.
| Nested Class Summary | |
|---|---|
protected class |
BasicTiledImageLayerBulkDownloader.BulkDownloadPostProcessor
|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
protected static long |
DEFAULT_AVERAGE_FILE_SIZE
|
protected static int |
MAX_TILE_COUNT_PER_REGION
|
| Fields inherited from class gov.nasa.worldwind.retrieve.BulkRetrievalThread |
|---|
fileStore, progress, resolution, retrievable, RETRIEVAL_SERVICE_POLL_DELAY, sector |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
BasicTiledImageLayerBulkDownloader(BasicTiledImageLayer layer,
Sector sector,
double resolution)
Constructs a downloader to retrieve imagery not currently available in the World Wind file cache. |
|
BasicTiledImageLayerBulkDownloader(BasicTiledImageLayer layer,
Sector sector,
double resolution,
FileStore fileStore)
Constructs a downloader to retrieve imagery not currently available in a specified file store. |
|
| Method Summary | |
|---|---|
protected long |
computeAverageTileSize(java.io.File dir)
|
protected Sector[] |
computeRegions(Sector sector,
int levelNumber,
int maxCount)
|
protected int |
countMissingTiles()
|
protected long |
estimateAverageTileSize()
|
protected long |
getEstimatedMissingDataSize()
Get the estimated size in byte of the missing imagery for the object's Sector, resolution and file store. |
protected java.util.ArrayList<TextureTile> |
getMissingTilesInSector(Sector sector,
int levelNumber)
|
protected boolean |
isTileLocalOrAbsent(TextureTile tile)
|
protected void |
removeAbsentTile(TextureTile tile)
|
protected void |
removeRetrievedTile(TextureTile tile)
|
void |
run()
|
protected void |
submitMissingTilesRequests()
|
| Methods inherited from class gov.nasa.worldwind.retrieve.BulkRetrievalThread |
|---|
getFileStore, getProgress, getResolution, getRetrievable, getSector |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final long DEFAULT_AVERAGE_FILE_SIZE
protected static final int MAX_TILE_COUNT_PER_REGION
| Constructor Detail |
|---|
public BasicTiledImageLayerBulkDownloader(BasicTiledImageLayer layer,
Sector sector,
double resolution)
layer - the layer for which to download imagery.sector - the sector to download data for. This value is final.resolution - the target resolution, provided in radians of latitude per texel. This value is final.
java.lang.IllegalArgumentException - if either the layer or sector are null, or the resolution is less than zero.
public BasicTiledImageLayerBulkDownloader(BasicTiledImageLayer layer,
Sector sector,
double resolution,
FileStore fileStore)
layer - the layer for which to download imagery.sector - the sector to download data for. This value is final.resolution - the target resolution, provided in radians of latitude per texel. This value is final.fileStore - the file store in which to place the downloaded elevations.
java.lang.IllegalArgumentException - if either the layer, the sector or file store are null, or the resolution is
less than zero.| Method Detail |
|---|
protected long computeAverageTileSize(java.io.File dir)
protected Sector[] computeRegions(Sector sector,
int levelNumber,
int maxCount)
protected int countMissingTiles()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionprotected long estimateAverageTileSize()
protected long getEstimatedMissingDataSize()
Sector, resolution and file store.
Note that the target resolution must be provided in radian latitude per texel - which is the resolution in meter
divided by the globe radius.
protected java.util.ArrayList<TextureTile> getMissingTilesInSector(Sector sector,
int levelNumber)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionprotected boolean isTileLocalOrAbsent(TextureTile tile)
protected void removeAbsentTile(TextureTile tile)
protected void removeRetrievedTile(TextureTile tile)
public void run()
run in interface java.lang.Runnablerun in class BulkRetrievalThread
protected void submitMissingTilesRequests()
throws java.lang.InterruptedException
java.lang.InterruptedException
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||