PlotRotateRadar

new SuperMap3D.PlotRotateRadar(options, scene)

Rotary radar, inherited fromPlotRadarBase Radar is generated by the rotation of two-dimensional polygon points around the Z axis
Name Type Description
options Object The parameters required to initialize the radar:
Name Type Default Description
point Cartesian3 Radar position point
customPts Array Constructing Polygon Point String of Radar (2D Point String)
slicePartitions Number 67 optional Number of points on the horizontal cross-section plane
rotateAngle Number 360 optional Radar cross section rotation angle
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 Radar Envelope Fill Color
outlineColor Color new Color(1, 0, 0, 1) optional Radar grid line color
outlineWidth Number 1.0 optional Radar grid line width
rotate Cartesian3 new MPoint3D() optional Radar rotation angle, in degrees
scanColor Color new Color(1, 0, 0, 0.5) optional Radar scanning lobe line color
isShowScan boolean false optional Whether to display the scan valve
scanCount Number 1 optional Number of scanning lobes
scene Scene optional Current 3D scene

Members

customPts : Array.<Cartesian2>

Rotating Radar 2D Polygon Point String

dScanSpeed : Number

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

Methods

addScan(scan)

Add radar scan lobe
Name Type Description
scan PlotRotateRadarScan

destroy()

Release resources

getScanArray()Array.<PlotRotateRadarScan>

Get the array of radar scanning lobes
Returns:
Array of radar scanning lobes

removeAllScanArray()

Delete all scan lobes

removeScan(index)Boolean

Deletes the scan lobe for the specified index
Name Type Description
index Number
Returns:
Deleted result

setScan(scan, index)Boolean

Replace the designated scan lobe with a new scan lobe
Name Type Description
scan PlotRotateRadarScan
index Number
Returns:
True on success, false otherwise.

setScanArray(scanArray)Array.<PlotRotateRadarScan>

Set the array of radar scanning lobes
Name Type Description
scanArray PlotRotateRadarScan
Returns:
Array of radar scanning lobes