Walkthrough

.Walkthrough~ Walkthrough

Glodon.Bimface.Plugins.Walkthrough.Walkthrough

Constructor

new Glodon.Bimface.Plugins.Walkthrough.Walkthrough(walkthroughConfig)

Parameters:
Name Type Description
walkthroughConfig Glodon.Bimface.Plugins.Walkthrough.WalkthroughConfig

构造路径漫游的配置项

Methods

addKeyFrame()

添加关键帧

Returns:
Type Description
Object

关键帧

clearKeyFrames()

清空关键帧

getKeyFrames()

获取关键帧列表

Returns:
Type Description
Array

关键帧列表

pause()

暂停漫游

play(id)

开始漫游

Parameters:
Name Type Description
id Number

漫游起始的关键帧索引

removeKeyFrame(index)

从列表中删除索引关键帧

Parameters:
Name Type Description
index Number

关键帧索引

setKeyFrameCallback(callback)

添加关键帧的回调函数

Parameters:
Name Type Description
callback function

setKeyFrames(list)

设置关键帧列表

Parameters:
Name Type Description
list Array

关键帧列表

setWalkthroughTime(time)

设置漫游时间

Parameters:
Name Type Description
time Number

漫游时间(秒)

stop()

停止漫游

stopCallback(callback)

设置漫游结束的回调函数

Parameters:
Name Type Description
callback function

漫游结束回调函数