ViewDome

new Supermap3D.ViewDome(scene)

ViewDome analysis class
Name Type Description
scene Object optional Scene for ViewDome analysis
Throws:

Members

distance : Number

Get or set the distance.

domeType : Number

Get and set the display type of the exposure analysis result.
See:

endAngle : Number

Get or set the end angle of the ViewDome analysis.

hiddenAreaColor : Color

Get or set the color of the hidden part.

isClosed : Boolean

Get or set whether a sealing interface is provided at the gap, true means sealing, false means no sealing, and the default is false. This parameter setting is invalid when it is a 360-degree closed hemisphere.

startAngle : Number

Get or set the starting angle of the ViewDome analysis.

viewPosition : Array

Get or set the viewpoint position (angle).

visibleAreaColor : Color

Get or set the color of the visible part.

Methods

build()

Perform ViewDome analysis.

clear()

Clear analysis result.

destroy()*

Release the object.
Returns:

getViewDomeRatio(viewDomeType)Promise

Calculate the sky visibility ratio in the sky dome from the openness analysis results. This function requires completion of the openness analysis and visualization of the results before execution.
Name Type Description
viewDomeType ViewDomeType Openness analysis display type: If the parameter is set to VISIBLEDOME, it returns the ratio of visible sky in the sky dome; if set to HIDDENDOME, it returns the ratio of occluded sky in the sky dome.
Returns:
Returns a Promise that resolves with the openness analysis result on success, or undefined on failure.
Example:
let viewDome = new SuperMap3D.ViewDome(scene);
viewDome.viewPosition = new Cartesian3(X, X, X);
viewDome.build(); // First, perform the openness analysis.

// After obtaining the visual results of the openness analysis, call the API to retrieve the openness ratio.
let promise = viewDome.getViewDomeRatio(SuperMap3D.ViewDomeType.VISIBLEDOME);
prmomise.then((resultRatio) => {
 console.log(resultRatio);
});