Class: ScanEffect

ScanEffect

new ScanEffect()

Scanning line effect class.

Members

centerPostionCartesian3

Get or set the center point position of the scanning line

colorNumber

Get or set the color of the scanning line.

Default Value:
(1.0, 1.0, 1.0, 1.0)

readonly countNumber

Get the number of scanning lines in the current scene.

lineMoveDirectionNumber

Obtain or set the direction of the linear scanning line using a geographic coordinate system.

lineWidthNumber

Get or set the width of the linear scanning line, in meters.

Default Value:
1000.0

modeObject

Get or set the scanline effect mode. Including circular scanning mode and linear scanning mode.

See:

periodNumber

Get or set the running cycle of the scanning line, in seconds.

Default Value:
1.0

showBoolean

Get or set whether to enable the scanline effect.

Default Value:
false

speedNumber

Get or set the running speed of the scanning line, in meters per second.

Default Value:
1000.0

textureUrlString

Get or set the texture overlaid on the scanning line

Methods

add(position){number}

Add a scan line by specifying the position of the center point of the scan line. Return the index of the added scan line. Note: It is currently not supported to set parameters such as color, radius, and speed separately for a certain scanning line.

Name Type Description
position Cartesian3

指定拟添加的扫描线的中心点坐标 (笛卡尔世界坐标)

Returns:
Type Description
number index

remove(index)

Remove scan lines based on the index.

Name Type Description
index Number

扫描线索引

removeAll()

Remove all scanning lines