| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- /**
- * 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.
- *
- * @constructor
- * @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;
|