/** @packageDocumentation * @module OrbitGT */ declare type int32 = number; import { InStream } from "../../../system/io/InStream"; import { OutStream } from "../../../system/io/OutStream"; import { ALong } from "../../../system/runtime/ALong"; import { Grid } from "../../model/Grid"; import { GridIndex } from "../../model/GridIndex"; import { TileIndex } from "../../model/TileIndex"; /** * Class TileRecord defines a tile index record. * * @version 1.0 January 2014 */ /** @internal */ export declare class TileRecord { /** The size of the record in the file */ static readonly RECORD_SIZE: int32; /** * No instances. */ private constructor(); /** * Check if this tile has a certain index. * @param tileX the tile x index. * @param tileY the tile y index. * @param tileZ the tile Z index. * @return true if the tile has the index. */ static isTile(tile: TileIndex, tileX: int32, tileY: int32, tileZ: int32): boolean; /** * Check if this tile is located after a certain index. * @param tileX the tile x index. * @param tileY the tile y index. * @param tileZ the tile Z index. * @return true if the tile is after the index. */ static isAfterTile(tile: TileIndex, tileX: int32, tileY: int32, tileZ: int32): boolean; /** * Check if this tile is located before a certain index. * @param tileX the tile x index. * @param tileY the tile y index. * @param tileZ the tile Z index. * @return true if the tile is before the index. */ static isBeforeTile(tile: TileIndex, tileX: int32, tileY: int32, tileZ: int32): boolean; /** * Write a record. * @param output the output stream. */ static write(tile: TileIndex, output: OutStream): void; /** * Read a record. * @param tileGrid the grid. * @param stream the data stream from the file. * @param tileIndex the index of the tile. * @param pointIndex the index of the first point in the tile. * @return the requested record. */ static readNew(level: int32, tileGrid: Grid, stream: InStream, tileIndex: int32, pointIndex: ALong): TileIndex; /** * Read a record. * @param in the input stream. * @param tileIndex the index of the tile. * @param pointIndex the index of the first point in the tile. */ static read(tile: TileIndex, level: int32, blockIndex: int32, stream: InStream, tileIndex: int32, pointIndex: ALong): void; /** * Get the squared distance to a grid cell. * @param reference the reference point. * @return the squared distance. */ static distanceSq(tile: TileIndex, reference: GridIndex): int32; /** * Get a next-level index. * @param index the index at the current level. * @return the next-level index. */ private static getNextLevelIndex1; /** * Get a next-level index. * @param index the index at the current level. * @return the next-level index. */ static getNextLevelIndex(index: GridIndex): GridIndex; } export {}; //# sourceMappingURL=TileRecord.d.ts.map