PlotMechanicalRadar

Mechanical radar, inherited from PlotRotateRadar

new SuperMap3D.PlotMechanicalRadar(options, scene)

Name Type Description
options Object The parameters required to initialize the radar:
Name Type Default Description
point Cartesian3 Radar position point
cellAngle Number 5 optional Horizontal opening angle of each cell
radii Cartesian3 optional Radar radius
show boolean true optional Whether to show
isFill boolean true optional Does the radar show fill?
isOutline boolean false optional Does the radar show gridlines?
fillColor Color new Color(1, 0, 0, 0.5) optional Fill color of radar envelope
outlineColor Color new Color(1, 0, 0, 1) optional Line color of radar grid
outlineWidth Number 1.0 optional Line width of radar grid
rotate Cartesian3 new MPoint3D(0,0,0) optional Radar rotation angle, in degrees
scanColor Color new Color(1, 0, 0, 0.8) optional Radar scan lobe color
isShowScan boolean false optional Whether to display the scan lobe
scanCount Number 1.0 optional Number of scanning lobes
scene Scene Current 3D scene

Extends

Members

customPts : Array.<Cartesian2>

Rotating radar two-dimensional polygon point string
Inherited From:

dScanSpeed : Number

Scanning lobe rotation speed (how many degrees per second)
Inherited From:
Default Value: 1

radii : MPoint3D

Radar radius
Default Value: new MPoint3D(1, 1, 1)

scale : Number

Radar scaling
Default Value: 1

Methods

addScan(scan)

Add radar scan lobe
Name Type Description
scan PlotRotateRadarScan
Inherited From:

destroy()

Release resources
Inherited From:

getScanArray()Array.<PlotRotateRadarScan>

Get array of radar scan lobes
Returns:
Array of radar scan lobes
Inherited From:

removeAllScanArray()

Delete all scan lobes
Inherited From:

removeScan(index)Boolean

Deletes the scan lobe of the specified index
Name Type Description
index Number
Returns:
delete result
Inherited From:

setScan(scan, index)Boolean

Replace the designated scan lobe with a new scan lobe
Name Type Description
scan PlotRotateRadarScan
index Number
Returns:
If successful, return true; otherwise, return false.
Inherited From:

setScanArray(scanArray)Array.<PlotRotateRadarScan>

Set array of radar scan lobes
Name Type Description
scanArray PlotRotateRadarScan
Returns:
Array of radar scan lobes
Inherited From: