GeoEntityEffectTrackline

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

new Cesium.GeoEntityEffectTrackline()

Name Type Default Description
options.visible Boolean true optional 特效显隐
options.pntOffset MPoint3D MPoint3D(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 尾迹线点个数
options.aryGradientColors Array [Color.RED] optional 渐变色颜色数组(最多支持5个)
options.intervalDistance Number 0 optional 尾迹最小取点间距
options.colorLightScale Number 1 optional 颜色亮度增强倍数
options.streamerSideWidth Number 0 optional 飘带边线宽度
options.aryStreamerSideGradientColors Array [] optional 边线渐变色颜色数组(最多支持5个,未设置则默认使用aryGradientColors)
options.streamerSideColorLightScale Number 1 optional 边线颜色亮度增强倍数

Extends

Methods

_addEffectToScene(scene)

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

_removeEffectFromScene(scene)

从场景中移除特效
Name Type Description
scene scene 场景

addEffectToScene(scene)

添加特效到场景
Name Type Description
scene scene 场景
Inherited From:
克隆
Returns:
返回克隆对象

destroy()

释放资源
Inherited From:

fromJSON(jsonObj)

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

getColorLightScale()Number

获取颜色亮度缩放倍数。
Returns:
颜色亮度缩放倍数。

getGeoEntity()GeoEntity

获取特效绑定的地理实体
Returns:
地理实体
Inherited From:

getGradients()Array

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

getIntervalDistance()Number

获取取点最小长度间隔。
Returns:
返回取点长度间隔。

getLineWidth()Number

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

getName()String

特效名称
Returns:
返回特效名称
Inherited From:

getOffset()MPoint3D

获取偏移百分比(相对于实体自身大小)
Returns:
xyz方向上的偏移百分比
Inherited From:

getShowPntCount()Number

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

getStreamerSideColorLightScale()Number

获取飘带边线颜色亮度缩放倍数。
Returns:
颜色亮度缩放倍数。

getStreamerSideGradients()Array

获取飘带边线渐变色数组。
Returns:
返回渐变色颜色数组。

getStreamerSideWidth()Number

获取飘带边线宽度(0到0.5)
Returns:
飘带边线宽度

getStreamerWidth()Number

获取飘带宽度和模型宽度的比值(模型宽度*width为飘带的真实宽度,若不是模型,则默认模型宽度为5)。
Returns:
飘带宽度。

getTrackColor()Color

获取初始线色。(接口已废弃)
Returns:
初始线色。

getTrackType()GeoEntityEffectTrackLineType

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

getType()GeoEntityEffectType

获取特效类型
Returns:
特效类型
Inherited From:

getUUID()String

获取特效UUID(唯一标识)
Returns:
UUID
Inherited From:

isChangeSizeFlowModel()Boolean

获取特效是否跟随模型缩放改变
Returns:
否跟随模型缩放改变
Inherited From:

isVisible()Boolean

获取特效显隐
Returns:
显隐
Inherited From:

removeEffectFromScene(scene)

从场景中移除特效
Name Type Description
scene scene 场景
Inherited From:

setChangeSizeFlowModel(bChange)

设置特效是否跟随模型缩放改变
Name Type Description
bChange Boolean 否跟随模型缩放改变
Inherited From:

setColorLightScale(colorLightScale)

设置颜色亮度缩放倍数。
Name Type Description
colorLightScale Number 颜色亮度缩放倍数。

setGeoEntity(geoEntity)

设置特效绑定的地理实体
Name Type Description
geoEntity GeoEntity 地理实体
Inherited From:

setGeoEntityParameter(geoEntityParameter, linkGeoEntityUuid)

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

setGradients(aryColors)

设置渐变色颜色数组(最多支持5个)。
Name Type Description
aryColors Array 渐变色颜色数组。

setIntervalDistance(distance)

设置取点最小长度间隔。
Name Type Description
distance Number 取点长度间隔。

setLineWidth(width)

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

setName(name)

特效名称
Name Type Description
name String 名称
Inherited From:

setOffset(pntOffset)

设置偏移百分比(相对于实体自身大小)
Name Type Description
pntOffset MPoint3D xyz方向上的偏移百分比
Inherited From:

setShowPntCount(count)

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

setStreamerSideColorLightScale(colorLightScale)

设置飘带边线颜色亮度缩放倍数。
Name Type Description
colorLightScale Number 颜色亮度缩放倍数。

setStreamerSideGradients(aryColors)

设置飘带边线渐变色颜色数组(最多支持5个)。
Name Type Description
aryColors Array 渐变色颜色数组。

setStreamerSideWidth(streamerSideWidth)

设置飘带边线宽度(0到0.5,飘带宽度占比)
Name Type Description
streamerSideWidth Number 飘带边线宽度

setStreamerWidth(width)

设置飘带宽度和模型宽度的比值(模型宽度*width为飘带的真实宽度,若不是模型,则默认模型宽度为5),当MGTrackType = STREAMER 时才起效。
Name Type Description
width Number 飘带宽度。

setTrackColor(color)

设置初始线色。(接口已废弃)
Name Type Description
color color 线色。

setTrackType(type)

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

setVisible(visible)

设置特效显隐
Name Type Description
visible Boolean 显隐
Inherited From:

toJSON()String

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