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:

Hierarchy

  • ModelManager

Constructors

Methods

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

    Parameters

    • versions: Iterable<Version>

    Returns Promise<void>

  • Hide the given models (must already be loaded)

    Parameters

    • versionUuids: string[]

    Returns Promise<void>

  • Returns

    Whether the given Version (by UUID) has been loaded

    Parameters

    • versionUuid: string

    Returns boolean

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

    Parameters

    • versions: Iterable<Version>

    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

    • versions: Iterable<Version>

    Returns Promise<void>

  • Show the given models (must already be loaded)

    Parameters

    • versionUuids: string[]

    Returns Promise<void>

Generated using TypeDoc