public abstract class ALcdEarthTileCombiner extends Object implements ILcdEarthTileCombiner
ILcdEarthTileCombiner
implementations. Derived classes need only implement the abstract
combineTileData()
method, which combines the data objects of four input tiles. Creating a new
tile, with the appropriate properties and containing the combined data, is
handled by this class.
By default, combineTiles()
returns instances of TLcdEarthTile
. This
behaviour can be changed by overriding
createCombinedTile()
.
Modifier | Constructor and Description |
---|---|
protected |
ALcdEarthTileCombiner()
Constructs a new
ALcdEarthTileCombiner . |
Modifier and Type | Method and Description |
---|---|
abstract Object |
combineTileData(ALcdEarthTile[][] aInputTiles,
Object[][] aInputData)
Combines the data present in the four input tiles.
|
ALcdEarthTile |
combineTiles(ALcdEarthTile[][] aInputs)
Combines four tiles into one.
|
ALcdEarthTile |
combineTiles(ALcdEarthTile[][] aInputs,
ALcdEarthTile[] aContext)
The default implementation of this method simply calls
combineTiles(com.luciad.earth.tileset.ALcdEarthTile[][]) ,
ignoring the tiles passed in aContext . |
protected ALcdEarthTile |
createCombinedTile(ILcd3DEditableBounds aCombinedBounds,
Object aCombinedData,
int aLevel,
long aX,
long aY,
ILcdEarthTileSetCoverage aCoverage,
ILcdGeoReference aGeoreference,
TLcdEarthTileFormat aFormat)
Returns a new
TLcdEarthTile with the given
properties. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDataFormat
protected ALcdEarthTileCombiner()
ALcdEarthTileCombiner
.public abstract Object combineTileData(ALcdEarthTile[][] aInputTiles, Object[][] aInputData)
combineTiles()
.aInputTiles
- the four source tilesaInputData
- the data objects of four source tilesIllegalArgumentException
- if the data cannot be combinedpublic ALcdEarthTile combineTiles(ALcdEarthTile[][] aInputs)
combineTileData()
,
with the data objects of the four source tiles as an argument.
The returned tile is instantiated using the method
createCombinedTile()
.
combineTiles
in interface ILcdEarthTileCombiner
aInputs
- 2x2 matrix of tiles of level NIllegalArgumentException
- if the tiles cannot be combinedprotected ALcdEarthTile createCombinedTile(ILcd3DEditableBounds aCombinedBounds, Object aCombinedData, int aLevel, long aX, long aY, ILcdEarthTileSetCoverage aCoverage, ILcdGeoReference aGeoreference, TLcdEarthTileFormat aFormat)
TLcdEarthTile
with the given
properties. This method can be overridden if some other implementation of
ALcdEarthTile
is needed.aCombinedBounds
- the bounds of the new tileaCombinedData
- the data of the new tileaLevel
- the level of the new tileaX
- the column index of the new tileaY
- the row index of the new tileaCoverage
- the coverage of the new tileaGeoreference
- the georeference of the new tileaFormat
- the data format of the new tilepublic ALcdEarthTile combineTiles(ALcdEarthTile[][] aInputs, ALcdEarthTile[] aContext)
combineTiles(com.luciad.earth.tileset.ALcdEarthTile[][])
,
ignoring the tiles passed in aContext
.combineTiles
in interface ILcdEarthTileCombiner
aInputs
- 2x2 matrix of tiles of level NaContext
- additional neighboring tiles that may be used by the combinerIllegalArgumentException
- if the tiles cannot be combined