Class LocationLineOfSight
- java.lang.Object
-
- com.esri.arcgisruntime.geoanalysis.Analysis
-
- com.esri.arcgisruntime.geoanalysis.LineOfSight
-
- com.esri.arcgisruntime.geoanalysis.LocationLineOfSight
-
public final class LocationLineOfSight extends LineOfSight
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.esri.arcgisruntime.geoanalysis.LineOfSight
LineOfSight.TargetVisibility, LineOfSight.TargetVisibilityChangedEvent, LineOfSight.TargetVisibilityChangedListener
-
-
Constructor Summary
Constructors Constructor Description LocationLineOfSight(Point observerLocation, Point targetLocation)
Creates an instance of LocationLineOfSight based on an observer and a target.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Point
getObserverLocation()
Gets the observer location.Point
getTargetLocation()
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, removeTargetVisibilityChangedListener, setLineWidth, setObstructedColor, setVisibleColor
-
Methods inherited from class com.esri.arcgisruntime.geoanalysis.Analysis
isVisible, setVisible
-
-
-
-
Constructor Detail
-
LocationLineOfSight
public LocationLineOfSight(Point observerLocation, Point targetLocation)
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 Detail
-
getObserverLocation
public Point getObserverLocation()
Gets the observer location.- Returns:
- the observer location
- Since:
- 10.2.0
-
setObserverLocation
public void setObserverLocation(Point observerLocation)
Sets the observer location.- Parameters:
observerLocation
- the observer location- Throws:
IllegalArgumentException
- if observerLocation is null- Since:
- 10.2.0
-
getTargetLocation
public Point getTargetLocation()
Gets the target location.- Returns:
- the target location
- Since:
- 10.2.0
-
setTargetLocation
public void setTargetLocation(Point targetLocation)
Sets the target location.- Parameters:
targetLocation
- the target location- Throws:
IllegalArgumentException
- if targetLocation is null- Since:
- 10.2.0
-
-