Reference Source
public class | source

MetaObject

Metadata corresponding to an Entity that represents an object.

An Entity represents an object when Entity#isObject is true

A MetaObject corresponds to an Entity by having the same MetaObject#id as the Entity#id.

A MetaObject is created within MetaScene#createMetaModel and belongs to a MetaModel.

Each MetaObject is registered by MetaObject#id in MetaScene#metaObjects.

A MetaModel represents its object structure with a tree of MetaObjects, with MetaModel#rootMetaObject referencing the root MetaObject.

Member Summary

Public Members
public

Child ObjectMeta instances within the structure hierarchy.

public

External application-specific metadata

public

Globally-unique ID.

public

Model metadata.

public

Human-readable name.

public abstract

ID of the corresponding object within the originating system, if any.

public

The parent MetaObject within the structure hierarchy.

public

Optional PropertySets used by this MetaObject.

public

Type - often an IFC product type.

Method Summary

Public Methods
public

getJSON(): {id: String|Number, type: String, name: String, parent: String|Number|Undefined}

Returns properties of this MeteObject as JSON.

public

Gets the MetaObject#ids of the MetaObjects within the subtree.

public

Gets the MetaObject#ids of the MetaObjects within the subtree that have the given MetaObject#types.

public

Iterates over the MetaObjects within the subtree.

Public Members

public children: Array source

Child ObjectMeta instances within the structure hierarchy.

Undefined when there are no children.

Properties:

NameTypeAttributeDescription
children *

public external: * source

External application-specific metadata

Undefined when there are is no external application-specific metadata.

Properties:

NameTypeAttributeDescription
external *

public id: String | Number source

Globally-unique ID.

MetaObject instances are registered by this ID in MetaScene#metaObjects.

Properties:

NameTypeAttributeDescription
id *

public metaModel: MetaModel source

Model metadata.

Properties:

NameTypeAttributeDescription
metaModel *

public name: String source

Human-readable name.

Properties:

NameTypeAttributeDescription
name *

public abstract originalSystemId: String source

ID of the corresponding object within the originating system, if any.

public parent: MetaObject source

The parent MetaObject within the structure hierarchy.

Undefined when this is the root of its structure.

Properties:

NameTypeAttributeDescription
parent *

public propertySets: PropertySet[] source

Optional PropertySets used by this MetaObject.

Properties:

NameTypeAttributeDescription
propertySets *

public type: String source

Type - often an IFC product type.

Properties:

NameTypeAttributeDescription
type *

Public Methods

public getJSON(): {id: String|Number, type: String, name: String, parent: String|Number|Undefined} source

Returns properties of this MeteObject as JSON.

Return:

{id: String|Number, type: String, name: String, parent: String|Number|Undefined}

public getObjectIDsInSubtree(): String[] source

Gets the MetaObject#ids of the MetaObjects within the subtree.

Return:

String[]

Array of MetaObject#ids.

public getObjectIDsInSubtreeByType(types: String[]): String[] source

Gets the MetaObject#ids of the MetaObjects within the subtree that have the given MetaObject#types.

Params:

NameTypeAttributeDescription
types String[]

MetaObject#type values.

Return:

String[]

Array of MetaObject#ids.

public withMetaObjectsInSubtree(callback: Function) source

Iterates over the MetaObjects within the subtree.

Params:

NameTypeAttributeDescription
callback Function

Callback fired at each MetaObject.