GeoEntityEffectTrackline

尾迹线特效,继承自GeoEntityEffect;注意:此类不支持父类bChangeSizeFlowModel属性。

new Cesium.GeoEntityEffectTrackline()

Name Type Default Description
options.visible Boolean true optional 特效显隐
options.pntOffset PlotPoint3D PlotPoint3D(0, -0.5, 0.5) optional 偏移
options.geoEntity GeoEntity null optional 特效绑定的地理实体对象
options.initialColor Color Color.RED optional 尾迹线色
options.lineWidth Number 1 optional 尾迹线宽
options.streamerWidth Number 1 optional 尾迹飘带宽
options.showPntCount Number 500 optional 尾迹线点个数

Methods

_addEffectToScene(scene)

添加特效到场景
Name Type Description
scene scene 场景

_removeEffectFromScene(scene)

从场景中移除特效
Name Type Description
scene scene 场景
克隆
Returns:
返回克隆对象

fromJSON(jsonObj)

Json字符串转对象
Name Type Description
jsonObj String Json字符串

getGradients()Array

获取渐变色数组。
Returns:
返回渐变色颜色数组。

getLineWidth()Number

获取线宽度(单位: 米)。
Returns:
飘带宽度。

getShowPntCount()Number

获取最大显示点数。
Returns:
最大显示点数。

getStreamerWidth()Number

获取飘带宽度(单位: 米)。
Returns:
飘带宽度。

getTrackColor()Color

获取初始线色。
Returns:
初始线色。

getTrackType()GeoEntityEffectTrackLineType

获取轨迹类型。
Returns:
轨迹类型。

setGeoEntityParameter(geoEntityParameter, linkGeoEntityUuid)

设置特效属性
Name Type Description
geoEntityParameter GeoEntityParameter 地理实体参数类
linkGeoEntityUuid String optional 实体的UUID

setGradients(aryColors)

设置渐变色颜色数组。
Name Type Description
aryColors Array 渐变色颜色数组。

setLineWidth(width)

设置线宽度(单位: 米),当MGTrackType = AXES 时才起效。
Name Type Description
width Number 飘带宽度。

setShowPntCount(count)

设置最大显示点数,用于控制尾迹线的显示长度。当设置值小于零时,默认显示全部点。
Name Type Description
count Number 最大显示点数。

setStreamerWidth(width)

设置飘带宽度(单位: 米),当MGTrackType = STREAMER 时才起效。
Name Type Description
width Number 飘带宽度。

setTrackColor(color)

设置初始线色。
Name Type Description
color color 线色。

setTrackType(type)

设置轨迹类型。
Name Type Description
type GeoEntityEffectTrackLineType 轨迹类型。

toJSON()String

对象转Json字符串
Returns:
Json字符串