@itwin/core-frontend
Version:
iTwin.js frontend components
44 lines • 2.19 kB
TypeScript
import { Range3d, Transform } from "@itwin/core-geometry";
import { PublisherProductInfo, SpatialLocationAndExtents } from "../../RealityDataSource";
/** This interface provides information about 3dTile files for this reality data
* Currently only used for debbugging
*/
export interface ThreeDTileFileInfo {
/** the number of children at the root of this reality data */
rootChildren?: number;
}
/**
* This class provide methods used to interpret Cesium 3dTile format
*/
export declare class ThreeDTileFormatInterpreter {
/** Gets reality data spatial location and extents
* @param json root document file in json format
* @returns spatial location and volume of interest, in meters, centered around `spatial location`
* @throws [[RealityDataError]] if source is invalid or cannot be read
*/
static getSpatialLocationAndExtents(json: any): SpatialLocationAndExtents;
/** Gets information to identify the product and engine that create this reality data
* Will return undefined if cannot be resolved
* @param rootDocjson root document file in json format
* @returns information to identify the product and engine that create this reality data
*/
static getPublisherProductInfo(rootDocjson: any): PublisherProductInfo;
/** Gets information about 3dTile file for this reality data
* Will return undefined if cannot be resolved
* @param rootDocjson root document file in json format
* @returns information about 3dTile file for this reality data
*/
static getFileInfo(rootDocjson: any): ThreeDTileFileInfo;
/** Convert a boundingVolume into a range
* @param boundingVolume the bounding volume to convert
* @returns the range or undefined if cannot convert
*/
static rangeFromBoundingVolume(boundingVolume: any): Range3d | undefined;
/** Convert a boundingVolume into a range
*/
static maximumSizeFromGeometricTolerance(range: Range3d, geometricError: number): number;
/** Convert a boundingVolume into a range
*/
static transformFromJson(jTrans: number[] | undefined): Transform | undefined;
}
//# sourceMappingURL=ThreeDTileFormatInterpreter.d.ts.map