PlotGeoEffectBase

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

new Cesium.PlotGeoEffectBase(options)

Name Type Description
options Object optional Object with the following properties:
Name Type Default Description
isUsePlotVisible Boolean true optional 是否使用标号对象的显隐
visible Boolean false optional 特效显隐
position PlotPoint3D optional 特效位置
rotate PlotPoint3D optional 特效旋转
scale Number optional 特效旋转
scene Scene optional 设置场景
geoGraphicObject eoGraphicObject optional 设置绑定的标号(可选)

Methods

destroy()

释放资源(子类需重写)

fromJSON(jsonObj)

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

getIsUsePlotVisible()Boolean

获取是否使用标绘对象显隐属性
Returns:
是否使用标绘对象显隐属性

isVisible()Boolean

获取显隐
Returns:
显隐

setGeoGraphicObject(geoGraphicObject)

设置特效绑定的标号对象
Name Type Description
geoGraphicObject GeoGraphicObject

setIsUsePlotVisible(isUse)

是否使用标绘对象显隐属性
Name Type Description
isUse Boolean

setScene(scene)

设置场景
Name Type Description
scene Scene 三维场景

setVisible(visible)Boolean

设置显隐
Name Type Description
visible Boolean 显隐
Returns:
是否设置成功

toJSON()

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

updateEffect(options)

Name Type Description
options Object optional Object with the following properties:
Name Type Description
point PlotPoint3D optional 位置点
rotate PlotPoint3D optional 旋转
scale PlotPoint3D optional 缩放
modelPath String optional 模型路径
showMode DotMode optional 显示模式
visible Boolean optional 显隐