Class: MultiViewPort

Glodon.CIMCube.Utils. MultiViewPort

分屏比对

new MultiViewPort(map, layerManager, opts)

分屏比对类构造函数
Parameters:
Name Type Description
map Glodon.CIMCube CIMCube实例
layerManager LayerManager 图层管理器
opts Object 分屏参数
Properties
Name Type Description
mode String 分屏类型
viewPortLayersVisible Array 分屏的图层显隐

Methods


begin()

开始对比

callbackLayersStatus()

恢复分屏图层的显隐状态。

dispose()

销毁

getViewportIndex(windowPosition)

根据窗口坐标得到分屏视口序号。
Parameters:
Name Type Description
windowPosition Object 窗口坐标
Returns:
视口序号,0 或 1
Type
Number

getWindowPosition(windowPosition)

返回窗口坐标,存在备份时返回备份。
Parameters:
Name Type Description
windowPosition Object 窗口坐标
Returns:
窗口坐标
Type
Object

layerUpdate(id)

更新单个图层的分屏显隐。
Parameters:
Name Type Description
id String 图层 id

pick(scene, windowPosition, width, height, getPickCullingVolume, pickTilesetPassState)

在分屏视口中拾取对象。
Parameters:
Name Type Description
scene Object 场景
windowPosition Object 窗口坐标
width Number 拾取宽度
height Number 拾取高度
getPickCullingVolume function 计算拾取裁剪体
pickTilesetPassState Object 瓦片拾取通道状态
Returns:
拾取结果
Type
Object

setViewPortLayersVisible(layersVisible)

设置分屏的图层显隐
Parameters:
Name Type Description
layersVisible Array 图层显隐列表

stop()

停止对比

updateMapSplit()

按当前图层显隐刷新分屏。