itowns
Version:
A JS/WebGL framework for 3D geospatial data visualization
47 lines (46 loc) • 2.68 kB
TypeScript
export default C3DTileset;
/**
* A 3D Tiles
* [Tileset](https://github.com/AnalyticalGraphicsInc/3d-tiles/blob/master/specification/schema/tileset.schema.json).
* @property {C3DTilesTypes} type - Used by 3D Tiles extensions
* (e.g. {@link C3DTBatchTableHierarchyExtension}) to know in which context
* (i.e. for which 3D Tiles class) the parsing of the extension should be done.
* @property {object} asset - Generic information about the tileset, see
* [asset specification]https://github.com/CesiumGS/3d-tiles/blob/master/specification/schema/asset.schema.json
* @property {object} properties - Properties associated with the tileset, see
* [tileset specification](https://github.com/CesiumGS/3d-tiles/blob/master/specification/schema/tileset.schema.json#L11)
* @property {number} geometricError - see [tileset
* specification](https://github.com/CesiumGS/3d-tiles/blob/master/specification/schema/tileset.schema.json#L18)
* @property {string[]} extensionsUsed - see [tileset
* specification](https://github.com/CesiumGS/3d-tiles/blob/master/specification/schema/tileset.schema.json#L27)
* @property {array} extensionsRequired - see [tileset specification](https://github.com/CesiumGS/3d-tiles/blob/master/specification/schema/tileset.schema.json#L36)
* @property {object[]} tiles - an array holding all the
* [tiles](https://github.com/AnalyticalGraphicsInc/3d-tiles/blob/master/specification/schema/tile.schema.json)
* (not their content which is stored in the attribute object3d of the
* layer). This list represents a flattened tileset.
* @property {object} extensions - Extensions of the tileset in the form:
* {extensioName1: extensionObject1, extensioName2: extensionObject2, ...}
*/
declare class C3DTileset {
constructor(json: any, baseURL: any, registeredExtensions: any);
type: string;
asset: any;
properties: any;
geometricError: any;
extensionsUsed: any;
extensionsRequired: any;
tiles: any[];
extensions: any;
/**
* Recursion on the 3DTiles tileset (which is a tree) to parse the tiles
* (nodes of the tree).
* @param {object} tile - current tile
* @param {string} baseURL - url of the source tileset and tiles
* @param {object} parent - parent tile (used for computing the transform
* matrix from local to global coordinates)
* @param {object} registeredExtensions - 3D Tiles extensions registered
* in the C3DTilesLayer (see {@link C3DTExtensions}
*/
parseTiles(tile: object, baseURL: string, parent: object, registeredExtensions: object): void;
extendTileset(tileset: any, nodeId: any, baseURL: any, registeredExtensions: any): void;
}