Package com.luciad.earth.tileset.util
Class ALcdEarthCoverageFilterTileSet
java.lang.Object
com.luciad.earth.tileset.util.ALcdEarthTileSetWrapper
com.luciad.earth.tileset.util.ALcdEarthCoverageFilterTileSet
- All Implemented Interfaces:
ILcdEarthTileSet
,ILcdBounded
,ILcdDisposable
,AutoCloseable
A tileset that only has the coverages of its delegate tileset that are accepted by the
filter
.
This tileset is thread-safe for tile reading if the delegate tileset is also thread-safe for tile
reading.- Since:
- 8.2
-
Constructor Summary
ConstructorsConstructorDescriptionALcdEarthCoverageFilterTileSet
(ILcdEarthTileSet aDelegate) Creates a new coverage filter tileset for the given tileset. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract boolean
accept
(ILcdEarthTileSetCoverage aCoverage) Returns whether the given coverage should be present.getTileSetCoverage
(int aIndex) Returns the coverage at the specified index.int
Returns the number of coverages this tileset contains.Methods inherited from class com.luciad.earth.tileset.util.ALcdEarthTileSetWrapper
cancelTile, containsTile, containsTileSetCoverage, dispose, getBounds, getDelegateTileSet, getLevelCount, getTileColumnCount, getTileRowCount, getTileSetCoverage, isFormatSupported, isGeoReferenceSupported, produceTile, produceTile, updateTile, updateTile
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.util.ILcdDisposable
close
-
Constructor Details
-
ALcdEarthCoverageFilterTileSet
Creates a new coverage filter tileset for the given tileset.- Parameters:
aDelegate
- The tileset whose coverages will be filtered.
-
-
Method Details
-
accept
Returns whether the given coverage should be present. This method will be called for each coverage in the delegate tileset.- Parameters:
aCoverage
- A coverage in the delegate tileset.- Returns:
- True if the coverage should still be available in this tileset.
-
getTileSetCoverageCount
public int getTileSetCoverageCount()Description copied from interface:ILcdEarthTileSet
Returns the number of coverages this tileset contains.- Specified by:
getTileSetCoverageCount
in interfaceILcdEarthTileSet
- Overrides:
getTileSetCoverageCount
in classALcdEarthTileSetWrapper
- Returns:
- the number of coverages this tileset contains
-
getTileSetCoverage
Description copied from interface:ILcdEarthTileSet
Returns the coverage at the specified index.- Specified by:
getTileSetCoverage
in interfaceILcdEarthTileSet
- Overrides:
getTileSetCoverage
in classALcdEarthTileSetWrapper
- Parameters:
aIndex
- the index of the coverage to return- Returns:
- the requested
ILcdEarthTileSetCoverage
-