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.

Constructor Summary

Public Constructor
public

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

The parent MetaObject within the structure hierarchy.

public

Arbitrary metadata properties.

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 Constructors

public constructor() source

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 parent: MetaObject source

The parent MetaObject within the structure hierarchy.

Undefined when this is the root of its structure.

Properties:

NameTypeAttributeDescription
parent *

public properties: * source

Arbitrary metadata properties.

Undefined when no metadata properties are represented.

Properties:

NameTypeAttributeDescription
properties *

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.