Class TLcdEarthTileContext

java.lang.Object
com.luciad.earth.view.util.TLcdEarthTileContext

public class TLcdEarthTileContext extends Object
TLcdEarthTileContext defines the context of an Earth painter. It gives access to the following information:
  • What tile set was painted.
  • What coverage in this tile set was painted.
  • What tiles in this coverage where painted.
  • How many tile requests are still pending.
Since:
10.1
See Also:
  • Constructor Details

    • TLcdEarthTileContext

      public TLcdEarthTileContext(ILcdEarthTileSet aTileSet, ILcdEarthTileSetCoverage aCoverage, Map<TLcdEarthTileID,ALcdEarthTile> aTiles)
      Constructs a new TLcdEarthTileContext with an unknown number of pending tiles.

      The tile map should be unmodifiable.

      Parameters:
      aTileSet - the tile set that was painted
      aCoverage - the coverage in the tile set that was painted
      aTiles - the tiles in the coverage that were painted
    • TLcdEarthTileContext

      public TLcdEarthTileContext(ILcdEarthTileSet aTileSet, ILcdEarthTileSetCoverage aCoverage, Map<TLcdEarthTileID,ALcdEarthTile> aTiles, int aPendingTileCount)
      Constructs a new TLcdEarthTileContext.

      The tile map should be unmodifiable.

      Parameters:
      aTileSet - the tile set that was painted
      aCoverage - the coverage in the tile set that was painted
      aTiles - the tiles in the coverage that were painted
      aPendingTileCount - the number of tiles that are pending or -1 if this is unknown
  • Method Details

    • getTileSet

      public ILcdEarthTileSet getTileSet()
      Returns the tile set that was painted.
      Returns:
      the tile set
    • getCoverage

      public ILcdEarthTileSetCoverage getCoverage()
      Returns the coverage in the tile set that was painted
      Returns:
      the coverage
    • getTiles

      public Map<TLcdEarthTileID,ALcdEarthTile> getTiles()
      Returns the tiles in the coverage that were painted.

      As defined in the ILcdEarthTileSet interface, tiles should never be modified.

      Returns:
      the tiles in the coverage that were painted
    • getPendingTileCount

      public int getPendingTileCount()
      Returns the number of tile requests that are still pending.
      Returns:
      the number of pending tiles or -1 if it is unknown.