GeoEntityEffect

特效基类,不需要实例化.

new Cesium.GeoEntityEffect(options)

Name Type Description
options Object optional 对象具有以下属性:
Name Type Default Description
name String "defaultName" optional 特效名称(默认会根据特效类型获取一个自定义的中文名)
visible Boolean true optional 特效显隐
pntOffset PlotPoint3D PlotPoint3D(0, 0, 0) optional 特效相对于模型控制点偏移量(百分比)
bChangeSizeFlowModel PlotPoint3D true optional 特效跟随模型修改大小
geoEntity GeoEntity null optional 特效绑定的地理实体对象

Methods

addEffectToScene(scene)

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

clone()

克隆(子类需重写)
Returns:
返回克隆对象

destroy()

释放资源

fromJSON(jsonObj)

Json对象转特效对象(子类需重写)
Name Type Description
jsonObj Object

getGeoEntity()GeoEntity

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

getName()

特效名称
Returns:

getOffset()PlotPoint3D

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

getType()GeoEntityEffectType

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

getUUID()String

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

isChangeSizeFlowModel()Boolean

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

isVisible()Boolean

获取特效显隐
Returns:
显隐

removeEffectFromScene(scene)

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

setChangeSizeFlowModel(bChange)

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

setGeoEntity(geoEntity)

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

setGeoEntityParameter(geoEntityParameter, linkGeoEntityUuid)

设置特效属性(子类需重写)
Name Type Description
geoEntityParameter GeoEntityParameter 地理实体参数类
linkGeoEntityUuid String optional 链接的另一个实体的UUID(如果未绑定可以不设置)

setName(name)

特效名称
Name Type Description
name String 名称

setOffset(pntOffset)

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

setVisible(visible)

设置特效显隐
Name Type Description
visible Boolean 显隐

toJSON()

特效对象转Json对象(子类需重写)
Returns:
Json对象