UNPKG

@cesium/engine

Version:

CesiumJS is a JavaScript library for creating 3D globes and 2D maps in a web browser without a plugin.

58 lines (55 loc) 1.54 kB
/** * Information about metadata that is supposed to be picked. * * This is initialized in the `Scene.pickMetadata` function, and passed to * the `FrameState`. It is used to configure the draw commands that render * the metadata values of an object into the picking frame buffer. The * raw values are read from that buffer, and are then translated back into * proper metadata values in `Picking.pickMetadata`, using the structural * information about the metadata that is stored here. * * @private */ function PickedMetadataInfo( schemaId, className, propertyName, classProperty, metadataProperty, ) { /** * The optional ID of the metadata schema * * @type {string|undefined} */ this.schemaId = schemaId; /** * The name of the metadata class * * @type {string} */ this.className = className; /** * The name of the metadata property * * @type {string} */ this.propertyName = propertyName; /** * The the `MetadataClassProperty` that is described by this * structure, as obtained from the `MetadataSchema` * * @type {MetadataClassProperty} */ this.classProperty = classProperty; /** * The `PropertyTextureProperty` or `PropertyAttributeProperty` that * is described by this structure, as obtained from the property texture * or property attribute of the `StructuralMetadata` that matches the * class name and property name. * * @type {object} */ this.metadataProperty = metadataProperty; } export default PickedMetadataInfo;