Class GeoElementLineOfSight
- java.lang.Object
-
- com.esri.arcgisruntime.geoanalysis.Analysis
-
- com.esri.arcgisruntime.geoanalysis.LineOfSight
-
- com.esri.arcgisruntime.geoanalysis.GeoElementLineOfSight
-
public final class GeoElementLineOfSight extends LineOfSight
GeoElement Line of Sight analysis calculates segments of visibility between two GeoElements. The line of sight is calculated from the location of the observer GeoElement to the location of the target GeoElement.Any changes in the position of the GeoElement are applied to the line of sight.
- 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 GeoElementLineOfSight(GeoElement observerGeoElement, GeoElement targetGeoElement)
Creates an instance of GeoElementLineOfSight based on an observer and a target.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeoElement
getObserverGeoElement()
Gets the observer GeoElement.double
getObserverOffsetX()
Gets the observer's offset from the GeoElement's location along the x-axis.double
getObserverOffsetY()
Gets the observer's offset from the GeoElement's location along the y-axis.double
getObserverOffsetZ()
Gets the observer's offset from the GeoElement's location along the z-axis.GeoElement
getTargetGeoElement()
Gets the target GeoElement.double
getTargetOffsetX()
Gets the target's offset from the GeoElement's location along the x-axis.double
getTargetOffsetY()
Gets the target's offset from the GeoElement's location along the y-axis.double
getTargetOffsetZ()
Gets the target's offset from the GeoElement's location along the z-axis.void
setObserverOffsetX(double observerOffsetX)
Sets the observer's offset from the GeoElement's location along the x-axis.void
setObserverOffsetY(double observerOffsetY)
Sets the observer's offset from the GeoElement's location along the y-axis.void
setObserverOffsetZ(double observerOffsetZ)
Sets the observer's offset from the GeoElement's location along the z-axis.void
setTargetOffsetX(double targetOffsetX)
Sets the target's offset from the GeoElement's location along the x-axis.void
setTargetOffsetY(double targetOffsetY)
Sets the target's offset from the GeoElement's location along the y-axis.void
setTargetOffsetZ(double targetOffsetZ)
Sets the target's offset from the GeoElement's location along the z-axis.-
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
-
GeoElementLineOfSight
public GeoElementLineOfSight(GeoElement observerGeoElement, GeoElement targetGeoElement)
Creates an instance of GeoElementLineOfSight based on an observer and a target.- Parameters:
observerGeoElement
- observer GeoElementtargetGeoElement
- target GeoElement- Throws:
IllegalArgumentException
- if observerGeoElement is nullIllegalArgumentException
- if targetGeoElement is null- Since:
- 10.2.0
-
-
Method Detail
-
getObserverGeoElement
public GeoElement getObserverGeoElement()
Gets the observer GeoElement.- Returns:
- the observer GeoElement
- Since:
- 10.2.0
-
getObserverOffsetX
public double getObserverOffsetX()
Gets the observer's offset from the GeoElement's location along the x-axis.Default is 0.0.
- Returns:
- the observer's location offset from the GeoElement's location along the x-axis
- Since:
- 100.2.0
-
setObserverOffsetX
public void setObserverOffsetX(double observerOffsetX)
Sets the observer's offset from the GeoElement's location along the x-axis.Default is 0.0.
- Parameters:
observerOffsetX
- the observer's offset from the from GeoElement's location along the x-axis- Since:
- 100.2.0
-
getObserverOffsetY
public double getObserverOffsetY()
Gets the observer's offset from the GeoElement's location along the y-axis.Default is 0.0.
- Returns:
- the observer's offset from the GeoElement's location along the y-axis
- Since:
- 100.2.0
-
setObserverOffsetY
public void setObserverOffsetY(double observerOffsetY)
Sets the observer's offset from the GeoElement's location along the y-axis.Default is 0.0.
- Parameters:
observerOffsetY
- the observer's offset from the from GeoElement's location along the y-axis- Since:
- 100.2.0
-
getObserverOffsetZ
public double getObserverOffsetZ()
Gets the observer's offset from the GeoElement's location along the z-axis.Default is 0.0.
- Returns:
- the observer's offset from the GeoElement's location along the z-axis
- Since:
- 100.2.0
-
setObserverOffsetZ
public void setObserverOffsetZ(double observerOffsetZ)
Sets the observer's offset from the GeoElement's location along the z-axis.Default is 0.0.
- Parameters:
observerOffsetZ
- the observer's offset from the from GeoElement's location along the z-axis- Since:
- 100.2.0
-
getTargetGeoElement
public GeoElement getTargetGeoElement()
Gets the target GeoElement.- Returns:
- the target GeoElement
- Since:
- 10.2.0
-
getTargetOffsetX
public double getTargetOffsetX()
Gets the target's offset from the GeoElement's location along the x-axis.Default is 0.0.
- Returns:
- the target's offset from the GeoElement's location along the x-axis
- Since:
- 100.2.0
-
setTargetOffsetX
public void setTargetOffsetX(double targetOffsetX)
Sets the target's offset from the GeoElement's location along the x-axis.Default is 0.0.
- Parameters:
targetOffsetX
- the target's offset from the GeoElement's location along the x-axis- Since:
- 100.2.0
-
getTargetOffsetY
public double getTargetOffsetY()
Gets the target's offset from the GeoElement's location along the y-axis.Default is 0.0.
- Returns:
- the target's offset from the GeoElement's location along the y-axis
- Since:
- 100.2.0
-
setTargetOffsetY
public void setTargetOffsetY(double targetOffsetY)
Sets the target's offset from the GeoElement's location along the y-axis.Default is 0.0.
- Parameters:
targetOffsetY
- the target's offset from the GeoElement's location along the y-axis- Since:
- 100.2.0
-
getTargetOffsetZ
public double getTargetOffsetZ()
Gets the target's offset from the GeoElement's location along the z-axis.Default is 0.0.
- Returns:
- the target's offset from the GeoElement's location along the z-axis
- Since:
- 100.2.0
-
setTargetOffsetZ
public void setTargetOffsetZ(double targetOffsetZ)
Sets the target's offset from the GeoElement's location along the z-axis.Default is 0.0.
- Parameters:
targetOffsetZ
- the target's offset from the GeoElement's location along the z-axis- Since:
- 100.2.0
-
-