ViewShed3D

new Cesium.ViewShed3D(scene)

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:
Example:
//Create a visual domain analysis
var viewShed3D= new Cesium.ViewShed3D(scene);
Demo:

Members

direction : Number

Gets or sets the angle between the current camera's direction and the true north direction, in degrees.

distance : Number

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.

horizontalFov : Number

Gets or sets the horizontal perspective range of the visual domain analysis. Unit: degree.

pitch : Number

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.

verticalFov : Number

Gets or sets the visual field to analyze the vertical angle of view. Unit: degree.

viewPosition : Array

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

getViewshedParameter()Object

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.

getVisibleInViewport(index)Boolean

Obtain the visibility of the visual field analysis in the corresponding viewport.
Name Type Description
index Number The specified viewport index.
Returns:
可见性。
Throws:

setVisibleInViewport(index)

Set the visibility of the visual field analysis in the corresponding viewport.
Name Type Description
index Number The specified viewport index.
Throws: