import {XKTMetaObject} from '@xeokit/xeokit-convert/src/XKTModel/XKTMetaObject.js'
XKTMetaObject
A meta object within an XKTModel.
These are plugged together into a parent-child hierarchy to represent structural metadata for the XKTModel.
The leaf XKTMetaObjects are usually associated with an XKTEntity, which they do so by sharing the same ID, ie. where XKTMetaObject#metaObjectId == XKTEntity#entityId.
- Created by XKTModel#createMetaObject
- Stored in XKTModel#metaObjects and XKTModel#metaObjectsList
- Has an ID, a type, and a human-readable name
- May have a parent XKTMetaObject
- When no children, is usually associated with an XKTEntity
Member Summary
Public Members | ||
public |
Unique ID of this |
|
public |
Indicates the XKTMetaObject meta object name. |
|
public |
Indicates the XKTMetaObject meta object type. |
|
public |
The parent XKTMetaObject, if any. |
|
public |
Unique ID of one or more property sets that contains additional metadata about this XKTMetaObject. |
Public Members
public metaObjectId: String source
Unique ID of this XKTMetaObject
in XKTModel#metaObjects.
For a BIM model, this will be an IFC product ID.
If this is a leaf XKTMetaObject, where it is not a parent to any other XKTMetaObject, then this will be equal to the ID of an XKTEntity in XKTModel#entities, ie. where XKTMetaObject#metaObjectId == XKTEntity#entityId.
public metaObjectName: string source
Indicates the XKTMetaObject meta object name.
This defaults to XKTMetaObject#metaObjectId.
public metaObjectType: string source
Indicates the XKTMetaObject meta object type.
This defaults to "default".
public parentMetaObjectId: String source
The parent XKTMetaObject, if any.
Will be null if there is no parent.
public propertySetIds: String[] source
Unique ID of one or more property sets that contains additional metadata about this XKTMetaObject. The property sets can be stored in an external system, or within the XKTModel, as XKTPropertySets within XKTModel#propertySets.