Visual field analysis, set the observation point, the position of the target, the horizontal and vertical viewing angle range, establish the visual area analysis and display the analysis result in the specified scene.
Name | Type | Description |
---|---|---|
scene |
Object | optional Scene object. |
Throws:
-
DeveloperError : Scene scene must be specified.
Example:
//Create a visual domain analysis
var viewShed3D= new Cesium.ViewShed3D(scene);
Demo:
Members
-
Gets or sets the angle between the current camera's direction and the true north direction, in degrees.
-
Gets or sets the visible distance in meters.
-
hiddenAreaColor : Color
-
Gets or sets the color of the invisible area.
-
hintLineColor : Color
-
Gets or sets the color of the cue line for visual domain analysis.
-
Gets or sets the horizontal perspective range of the visual domain analysis. Unit: degree.
-
Gets or sets the camera's pitch angle for the current analysis. Note: This pitch angle is 0 degrees when the camera is parallel to the ground, which is different from the camera's own pitch.
-
Gets or sets the visual field to analyze the vertical angle of view. Unit: degree.
-
Gets or sets the position of the watchpoint. The position is represented by an array of longitude, latitude, and elevation.
-
visibleAreaColor : Color
-
Gets or sets the color of the visible area.
Methods
-
Get the build parameters of the visible field closure.
Returns:
Returns the construction parameters of the visible/invisible closure, including the viewpoint, target, array of obstacle points, and radius. -
Obtain the visibility of the visual field analysis in the corresponding viewport.
Name Type Description index
Number The specified viewport index. Returns:
可见性。Throws:
-
DeveloperError : The range of index values is: 0-3.
-
-
Set the visibility of the visual field analysis in the corresponding viewport.
Name Type Description index
Number The specified viewport index. Throws:
-
DeveloperError : The range of index values is: 0-3.
-