LoadProgressHandler
Interface in @bimworks/viewer3d.
API catalogue · @bimworks/viewer3d · Interface
interface LoadProgressHandlerLoad 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#
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#
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#
Called when a version has been completely loaded
Parameters#
| Name | Type | Description |
|---|---|---|
version |
Version | |
managerIndex |
number |
versionLoadProgress#
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#
Called when a version has been completely unloaded
Parameters#
| Name | Type | Description |
|---|---|---|
version |
Version | |
managerIndex |
number |