public interface ILcdEarthTileCombiner
As an example, if the source tiles contain images, an ILcdEarthTileCombiner
would scale the four source images to half their width and height, and then
draw each of these scaled images into a quadrant of a newly created image
of the same size as the originals. The following figure illustrates this
principle:
The tile combiner mechanism is used by TLcdEarthTileRepositoryPreprocessor
to create low-resolution tiles after obtaining the highest appropriate
resolution from a tileset. This is typically faster than obtaining all
tiles from the tileset, because the lower a tile's level, the more
source assets will become involved in generating that tile.
Modifier and Type | Method and Description |
---|---|
ALcdEarthTile |
combineTiles(ALcdEarthTile[][] aInputs)
Combines four tiles into one.
|
ALcdEarthTile |
combineTiles(ALcdEarthTile[][] aInputs,
ALcdEarthTile[] aContext)
Combines four tiles into one.
|
TLcdEarthTileFormat |
getDataFormat()
Returns the type of data that can be combined by this combiner.
|
ALcdEarthTile combineTiles(ALcdEarthTile[][] aInputs)
[0][0] | [1][0] |
[0][1] | [1][1] |
aInputs
- 2x2 matrix of tiles of level NIllegalArgumentException
- if the tiles cannot be combinedALcdEarthTile combineTiles(ALcdEarthTile[][] aInputs, ALcdEarthTile[] aContext)
aContext
must not be null. If the
neighboring tiles are not available, the application should call
combineTiles(com.luciad.earth.tileset.ALcdEarthTile[][])
instead.aInputs
- 2x2 matrix of tiles of level NaContext
- additional neighboring tiles that may be used by the combinerIllegalArgumentException
- if the tiles cannot be combinedTLcdEarthTileFormat getDataFormat()
getData()
methods of the four input tiles should all return an object of this format.