LineRelationEffect

communication link

new SuperMap3D.LineRelationEffect(options)

Name Type Description
options Object Objects have the following properties:
Name Type Default Description
scene Scene Scene (required)
speedV Number 5.0 optional flow velocity
lineWidth Number 1.0 optional line width
dashLength Number 30.0 optional The length of intermittent line (pixels)
dashPattern Number 255 optional Intermittent line specified with a 16-bit template
signalColor Number Color(1, 0, 0, 1) optional Signal line color
gapColor Color Color(0, 0, 0, 0) optional The color of the gap between intermittent lines

Extends

Members

id : String

Link id

Methods

destroy()

Effect destruction

fromJSON(jsonObj)

Json object to effect object
Name Type Description
jsonObj Object

getID()String

Get effect ID
Returns:
Effect ID.
Inherited From:

getIsUsePlotVisible()Boolean

Obtain whether to update the visibility of effects when the plotting object's visibility changes
Returns:
Whether to update
Inherited From:

isVisible()Boolean

Get visibility
Returns:
visibility
Inherited From:

setEndFeature(endAssociatedUuid)

Sets the end position object. If the incoming object is empty, the corresponding label is also set to empty.
Name Type Description
endAssociatedUuid string The uuid of the endpoint symbol.

setFeatures(startAssociatedUuid, endAssociatedUuid)

Sets the starting object, the incoming symbol cannot be empty.
Name Type Description
startAssociatedUuid string The uuid of the start symbol.
endAssociatedUuid string The uuid of the end symbol.

setGeoGraphicObject(geoGraphicObject)

Set plotting object for the effect binding.
Name Type Description
geoGraphicObject GeoGraphicObject Plotting object
Inherited From:

setIsUsePlotVisible(isUse)

Set whether to update the visibility of effects when the plotting object's visibility changes.
Name Type Description
isUse Boolean Whether to update
Inherited From:

setScene(scene)

Set the scene
Name Type Description
scene Scene 3D scene
Inherited From:

setStartFeature(startAssociatedUuid)

Sets the starting position object, and if the incoming object is empty, the corresponding label is also set to empty.
Name Type Description
startAssociatedUuid string The uuid of the starting symbol.

setVisible(visible)Boolean

Set visibility
Name Type Description
visible Boolean visibility
Returns:
True on success, false otherwise.
Inherited From:

toJSON()String

Effect object to JSON object
Returns:
JSON object

updateEffect()

Update symbol link location when symbol moves.