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
-
添加特效到场景
Name Type Description scene
scene 场景 -
从场景中移除特效
Name Type Description scene
scene 场景 -
添加特效到场景
Name Type Description scene
scene 场景 - Inherited From:
-
clone() → GeoEntityEffectTrackline
-
克隆
Returns:
返回克隆对象 -
释放资源
- Inherited From:
-
Json字符串转对象
Name Type Description jsonObj
String Json字符串 -
获取颜色亮度缩放倍数。
Returns:
颜色亮度缩放倍数。 -
getGeoEntity() → GeoEntity
-
获取特效绑定的地理实体
Returns:
地理实体- Inherited From:
-
获取渐变色数组。
Returns:
返回渐变色颜色数组。 -
获取取点最小长度间隔。
Returns:
返回取点长度间隔。 -
获取线宽度(单位: 米)。
Returns:
飘带宽度。 -
特效名称
Returns:
返回特效名称- Inherited From:
-
getOffset() → MPoint3D
-
获取偏移百分比(相对于实体自身大小)
Returns:
xyz方向上的偏移百分比- Inherited From:
-
获取最大显示点数。
Returns:
最大显示点数。 -
获取飘带边线颜色亮度缩放倍数。
Returns:
颜色亮度缩放倍数。 -
获取飘带边线渐变色数组。
Returns:
返回渐变色颜色数组。 -
获取飘带边线宽度(0到0.5)
Returns:
飘带边线宽度 -
获取飘带宽度和模型宽度的比值(模型宽度*width为飘带的真实宽度,若不是模型,则默认模型宽度为5)。
Returns:
飘带宽度。 -
getTrackColor() → Color
-
获取初始线色。(接口已废弃)
Returns:
初始线色。 -
getTrackType() → GeoEntityEffectTrackLineType
-
获取轨迹类型。
Returns:
轨迹类型。 -
getType() → GeoEntityEffectType
-
获取特效类型
Returns:
特效类型- Inherited From:
-
获取特效UUID(唯一标识)
Returns:
UUID- Inherited From:
-
获取特效是否跟随模型缩放改变
Returns:
否跟随模型缩放改变- Inherited From:
-
获取特效显隐
Returns:
显隐- Inherited From:
-
从场景中移除特效
Name Type Description scene
scene 场景 - Inherited From:
-
设置特效是否跟随模型缩放改变
Name Type Description bChange
Boolean 否跟随模型缩放改变 - Inherited From:
-
设置颜色亮度缩放倍数。
Name Type Description colorLightScale
Number 颜色亮度缩放倍数。 -
设置特效绑定的地理实体
Name Type Description geoEntity
GeoEntity 地理实体 - Inherited From:
-
设置特效属性
Name Type Description geoEntityParameter
GeoEntityParameter 地理实体参数类 linkGeoEntityUuid
String optional 实体的UUID -
设置渐变色颜色数组(最多支持5个)。
Name Type Description aryColors
Array 渐变色颜色数组。 -
设置取点最小长度间隔。
Name Type Description distance
Number 取点长度间隔。 -
设置线宽度(单位: 米),当MGTrackType = AXES 时才起效。
Name Type Description width
Number 飘带宽度。 -
特效名称
Name Type Description name
String 名称 - Inherited From:
-
设置偏移百分比(相对于实体自身大小)
Name Type Description pntOffset
MPoint3D xyz方向上的偏移百分比 - Inherited From:
-
设置最大显示点数,用于控制尾迹线的显示长度。当设置值小于零时,默认显示全部点。
Name Type Description count
Number 最大显示点数。 -
设置飘带边线颜色亮度缩放倍数。
Name Type Description colorLightScale
Number 颜色亮度缩放倍数。 -
设置飘带边线渐变色颜色数组(最多支持5个)。
Name Type Description aryColors
Array 渐变色颜色数组。 -
设置飘带边线宽度(0到0.5,飘带宽度占比)
Name Type Description streamerSideWidth
Number 飘带边线宽度 -
设置飘带宽度和模型宽度的比值(模型宽度*width为飘带的真实宽度,若不是模型,则默认模型宽度为5),当MGTrackType = STREAMER 时才起效。
Name Type Description width
Number 飘带宽度。 -
设置初始线色。(接口已废弃)
Name Type Description color
color 线色。 -
设置轨迹类型。
Name Type Description type
GeoEntityEffectTrackLineType 轨迹类型。 -
设置特效显隐
Name Type Description visible
Boolean 显隐 - Inherited From:
-
对象转Json字符串
Returns:
Json字符串