ScanEffect

new Supermap3D.ScanEffect()

Scan line effect class.

Members

centerPostion : Number

Get or set the center point position of the scan line, using the world coordinate system.

color : Number

Gets or sets the color of the scan line.
Default Value: (1.0, 1.0, 1.0, 1.0)

readonlycount : Number

Get the number of scan lines in the current scene.

lineMoveDirection : Number

Get or set the running direction of the linear scan line, using the world coordinate system.

lineWidth : Number

Gets or sets the width of the linear scan line, unit: meter.
Default Value: 1000.0

mode : Object

Get or set the scan line effect mode. Including circular scan mode and linear scan mode.
See:

period : Number

Get or set the running period of the scan line, unit: second.
Default Value: 1.0

show : Boolean

Gets or sets whether to enable the scan line effect.
Default Value: false

speed : Number

Get or set the running speed of the scan line, unit: m/s.
Default Value: 1000.0

textureUrl : String

Get or set the texture superimposed on the scan line

Methods

add(position)number

Add a scan line by specifying the position of the center point of the scan line. Returns the index of the added scan line. Note: It is not currently supported to set the color, radius, speed and other parameters for a scan line alone.
Name Type Description
position Cartesian3 Specify the center point coordinates of the scan line to be added
Returns:
index

remove(index)

Remove scan lines based on index.
Name Type Description
index Number