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
-
添加特效到场景
Name Type Description scene
scene 场景 -
从场景中移除特效
Name Type Description scene
scene 场景 -
clone() → GeoEntityEffectTrackline
-
克隆
Returns:
返回克隆对象 -
Json字符串转对象
Name Type Description jsonObj
String Json字符串 -
获取渐变色数组。
Returns:
返回渐变色颜色数组。 -
获取线宽度(单位: 米)。
Returns:
飘带宽度。 -
获取最大显示点数。
Returns:
最大显示点数。 -
获取飘带宽度(单位: 米)。
Returns:
飘带宽度。 -
getTrackColor() → Color
-
获取初始线色。
Returns:
初始线色。 -
getTrackType() → GeoEntityEffectTrackLineType
-
获取轨迹类型。
Returns:
轨迹类型。 -
设置特效属性
Name Type Description geoEntityParameter
GeoEntityParameter 地理实体参数类 linkGeoEntityUuid
String optional 实体的UUID -
设置渐变色颜色数组。
Name Type Description aryColors
Array 渐变色颜色数组。 -
设置线宽度(单位: 米),当MGTrackType = AXES 时才起效。
Name Type Description width
Number 飘带宽度。 -
设置最大显示点数,用于控制尾迹线的显示长度。当设置值小于零时,默认显示全部点。
Name Type Description count
Number 最大显示点数。 -
设置飘带宽度(单位: 米),当MGTrackType = STREAMER 时才起效。
Name Type Description width
Number 飘带宽度。 -
设置初始线色。
Name Type Description color
color 线色。 -
设置轨迹类型。
Name Type Description type
GeoEntityEffectTrackLineType 轨迹类型。 -
对象转Json字符串
Returns:
Json字符串