Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | 54x 54x 53x 1x 50x | import Check from "../Core/Check.js";
import Frozen from "../Core/Frozen.js";
/**
* Simple abstraction for a group. This class exists to make the metadata API
* more consistent, i.e. metadata can be accessed via
* <code>content.group.metadata</code> much like tile metadata is accessed as
* <code>tile.metadata</code>.
*
* @param {object} options Object with the following properties:
* @param {GroupMetadata} options.metadata The metadata associated with this group.
*
* @alias Cesium3DContentGroup
* @constructor
* @private
* @experimental This feature is using part of the 3D Tiles spec that is not final and is subject to change without Cesium's standard deprecation policy.
*/
function Cesium3DContentGroup(options) {
options = options ?? Frozen.EMPTY_OBJECT;
//>>includeStart('debug', pragmas.debug);
Check.typeOf.object("options.metadata", options.metadata);
//>>includeEnd('debug');
this._metadata = options.metadata;
}
Object.defineProperties(Cesium3DContentGroup.prototype, {
/**
* Get the metadata for this group
*
* @memberof Cesium3DContentGroup.prototype
*
* @type {GroupMetadata}
*
* @readonly
*/
metadata: {
get: function () {
return this._metadata;
},
},
});
export default Cesium3DContentGroup;
|