- Direct Known Subclasses:
GeoElementViewshed
,LocationViewshed
Viewshed analysis is visual only - the result is rendered on to the GeoView, there is no API to get the visible and obstructed areas as geometries.
Viewshed analysis is reactive - whenever data changes (such as change in scene layer load status or visibility), the viewshed will automatically update.
Note: Maximum number of viewsheds per GeoView is 16. Viewsheds in excess of 16 will not be rendered.
- Since:
- 100.2.0
-
Property Summary
TypePropertyDescriptionstatic ObjectProperty
<Color> The color to render the frustum outline.static ObjectProperty
<Color> The color to render areas not visible from the observer location and within the frustum.static ObjectProperty
<Color> The color with which visible areas of all viewsheds will be rendered. -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectProperty
<Color> The color to render the frustum outline.static Color
Gets the value of thefrustumOutlineColor
property.double
Gets the horizontal spread of the viewshed, in degrees, > 0 and <= 360.double
Gets the maximum distance from the viewshed Location where the viewshed renders, in meters within [0, Double.MAX_VALUE].double
Gets the minimum distance from the location where the viewshed starts to render, in meters within [0, Double.MAX_VALUE].static Color
Gets the value of theobstructedColor
property.double
Gets the vertical spread of the viewshed, in degrees, > 0 and <= 360.static Color
Gets the value of thevisibleColor
property.boolean
Gets whether the outline of the frustum is visible.static ObjectProperty
<Color> The color to render areas not visible from the observer location and within the frustum.static void
setFrustumOutlineColor
(int frustumOutlineColor) Deprecated, for removal: This API element is subject to removal in a future version.static void
setFrustumOutlineColor
(Color color) Sets the value of thefrustumOutlineColor
property.void
setFrustumOutlineVisible
(boolean frustumOutlineVisible) Sets whether the outline of the frustum should be visible.void
setHorizontalAngle
(double horizontalAngle) Sets the horizontal spread of the viewshed, in degrees, > 0 and <= 360.void
setMaxDistance
(double maxDistance) Sets the maximum distance from the viewshed Location where the viewshed renders, in meters within [0, Double.MAX_VALUE].void
setMinDistance
(double minDistance) Sets the minimum distance from the location where the viewshed starts to render, in meters within [0, Double.MAX_VALUE].static void
setObstructedColor
(int obstructedColor) Deprecated, for removal: This API element is subject to removal in a future version.as of 200.0.0, replaced bysetObstructedColor(Color)
static void
setObstructedColor
(Color color) Sets the value of theobstructedColor
property.void
setVerticalAngle
(double verticalAngle) Sets the vertical spread of the viewshed, in degrees, > 0 and <= 360.static void
setVisibleColor
(int visibleColor) Deprecated, for removal: This API element is subject to removal in a future version.as of 200.0.0, replaced bysetVisibleColor(Color)
static void
setVisibleColor
(Color color) Sets the value of thevisibleColor
property.static ObjectProperty
<Color> The color with which visible areas of all viewsheds will be rendered.Methods inherited from class com.esri.arcgisruntime.geoanalysis.Analysis
isVisible, setVisible
-
Property Details
-
visibleColor
The color with which visible areas of all viewsheds will be rendered.Areas of the scene view that are visible from the observer location and within the frustum defined for the viewshed analysis will be rendered using the specified color.
Attempting to set the color to null will throw an exception.
- Since:
- 200.0.0
- See Also:
-
obstructedColor
The color to render areas not visible from the observer location and within the frustum.Attempting to set the color to null will throw an exception.
- Since:
- 200.0.0
- See Also:
-
frustumOutlineColor
The color to render the frustum outline.The frustum (3D solid) within which visibility is evaluated can be symbolized with a specified outline color.
Attempting to set the color to null will throw an exception.
- Since:
- 200.0.0
- See Also:
-
-
Method Details
-
visibleColorProperty
The color with which visible areas of all viewsheds will be rendered.Areas of the scene view that are visible from the observer location and within the frustum defined for the viewshed analysis will be rendered using the specified color.
Attempting to set the color to null will throw an exception.
- Returns:
- the
visibleColor
property - Since:
- 200.0.0
- See Also:
-
getVisibleColor
Gets the value of thevisibleColor
property.- Property description:
- The color with which visible areas of all viewsheds will be rendered.
Areas of the scene view that are visible from the observer location and within the frustum defined for the viewshed analysis will be rendered using the specified color.
Attempting to set the color to null will throw an exception.
- Returns:
- the value of the
visibleColor
property - Since:
- 200.0.0
- See Also:
-
setVisibleColor
Sets the value of thevisibleColor
property.- Property description:
- The color with which visible areas of all viewsheds will be rendered.
Areas of the scene view that are visible from the observer location and within the frustum defined for the viewshed analysis will be rendered using the specified color.
Attempting to set the color to null will throw an exception.
- Parameters:
color
- the value for thevisibleColor
property- Since:
- 200.0.0
- See Also:
-
setVisibleColor
Deprecated, for removal: This API element is subject to removal in a future version.as of 200.0.0, replaced bysetVisibleColor(Color)
Sets the color to render areas visible from the observer location and within the frustum.- Parameters:
visibleColor
- the color of visible areas, as 0xAARRGGBB- Since:
- 100.2.0
-
obstructedColorProperty
The color to render areas not visible from the observer location and within the frustum.Attempting to set the color to null will throw an exception.
- Returns:
- the
obstructedColor
property - Since:
- 200.0.0
- See Also:
-
getObstructedColor
Gets the value of theobstructedColor
property.- Property description:
- The color to render areas not visible from the observer location and within the frustum.
Attempting to set the color to null will throw an exception.
- Returns:
- the value of the
obstructedColor
property - Since:
- 200.0.0
- See Also:
-
setObstructedColor
Sets the value of theobstructedColor
property.- Property description:
- The color to render areas not visible from the observer location and within the frustum.
Attempting to set the color to null will throw an exception.
- Parameters:
color
- the value for theobstructedColor
property- Since:
- 200.0.0
- See Also:
-
setObstructedColor
@Deprecated(since="200.0.0", forRemoval=true) public static void setObstructedColor(int obstructedColor) Deprecated, for removal: This API element is subject to removal in a future version.as of 200.0.0, replaced bysetObstructedColor(Color)
Sets the color to render areas not visible from the observer location and within the frustum.- Parameters:
obstructedColor
- the color of areas not visible, as 0xAARRGGBB- Since:
- 100.2.0
-
frustumOutlineColorProperty
The color to render the frustum outline.The frustum (3D solid) within which visibility is evaluated can be symbolized with a specified outline color.
Attempting to set the color to null will throw an exception.
- Returns:
- the
frustumOutlineColor
property - Since:
- 200.0.0
- See Also:
-
getFrustumOutlineColor
Gets the value of thefrustumOutlineColor
property.- Property description:
- The color to render the frustum outline.
The frustum (3D solid) within which visibility is evaluated can be symbolized with a specified outline color.
Attempting to set the color to null will throw an exception.
- Returns:
- the value of the
frustumOutlineColor
property - Since:
- 200.0.0
- See Also:
-
setFrustumOutlineColor
Sets the value of thefrustumOutlineColor
property.- Property description:
- The color to render the frustum outline.
The frustum (3D solid) within which visibility is evaluated can be symbolized with a specified outline color.
Attempting to set the color to null will throw an exception.
- Parameters:
color
- the value for thefrustumOutlineColor
property- Since:
- 200.0.0
- See Also:
-
setFrustumOutlineColor
@Deprecated(since="200.0.0", forRemoval=true) public static void setFrustumOutlineColor(int frustumOutlineColor) Deprecated, for removal: This API element is subject to removal in a future version.as of 200.0.0, replaced bysetFrustumOutlineColor(Color)
Sets the color to render the frustum outline.- Parameters:
frustumOutlineColor
- the color of the frustum outline, as 0xAARRGGBB- Since:
- 100.2.0
-
getHorizontalAngle
public double getHorizontalAngle()Gets the horizontal spread of the viewshed, in degrees, > 0 and <= 360.Default is 90.
- Returns:
- the horizontal spread of the viewshed, in degrees, > 0 and <= 360
- Since:
- 100.2.0
-
setHorizontalAngle
public void setHorizontalAngle(double horizontalAngle) Sets the horizontal spread of the viewshed, in degrees, > 0 and <= 360.- Parameters:
horizontalAngle
- the horizontal spread of the viewshed, in degrees, > 0 and <= 360- Since:
- 100.2.0
-
getVerticalAngle
public double getVerticalAngle()Gets the vertical spread of the viewshed, in degrees, > 0 and <= 360.Default is 90.
- Returns:
- the vertical spread of the viewshed, in degrees, > 0 and <= 360
- Since:
- 100.2.0
-
setVerticalAngle
public void setVerticalAngle(double verticalAngle) Sets the vertical spread of the viewshed, in degrees, > 0 and <= 360.- Parameters:
verticalAngle
- the vertical spread of the viewshed, in degrees, > 0 and <= 360- Since:
- 100.2.0
-
getMinDistance
public double getMinDistance()Gets the minimum distance from the location where the viewshed starts to render, in meters within [0, Double.MAX_VALUE].- Returns:
- the minimum distance from the location where the viewshed starts to render, in meters within [0, Double.MAX_VALUE]
- Since:
- 100.2.0
-
setMinDistance
public void setMinDistance(double minDistance) Sets the minimum distance from the location where the viewshed starts to render, in meters within [0, Double.MAX_VALUE].- Parameters:
minDistance
- the minimum distance from the location where the viewshed starts to render, in meters within [0, Double.MAX_VALUE]- Since:
- 100.2.0
-
getMaxDistance
public double getMaxDistance()Gets the maximum distance from the viewshed Location where the viewshed renders, in meters within [0, Double.MAX_VALUE].- Returns:
- the maximum distance from the viewshed Location where the viewshed renders, in meters within [0, Double.MAX_VALUE]
- Since:
- 100.2.0
-
setMaxDistance
public void setMaxDistance(double maxDistance) Sets the maximum distance from the viewshed Location where the viewshed renders, in meters within [0, Double.MAX_VALUE].- Parameters:
maxDistance
- the maximum distance from the viewshed Location where the viewshed renders, in meters within [0, Double.MAX_VALUE]- Since:
- 100.2.0
-
isFrustumOutlineVisibile
public boolean isFrustumOutlineVisibile()Gets whether the outline of the frustum is visible.Default is false.
- Returns:
- true if the outline of the frustum is visible, otherwise false
- Since:
- 100.2.0
-
setFrustumOutlineVisible
public void setFrustumOutlineVisible(boolean frustumOutlineVisible) Sets whether the outline of the frustum should be visible.Default is false.
- Parameters:
frustumOutlineVisible
- true if the outline of the frustum should be visible, otherwise false- Since:
- 100.2.0
-
setFrustumOutlineColor(Color)