Add existing to tracked
This commit is contained in:
+58
@@ -0,0 +1,58 @@
|
||||
/**
|
||||
* 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;
|
||||
Reference in New Issue
Block a user