A ModelManager keeps track of the models that have been loaded. A ModelManager is required when using the Viewer2d or Viewer3d. Most application will only need one ModelManager, but if you have an application where you want to show different models in different viewers, you might need more. The ModelManager keeps track of:

Constructors

Methods

  • Add one or more models. The returned Promise will resolve after all connected components have performed the addModels call.

    Parameters

    Returns Promise<void>

  • Parameters

    • qid: string

    Returns string

    Get the Qid of the BuildingStorey of the given object (by Qid)

  • Parameters

    • buildingStoreyQids: Iterable<string>
    • includeOpenings: boolean

    Returns Set<string>

    A Set of Qid of the objects that belong to the given building storeys

  • Hide the given models (must already be loaded)

    Parameters

    • versionUuids: string[]

    Returns Promise<void>

  • Parameters

    • versionUuid: string

    Returns boolean

    Whether the given Version (by UUID) has been loaded

  • Remove one or more models. The returned Promise will resolve after all connected components have performed the removeModels call.

    Parameters

    Returns Promise<void>

  • Replace the existing set of loaded models, by the given set of models. This method will potentially unload models. The returned Promise will resolve after all connected components have performed the setModels call.

    Parameters

    Returns Promise<void>

  • Show the given models (must already be loaded)

    Parameters

    • versionUuids: string[]

    Returns Promise<void>