Class default<EntityTypeIDs>Abstract

The base type for entities parsed from STEP.

Type Parameters

  • EntityTypeIDs extends number

Hierarchy (View Summary)

Implements

Constructors

Properties

localID: number

The local (dense) ID within the model, that acts as a reference.

The model this came from.

Accessors

  • get Dim(): number
  • Get the number of dimensions for this, some functions require every object to have this,

    The default value is 0.

    Returns number

    The number of dimensions.

  • get expressID(): undefined | number
  • Get the express ID for this, note that if an element is inlined, it will have not have an express ID.

    Returns undefined | number

    The express ID of this or undefined if there isn't one.

Methods

  • Parameters

    • offset: number

      offset in ifc line

    • rank: number

      number array rank

    Returns any[]

    array of values

  • Extract a number at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    Parameters

    • vtableOffset: number

      The offset in the vtable to extract from

    • optional: true

      Is this an optional field?

    Returns null | [Uint8Array, number]

    The extracted number.

  • Extract a number at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    Parameters

    • vtableOffset: number

      The offset in the vtable to extract from

    • optional: false

      Is this an optional field?

    Returns [Uint8Array, number]

    The extracted number.

  • Extract a number at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    Parameters

    • offset: number

      The offset in the vtable to extract from

    • optional: true

      Is this an optional field? (true)

    Returns null | boolean

    The extracted number or null if it's not supplied.

  • Extract a number at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    Parameters

    • offset: number

      The offset in the vtable to extract from

    • optional: false

      Is this an optional field? (false).

    Returns boolean

    The extracted number.

  • Extract a number at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    Type Parameters

    • ExtractionType

    Parameters

    • offset: number

      The offset in the vtable to extract from

    • extractor: (
          buffer: Uint8Array,
          cursor: number,
          endCursor: number,
      ) => undefined | null | ExtractionType

      The function to be used for extraction.

    • optional: true

      Is this an optional field? (true)

    Returns null | ExtractionType

    The extracted value or null for optionals.

  • Extract a number at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    Type Parameters

    • ExtractionType

    Parameters

    • offset: number

      The offset in the vtable to extract from

    • extractor: (
          buffer: Uint8Array,
          cursor: number,
          endCursor: number,
      ) => undefined | ExtractionType

      The function to be used for extraction.

    • optional: false

      Is this an optional field? (false)

    Returns ExtractionType

    The extracted value or null for optionals.

  • Extract a number at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    Parameters

    • offset: number

      The offset in the vtable to extract from

    • optional: true

      Is this an optional field?

    Returns null | boolean

    The extracted logical or null for optionals.

  • Extract a number at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    Parameters

    • offset: number

      The offset in the vtable to extract from

    • optional: false

      Is this an optional field?

    Returns boolean

    The extracted logical or null for optionals.

  • Extract a number at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    Parameters

    • vtableOffset: number

      The offset in the vtable to extract from

    • optional: true

      Whether this is a potentially optional field

    Returns null | number

    The extracted number.

  • Extract a number at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    Parameters

    • vtableOffset: number

      The offset in the vtable to extract from

    • optional: false

      Whether this is a potentially optional field

    Returns number

    The extracted number.

  • Extract a parse buffer at a particular vtable offset.

    Parameters

    • offset: number
    • result: ParseBuffer
    • module: any
    • optional: boolean

    Returns boolean

    True if this extracts, false (usually because this is optional)

  • Extract a reference from an offset, without type check.

    Parameters

    • offset: number

      The offset in the vtable to extract from

    • optional: true

      Is this an optional field?

    Returns null | default<EntityTypeIDs>

    Extracted entity or undefined.

  • Extract a reference from an offset, without type check.

    Parameters

    • offset: number

      The offset in the vtable to extract from

    • optional: false

      Is this an optional field?

    Returns default<EntityTypeIDs>

    Extracted entity or undefined.

  • Extract a string at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    Parameters

    • offset: number

      The offset in the vtable to extract from

    • optional: true

      Is this an optional field?

    Returns null | string

    The extracted string, or null if optional and this value isn't specified.

  • Extract a string at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    Parameters

    • offset: number

      The offset in the vtable to extract from

    • optional: false

      Is this an optional field?

    Returns string

    The extracted string, or null if optional and this value isn't specified.

  • Parameters

    • buffer: Uint8Array
    • cursor: number

    Returns { data: string; length: number }

    string and length

  • Parameters

    • buffer: Uint8Array
    • cursor: number
    • t: IfcTokenType

    Returns any

    ifc token

  • Convert this to a string (which is the equivalent to a reference or '#inline' for inline elements).

    Returns string

    Convert this to a string