/** @packageDocumentation * @module OrbitGT */ declare type int32 = number; import { Bounds } from "../../spatial/geom/Bounds"; import { AList } from "../../system/collection/AList"; import { ALong } from "../../system/runtime/ALong"; /** * Class ReadRequest allows selective reading of information from a point cloud file. * * @version 1.0 December 2011 */ /** @internal */ export declare class ReadRequest { /** The request to only read the geometry */ static readonly READ_GEOMETRY: ReadRequest; /** The request to only read the geometry and color */ static readonly READ_GEOMETRY_AND_COLOR: ReadRequest; /** The request to read geometry and attributes */ static readonly READ_ALL: ReadRequest; /** Should the geometry be read? */ private _readGeometryAttribute; /** Should the color be read? */ private _readColorAttribute; /** Should the intensity be read? */ private _readIntensityAttribute; /** Should the weight be read? */ private _readWeightAttribute; /** Should thinning be used? */ private _thinning; /** The list of extra attributes that should be read */ private _extraAttributes; /** Should the deleted points be read as well? */ private _readDeletedAttribute; /** An optional 2D area to filter */ private _areaFilter; /** The number read transactions */ private _dataTransactions; /** The number of bytes read for this request */ private _dataSize; /** The number of nanoseconds spent reading data */ private _dataReadTime; /** * Create a new request to read all data (geometry and attributes) (except deleted points). */ constructor(); /** * Create a new request. * @param readColor should the color be read? * @param readIntensity should the intensity be read? * @param readWeight should the weight be read? * @param thinning should thinning be used? */ static create(readColor: boolean, readIntensity: boolean, readWeight: boolean, thinning: int32): ReadRequest; /** * Create the request to only read the geometry. * @return the request. */ static getGeometry(): ReadRequest; /** * Create the request to only read the geometry and colot. * @return the request. */ static getGeometryAndColor(): ReadRequest; /** * Create the request to read the full geometry and all attributes. * @return the request. */ static getGeometryAndAttributes(): ReadRequest; /** * Should the geometry be read? * @return true if it should be read. */ readGeometry(): boolean; /** * Should the geometry be read? * @param read true if it should be read. */ setReadGeometry(read: boolean): void; /** * Should the color be read? * @return true if it should be read. */ readColor(): boolean; /** * Should the intensity be read? * @return true if it should be read. */ readIntensity(): boolean; /** * Should the weight be read? * @return true if it should be read. */ readWeight(): boolean; /** * Should thinning be used? * @return the thinning factor. */ getThinning(): int32; /** * Should the deleted points be read? * @return true if they should be read. */ readDeleted(): boolean; /** * Should the deleted points be read? * @param read true if they should be read. */ setReadDeleted(read: boolean): void; /** * Should all extra attributes be read? * @return true if all extra attribute should be read. */ readAllExtraAttributes(): boolean; /** * Get the list of extra attributes to read. * @return the list of extra attributes to read. */ getExtraAttributes(): AList; /** * Set the list of extra attributes to read. * @param list the list of extra attributes to read. */ setExtraAttributes(list: AList): void; /** * Add the name of an extra attribute to read. * @param attributeName the name of the attribute to read. * @return this request for convenient chaining. */ addExtraAttribute(attributeName: string): ReadRequest; /** * Get the area filter. * @return the area filter. */ getAreaFilter(): Bounds; /** * Set the area filter. * @param filter the new area filter. */ setAreaFilter(filter: Bounds): void; /** * Add a number of bytes to the data size. * @param size the number of bytes. */ addDataSize(size: int32): void; /** * Get the data size of the request. * @return the number of bytes. */ getDataSize(): ALong; /** * Clear the data size of the request. */ clearDataSize(): void; /** * Get the number of data transactions. * @return the number of data transactions. */ getDataTransactions(): int32; /** * Add a number of nanoseconds to the data read time. * @param time the number of nanoseconds. */ addDataReadTime(time: ALong): void; /** * Get the data read time of the request. * @return the number of nanoseconds. */ getDataReadTime(): ALong; /** * Clear the data read time of the request. */ clearDataReadTime(): void; } export {}; //# sourceMappingURL=ReadRequest.d.ts.map