PlotGeoEffectBase

特效基类,不能实例化.

new Cesium.PlotGeoEffectBase(options)

Name Type Description
options Object optional 对象具有以下属性:
Name Type Default Description
isUsePlotVisible Boolean true optional 是否使用标号对象的显隐
visible Boolean false optional 特效显隐
position MPoint3D MPoint3D(0, 0, 0) optional 特效位置
rotate MPoint3D MPoint3D(0, 0, 0) optional 特效旋转
scale Number 1.0 optional 特效旋转
scene Scene optional 设置场景
id String optional 特效ID
geoGraphicObject GeoGraphicObject optional 设置绑定的标号

Methods

destroy()

释放资源(子类需重写)

fromJSON(jsonObj)

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

getID()String

获取特效ID
Returns:
特效ID

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:
成功返回true,否则返回false

toJSON()Object

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

updateEffect(options)

同步关联的标绘对象属性到特效(子类需重写)
Name Type Description
options Object optional 对象具有以下属性:
Name Type Description
point MPoint3D optional 位置点
rotate MPoint3D optional 旋转
scale MPoint3D optional 缩放
modelPath String optional 模型路径
showMode DotMode optional 显示模式
gridSymbolSize MPoint3D optional 标号大小
visible Boolean optional 显隐(isUsePlotVisible属性为true时才生效)