Reference·JavaScript · @bimworks/viewer3dJavaScript

LoadProgressHandler

Interface in @bimworks/viewer3d.

API catalogue · @bimworks/viewer3d · Interface

TypeScript#
interface LoadProgressHandler

Load progress of the models of a viewer's ModelManager. managerIndex is that ModelManager's index (@bimworks/viewercommon!ModelManagerSettings.index), so one handler can serve the viewers of several ModelManagers.

Members#

Member Kind Description
dynamicLoadStarted Method Called when the dynamic loading of a model has started. Dynamic loading currently only happens for point cloud models, where parts of the model are being loa…
dynamicLoadStopped Method Called when the dynamic loading of a model has stopped.
versionLoaded Method Called when a version has been completely loaded
versionLoadProgress Method
versionUnloaded Method Called when a version has been completely unloaded

dynamicLoadStarted#

TypeScript#
dynamicLoadStarted?(version: Version): void

Called when the dynamic loading of a model has started. Dynamic loading currently only happens for point cloud models, where parts of the model are being loaded upon user interaction. Note: For some types of user interaction such as zooming this has the tendency of flickering on/off often, so it can be advised to implement some type of buffering.

Parameters#

Name Type Description
version Version The version for which dynamic loading has started

dynamicLoadStopped#

TypeScript#
dynamicLoadStopped?(version: Version): void

Called when the dynamic loading of a model has stopped.

Parameters#

Name Type Description
version Version The version for which dynamic loading has stopped

versionLoaded#

TypeScript#
versionLoaded?(version: Version, managerIndex: number): void

Called when a version has been completely loaded

Parameters#

Name Type Description
version Version
managerIndex number

versionLoadProgress#

TypeScript#
versionLoadProgress?(version: Version, progress: number, managerIndex: number): void

Parameters#

Name Type Description
version Version The version for which progress is reported
progress number How far along loading this Version is in a percentage (0-100)
managerIndex number

versionUnloaded#

TypeScript#
versionUnloaded?(version: Version, managerIndex: number): void

Called when a version has been completely unloaded

Parameters#

Name Type Description
version Version
managerIndex number