java.lang.Object
com.esri.arcgisruntime.geoanalysis.Analysis
com.esri.arcgisruntime.geoanalysis.LineOfSight
com.esri.arcgisruntime.geoanalysis.LocationLineOfSight
Location Line of Sight analysis calculates segments of visibility between two Point objects.
The line of sight is calculated from the observer location pointing towards the target location.
- Since:
- 10.2.0
-
Property Summary
Properties inherited from class com.esri.arcgisruntime.geoanalysis.LineOfSight
obstructedColor, visibleColor
-
Nested Class Summary
Nested classes/interfaces inherited from class com.esri.arcgisruntime.geoanalysis.LineOfSight
LineOfSight.TargetVisibility, LineOfSight.TargetVisibilityChangedEvent, LineOfSight.TargetVisibilityChangedListener
-
Constructor Summary
ConstructorDescriptionLocationLineOfSight
(Point observerLocation, Point targetLocation) Creates an instance of LocationLineOfSight based on an observer and a target. -
Method Summary
Modifier and TypeMethodDescriptionGets the observer location.Gets the target location.void
setObserverLocation
(Point observerLocation) Sets the observer location.void
setTargetLocation
(Point targetLocation) Sets the target location.Methods inherited from class com.esri.arcgisruntime.geoanalysis.LineOfSight
addTargetVisibilityChangedListener, getLineWidth, getObstructedColor, getTargetVisibility, getVisibleColor, obstructedColorProperty, removeTargetVisibilityChangedListener, setLineWidth, setObstructedColor, setObstructedColor, setVisibleColor, setVisibleColor, visibleColorProperty
Methods inherited from class com.esri.arcgisruntime.geoanalysis.Analysis
isVisible, setVisible
-
Constructor Details
-
LocationLineOfSight
Creates an instance of LocationLineOfSight based on an observer and a target.- Parameters:
observerLocation
- the observer locationtargetLocation
- the target location- Throws:
IllegalArgumentException
- if observerLocation is nullIllegalArgumentException
- if targetLocation is null- Since:
- 10.2.0
-
-
Method Details
-
getObserverLocation
Gets the observer location.- Returns:
- the observer location
- Since:
- 10.2.0
-
setObserverLocation
Sets the observer location.- Parameters:
observerLocation
- the observer location- Throws:
IllegalArgumentException
- if observerLocation is null- Since:
- 10.2.0
-
getTargetLocation
Gets the target location.- Returns:
- the target location
- Since:
- 10.2.0
-
setTargetLocation
Sets the target location.- Parameters:
targetLocation
- the target location- Throws:
IllegalArgumentException
- if targetLocation is null- Since:
- 10.2.0
-