A viewshed analyzes visibility from an observer position, showing which areas
are visible and which are occluded by terrain or other objects.
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
Object with the following properties:
|
Example:
const viewshed = new Cesium.Viewshed({
scene: viewer.scene,
observerPosition: Cesium.Cartesian3.fromDegrees(-122.4, 37.8, 100),
heading: 0,
pitch: Cesium.Math.toRadians(-15),
range: 5000,
horizontalFov: Cesium.Math.toRadians(90),
verticalFov: Cesium.Math.toRadians(60)
});
Members
displayMode : ViewshedDisplayMode
Gets or sets the display mode.
Gets or sets whether the viewshed is enabled.
Gets or sets the heading angle in radians.
Gets or sets the horizontal field of view in radians.
observerPosition : Cartesian3
Gets or sets the observer position in world coordinates.
occludedColor : Color
Gets or sets the color for occluded areas.
Gets or sets the pitch angle in radians.
Gets or sets the analysis range in meters.
Gets or sets the atmospheric attenuation rate used by RF viewshed visualization.
rfBadColor : Color
Gets or sets the "bad" RF coverage color.
Gets or sets the RF frequency used by RF viewshed visualization.
rfGoodColor : Color
Gets or sets the "good" RF coverage color.
Gets or sets the occlusion penalty applied in RF viewshed visualization.
Gets or sets the RF path-loss threshold.
Gets or sets the transition band around the RF threshold.
readonly shadowMap : ShadowMap
Gets the underlying shadow map used for depth comparison.
Gets or sets the vertical field of view in radians.
visibleColor : Color
Gets or sets the color for visible areas.
visualizationMode : ViewshedVisualizationMode
Gets or sets the viewshed visualization mode.
Methods
Destroys the viewshed. Once destroyed, a viewshed should not be used.
Returns true if this object was destroyed; otherwise, false.
Returns:
True if this object was destroyed; otherwise, false.