NIVIOBIMLoader
NIVIOBIM的数据加载类
Constructor
new NIVIOBIMLoader()
Static Properties
STREAM_STATUS
本文档定义了用于指示流状态的常量。这些状态在管理流的生命周期和行为时非常关键。
属性
INITIALIZED:表明流已经初始化但尚未开始。
START:表示流已经开始。
LOADING:表示流正在加载数据。
END:表示流已经结束。
CLOSE:表明流已经关闭。
Properties
name
type
description
fileLoader
文件加载器
gltfLoader
glTF加载器
Methods
loadModelByStream(indexUrl,indexFileName,onSuccess,onProgress,onError)
模型的流逝加载
Parameters
param
type
descripiton
indexUrl
string
索引文件路径
indexFileName
string
索引文件名称
onSuccess
模型加载成功的回调函数
onProgress
模型加载过程中的回调函数
onError
function(Error)
模型加载失败的回调函数
glTFModel(url, onSuccess, onProgress, onError)
加载glTF模型
Parameters
param
type
descripiton
url
string
模型的路径
onSuccess
加载成功时的回调函数
onProgress
加载过程中的回调函数
onError
function(Error)
加载失败后的回调函数
decompression(url, fileName)
加载压缩文件并解压
Parameters
param
type
descripiton
url
string
压缩文件的url
fileName
string
文件名,包含扩展名
Returns
Promise
最后更新于
这有帮助吗?