CommunicationLinkBase

特效基类,不需要实例化; 继承自GeoEntityEffect 注意:链路不支持设置基类中的bChangeSizeFlowModel属性和offset偏移属性

new Cesium.CommunicationLinkBase(options)

Name Type Description
options Object optional 对象具有以下属性:
Name Type Default Description
startUUID String 信号起始的地理实体UUID
endUUID String 信号结束的地理实体UUID
startOffset PlotPoint3D new PlotPoint3D(0,0,0.5) optional 链路起点相对于起点模型自身大小的偏移量(百分比)
endOffset PlotPoint3D new PlotPoint3D(0,0,0.5) optional 链路终点相对于终点模型自身大小的偏移量(百分比)
maxVisibleDistance Boolean -1 optional 为-1时不生效,当起始和终止位置之间的距离小于此距离时才显示链路

Methods

getEndOffset()PlotPoint3D

获取结束点相对于起点模型自身大小的偏移量
Returns:
偏移量

getEndUUID()String

获取结束地理实体的UUID
Returns:
实体UUID

getLinkType()CommunicationLinkType

获取链路类型
Returns:
信号类型

getMaxVisibleDistance()Number

获取最大可见距离(当起始和终止位置之间的距离小于等于此距离时才显示链路)
Returns:
最大可见距离

getStartOffset()PlotPoint3D

获取起始点相对于起点模型自身大小的偏移量
Returns:
偏移量

getStartUUID()String

获取起始地理实体的UUID
Returns:
实体UUID

setEndOffset(pntOffset)

设置结束点相对于起点模型自身大小的偏移量
Name Type Description
pntOffset PlotPoint3D 偏移量

setEndUUID(endUUID)

设置结束地理实体的UUID
Name Type Description
endUUID String 实体UUID

setMaxVisibleDistance(dMaxDistance)

设置最大可见距离(当起始和终止位置之间的距离小于等于此距离时才显示链路)
Name Type Description
dMaxDistance Number 最大可见距离

setStartOffset(pntOffset)

设置起始点相对于起点模型自身大小的偏移量
Name Type Description
pntOffset PlotPoint3D 偏移量

setStartUUID(startUUID)

设置起始地理实体的UUID
Name Type Description
startUUID String 实体UUID