Package com.luciad.earth.tileset.raster
Class ALcdEarthTileSetMultilevelRaster
java.lang.Object
com.luciad.earth.tileset.util.ALcdEarthTileSetWrapper
com.luciad.earth.tileset.raster.ALcdEarthTileSetMultilevelRaster
- All Implemented Interfaces:
ILcdEarthTileSet,ILcdMultilevelRaster,ILcdBounded,ILcdCache,ILcdDisposable,AutoCloseable
- Direct Known Subclasses:
TLcdEarthTileSetElevationMultilevelRaster,TLcdEarthTileSetMultilevelRaster
public abstract class ALcdEarthTileSetMultilevelRaster
extends ALcdEarthTileSetWrapper
implements ILcdMultilevelRaster
Views an
ILcdEarthTileSet as an ILcdMultilevelRaster.- Since:
- 8.2
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a multilevel raster wrapper for the given tileset.protectedALcdEarthTileSetMultilevelRaster(ILcdEarthTileSet aTileSet, ILcdEarthTileSetCoverage aCoverage) Creates a multilevel raster wrapper for the given tileset. -
Method Summary
Modifier and TypeMethodDescriptionvoidClears the cache.protected abstract ILcdRastercreateRaster(int aLevel) Creates the raster at the given level.Looks up and returns the cached Object corresponding to the given key.getRaster(int i) intReturns the tileset used to retrieve the raster data.Returns the data coverage that is used to retrieve the raster data.voidinsertIntoCache(Object o, Object o1) Inserts a cache Object corresponding to the given key Object.protected abstract booleanisValidRasterCoverage(ILcdEarthTileSetCoverage aCoverage) Returns whether the given coverage is a valid raster coverage for this multi level raster.Looks up and removes the cached Object corresponding to the given key.Methods inherited from class com.luciad.earth.tileset.util.ALcdEarthTileSetWrapper
cancelTile, containsTile, containsTileSetCoverage, dispose, getBounds, getDelegateTileSet, getLevelCount, getTileColumnCount, getTileRowCount, getTileSetCoverage, getTileSetCoverage, getTileSetCoverageCount, isFormatSupported, isGeoReferenceSupported, produceTile, produceTile, updateTile, updateTileMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.util.ILcdDisposable
close
-
Constructor Details
-
ALcdEarthTileSetMultilevelRaster
Creates a multilevel raster wrapper for the given tileset. The first valid coverage in the given tileset will be used to retrieve the raster data.- Parameters:
aTileSet- A tileset.- Throws:
IllegalArgumentException- If no valid coverage is available.- See Also:
-
ALcdEarthTileSetMultilevelRaster
protected ALcdEarthTileSetMultilevelRaster(ILcdEarthTileSet aTileSet, ILcdEarthTileSetCoverage aCoverage) Creates a multilevel raster wrapper for the given tileset. If the given coverage is not null, it will be used to retrieve the data. Otherwise the first valid coverage is used instead.- Parameters:
aTileSet- A tileset.aCoverage- The coverage that contains the raster data or null to use the first valid coverage from the given tileset.- Throws:
IllegalArgumentException- If the given coverage is not null and not valid or no valid coverage is available.- See Also:
-
-
Method Details
-
getRasterTileSetCoverage
Returns the data coverage that is used to retrieve the raster data.- Returns:
- A data coverage.
-
getRasterTileSet
Returns the tileset used to retrieve the raster data.- Returns:
- A tileset.
-
isValidRasterCoverage
Returns whether the given coverage is a valid raster coverage for this multi level raster.- Parameters:
aCoverage- An earth coverage.- Returns:
- True if the coverage can be used as the raster data source.
-
createRaster
Creates the raster at the given level.- Parameters:
aLevel- A level.- Returns:
- A raster.
-
getRasterCount
public int getRasterCount()- Specified by:
getRasterCountin interfaceILcdMultilevelRaster- Returns:
- the number of
ILcdRasterobjects in thisILcdMultilevelRaster.
-
getRaster
- Specified by:
getRasterin interfaceILcdMultilevelRaster- Returns:
- the
ILcdRasterat level aLevel.
-
insertIntoCache
Description copied from interface:ILcdCacheInserts a cache Object corresponding to the given key Object.- Specified by:
insertIntoCachein interfaceILcdCache- Parameters:
o- the key Object that will be used to identify the Object. The key must therefore be a unique identifier, typically the caller itself:insertIntoCache(this, ...).o1- the Object to be cached.
-
removeCachedObject
Description copied from interface:ILcdCacheLooks up and removes the cached Object corresponding to the given key.- Specified by:
removeCachedObjectin interfaceILcdCache- Parameters:
o- the key Object that was used for storing the cache Object.- Returns:
- the cached Object, or null if there was no Object corresponding to the given key.
-
clearCache
public void clearCache()Description copied from interface:ILcdCacheClears the cache.- Specified by:
clearCachein interfaceILcdCache
-
getCachedObject
Description copied from interface:ILcdCacheLooks up and returns the cached Object corresponding to the given key.- Specified by:
getCachedObjectin interfaceILcdCache- Parameters:
o- the key Object that was used for storing the cache Object.- Returns:
- the cached Object, or null if there is no Object corresponding to the given key.
-