/** @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 { BlockIndex } from "../../model/BlockIndex"; import { GridIndex } from "../../model/GridIndex"; /** * Class BlockRecord defines a (32x32x32) block of tiles. * * @version 1.0 January 2014 */ /** @internal */ export declare class BlockRecord { /** The size of the record in the file */ static readonly RECORD_SIZE: int32; /** * No instances. */ private constructor(); /** * Convert a tile grid index to a block grid index. * @param tileIndex the tile index. * @param blockSize the block size. * @return the block index. */ static toBlockIndex1(tileIndex: int32, blockSize: int32): int32; /** * Convert a tile grid index to a block grid index. * @param tileX the x index of the tile. * @param tileY the y index of the tile. * @param tileZ the z index of the tile. * @param blockSize the block size. * @return the block index. */ static toBlockIndex(tileX: int32, tileY: int32, tileZ: int32, blockSize: int32): GridIndex; /** * Write a record. * @param output the output stream. */ static write(block: BlockIndex, output: OutStream): void; /** * Read a record. * @param level the level. * @param in the input stream from the file. * @param tileIndex the index of the tile. * @param pointIndex the index of the first point in the block. * @return the requested record. */ static readNew(level: int32, input: InStream, blockIndex: int32, tileIndex: int32, pointIndex: ALong): BlockIndex; } export {}; //# sourceMappingURL=BlockRecord.d.ts.map