PlotGeoEffectBase

Effect base class, cannot be instantiated.

new SuperMap3D.PlotGeoEffectBase(options)

Name Type Description
options Object optional Objects have the following properties:
Name Type Default Description
isUsePlotVisible Boolean true optional Whether to use the visibility of plotting object
visible Boolean false optional effect show/hide
position MPoint3D MPoint3D(0, 0, 0) optional Effect location
rotate MPoint3D MPoint3D(0, 0, 0) optional Effect rotation
scale Number 1.0 optional Effect scale
scene Scene optional Set scene
id String optional Effect ID
geoGraphicObject GeoGraphicObject optional Set the symbol to binding

Methods

destroy()

Release resources (subclasses need to be overridden)

fromJSON(jsonObj)

Json object to effect object (subclass needs to be overridden)
Name Type Description
jsonObj Object

getID()String

Get effect ID
Returns:
Effect ID

getIsUsePlotVisible()Boolean

Get whether to update the effect's visibility when the plotting object's visibility changed
Returns:
Whether to update

isVisible()Boolean

Get Show/Hide
Returns:
Show/Hide

setGeoGraphicObject(geoGraphicObject)

Set the plotting object for effect binding
Name Type Description
geoGraphicObject GeoGraphicObject Plotting object

setIsUsePlotVisible(isUse)

Sets whether to update the effect Show/Hide when the plotted object Show/Hide changes
Name Type Description
isUse Boolean Whether to update

setScene(scene)

Set the scene
Name Type Description
scene Scene 3D scene

setVisible(visible)Boolean

Set Show/Hide
Name Type Description
visible Boolean Show/Hide
Returns:
If successful, return true; otherwise, return false.

toJSON()Object

Effects object to Json object (subclasses need to be overridden)
Returns:
Json object

updateEffect(options)

Synchronize associated plotting object properties to effects (subclasses need to be overridden)
Name Type Description
options Object optional Objects have the following properties:
Name Type Description
point MPoint3D optional Location point
rotate MPoint3D optional Rotation
scale MPoint3D optional Zoom
modelPath String optional Model path
showMode DotMode optional Dispaly mode
gridSymbolSize MPoint3D optional Symbol size
visible Boolean optional Show/Hide (only takes effect when the isUsePlotVisible property is true)