- 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
PropertiesTypePropertyDescriptionstatic 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 ColorGets the value of thefrustumOutlineColorproperty.doubleGets the horizontal spread of the viewshed, in degrees, > 0 and <= 360.doubleGets the maximum distance from the viewshed Location where the viewshed renders, in meters within [0, Double.MAX_VALUE].doubleGets the minimum distance from the location where the viewshed starts to render, in meters within [0, Double.MAX_VALUE].static ColorGets the value of theobstructedColorproperty.doubleGets the vertical spread of the viewshed, in degrees, > 0 and <= 360.static ColorGets the value of thevisibleColorproperty.booleanGets 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 voidsetFrustumOutlineColor(int frustumOutlineColor) Deprecated, for removal: This API element is subject to removal in a future version.static voidsetFrustumOutlineColor(Color color) Sets the value of thefrustumOutlineColorproperty.voidsetFrustumOutlineVisible(boolean frustumOutlineVisible) Sets whether the outline of the frustum should be visible.voidsetHorizontalAngle(double horizontalAngle) Sets the horizontal spread of the viewshed, in degrees, > 0 and <= 360.voidsetMaxDistance(double maxDistance) Sets the maximum distance from the viewshed Location where the viewshed renders, in meters within [0, Double.MAX_VALUE].voidsetMinDistance(double minDistance) Sets the minimum distance from the location where the viewshed starts to render, in meters within [0, Double.MAX_VALUE].static voidsetObstructedColor(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 voidsetObstructedColor(Color color) Sets the value of theobstructedColorproperty.voidsetVerticalAngle(double verticalAngle) Sets the vertical spread of the viewshed, in degrees, > 0 and <= 360.static voidsetVisibleColor(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 voidsetVisibleColor(Color color) Sets the value of thevisibleColorproperty.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
visibleColorproperty - Since:
- 200.0.0
- See Also:
-
getVisibleColor
Gets the value of thevisibleColorproperty.- 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
visibleColorproperty - Since:
- 200.0.0
- See Also:
-
setVisibleColor
Sets the value of thevisibleColorproperty.- 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 thevisibleColorproperty- 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
obstructedColorproperty - Since:
- 200.0.0
- See Also:
-
getObstructedColor
Gets the value of theobstructedColorproperty.- 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
obstructedColorproperty - Since:
- 200.0.0
- See Also:
-
setObstructedColor
Sets the value of theobstructedColorproperty.- 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 theobstructedColorproperty- 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
frustumOutlineColorproperty - Since:
- 200.0.0
- See Also:
-
getFrustumOutlineColor
Gets the value of thefrustumOutlineColorproperty.- 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
frustumOutlineColorproperty - Since:
- 200.0.0
- See Also:
-
setFrustumOutlineColor
Sets the value of thefrustumOutlineColorproperty.- 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 thefrustumOutlineColorproperty- 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)