PipAutomaticRoamManager

管线自动化漫游管理类,负责管线漫游的管理

new SuperMap3D.PipAutomaticRoamManager(viewer, options)

Name Type Description
viewer viewer 漫游所在场景对象
options Object optional 对象具有以下属性:
Name Type Default Description
duration Number 20.0 optional 漫游时长
roamDistance Number 100 optional 漫游视角距离管线水平距离
roamHeight Number 10 optional 漫游视角距离管线垂直高度
moveSpeed Number 0.01 optional 漫游视角调节速度
swipeDiv String "" optional 漫游场景div的id
pipLayers Array [] optional 漫游管线图层数组
pipDatasets Array [] optional 漫游管线数据集数组
midPause Boolean true optional 漫游断点是否暂停
pauseTime Number 2 optional 漫游断点暂停时长
dataUrl String "" optional 漫游管线数据服务地址

Members

duration : Number

漫游总时长

midPause : Boolean

断点处是否暂停

moveSpeed : Number

漫游视角移动速度

pauseTime : Number

断点暂停时长

roamDistance : Number

漫游视角水平距离

roamHeight : Number

漫游视角垂直高度

Methods

staticSuperMap3D.PipAutomaticRoamManager.getInstance(options)PipAutomaticRoamManager

获取管线漫游管理单例对象
Name Type Description
options Object optional 对象具有以下属性:
Name Type Default Description
viewer String null optional 当前漫游场景
options String {} optional 漫游对象所需参数
Returns:
漫游管理器单例对象

activateSelectPipe()

激活选中管线功能

activateSelectPosition()

激活选中起始结束位置点功能

backward(element)

视角向后(快捷键s)
Name Type Description
element Object 按钮控件对象

clearAll()

清空管线所有选择项。

downloadViews()

下载视角json文件

execute()Boolean

执行漫游
Returns:
是否有漫游

forward(element)

视角向前(快捷键w)
Name Type Description
element Object 按钮控件对象

movedown(element)

视角向下(快捷键e)
Name Type Description
element Object 按钮控件对象

moveleft(element)

视角向左(快捷键a)
Name Type Description
element Object 按钮控件对象

moveright(element)

视角向右(快捷键d)
Name Type Description
element Object 按钮控件对象

moveup(element)

视角向上(快捷键q)
Name Type Description
element Object 按钮控件对象

pause()

暂停播放所有漫游

play()

播放所有漫游

removeAllRuomaticRoam()

删除所有漫游。

reset()

复位所有漫游

stop()

停止播放所有漫游

uploadingViews(file)

上传视角json文件
Name Type Description
file object } 视角json文件。