ViewDome analysis class
Name | Type | Description |
---|---|---|
scene |
Object | optional Scene for ViewDome analysis |
Throws:
-
DeveloperError : scene are required.
Members
-
Get or set the distance.
-
Get and set the display type of the exposure analysis result.
See:
-
Get or set the end angle of the ViewDome analysis.
-
hiddenAreaColor : Color
-
Get or set the color of the hidden part.
-
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.
-
Get or set the starting angle of the ViewDome analysis.
-
Get or set the viewpoint position (angle).
-
visibleAreaColor : Color
-
Get or set the color of the visible part.
Methods
-
Perform ViewDome analysis.
-
Clear analysis result.
-
Release the object.
Returns:
-
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); });