/** @packageDocumentation * @module OrbitGT */ import { Bounds } from "../../spatial/geom/Bounds"; import { AList } from "../../system/collection/AList"; import { BlockIndex } from "../model/BlockIndex"; import { GridIndex } from "../model/GridIndex"; import { TileIndex } from "../model/TileIndex"; import { Level } from "./Level"; /** * Class Block defines a block of tiles. * * @version 1.0 November 2015 */ /** @internal */ export declare class Block { /** The index of the block */ private _index; /** The full list of tiles in the block (can be null if the tile-list has not been loaded) */ private _tileList; /** The map of tiles in the block */ private _tileMap; /** * Create a new block. * @param index the index of the block. */ constructor(index: BlockIndex); /** * Get the index of the block. * @return the index of the block. */ getBlockIndex(): BlockIndex; /** * Get the spatial bounds of the block. * @param level the level to which the block belongs. * @return the spatial bounds of the block. */ getBlockBounds(level: Level): Bounds; /** * Add a block to the list of blocks to load. * @param blocksToLoad the list of blocks to load. * @param block the block to add. */ private static addToLoadList; /** * Set the tiles in the block. * @param tileList the list of tiles. */ setTiles(tileList: Array): void; /** * Have the tiles been set? * @return true if the tiles have been set. */ hasTiles(): boolean; /** * List all tiles. * @param blocksToLoad the list of blocks to load. * @return all tiles (null if tiles are not loaded). */ getTiles(blocksToLoad: AList): Array; /** * Find a tile. * @param tileGridIndex the grid index of the tile. * @return the tile (null if not found). */ findTile(tileGridIndex: GridIndex): TileIndex; } //# sourceMappingURL=Block.d.ts.map