GeoEntityEffectAttackline

打击线特效,继承自GeoEntityEffect 注意:此特效不支持设置基类中的bChangeSizeFlowModel属性

new Cesium.GeoEntityEffectAttackline(options)

Name Type Description
options Object 对象具有以下属性:
Name Type Default Description
_visible Boolean true optional 特效是否可见
pntOffset PlotPoint3D PlotPoint3D(0, 0, 0) optional 特效偏移量
geoEntity GeoEntity null optional 特效绑定的地理实体对象
startGeoEntityUUID PlotPoint3D optional 打击线起点实体UUID
targetGeoEntityUUID PlotPoint3D optional 打击线目标点实体UUID
_attactModelPath String optional 模型路径
_attactModelScale Number optional 模型大小
_during Number 5 optional 持续时间,单位为秒
_lineWide Number 1 optional 线宽
_lineColor WebGLPlot.Color Color(0,255,0,1) optional 路径线色

Methods

克隆
Returns:
返回克隆对象

fromJSON(jsonObj)

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

getAttactModelPath()String

获取模型路径
Returns:
模型路径

getAttactModelScale()Number

获取模型大小
Returns:
模型大小

getDuring()Number

获取持续时间
Returns:
持续时间

getLineColor()Color

获取线色
Returns:
线色

getLineWide()Number

获取线宽
Returns:
线宽

getPathInfo()Array

获取路径节点信息
Returns:
路径节点信息

getStartGeoEntityUUID()String

获取打击线起点实体UUID
Returns:
起点实体UUID

getTargetGeoEntityUUID()PlotPoint3D

获取目标实体
Returns:
目标实体

setAttactModelPath(url)

模型路径
Name Type Description
url String 模型路径

setAttactModelScale(attactModelScale)

模型大小
Name Type Description
attactModelScale Number 模型大小

setDuring(during)

设置持续时间
Name Type Description
during Number 持续时间

setGeoEntityParameter(geoEntityParameter, linkGeoEntityUuid)

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

setLineColor(lineColor)

设置线色
Name Type Description
lineColor Color 线色

setLineWide(lineWide)

设置线宽
Name Type Description
lineWide Number 线宽

setPathInfo(pathInfo)

设置路径节点信息
Name Type Description
pathInfo Array 设置路径节点信息

setStartGeoEntityUUID(UUID)

设置打击线起点实体UUID
Name Type Description
UUID String 起点实体UUID

setTargetGeoEntityUUID(endpoint)

设置打击线目标实体UUID
Name Type Description
endpoint PlotPoint3D 获取打击线起点实体UUID

toJSON()String

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