Class GeoElementLineOfSight
GeoElement objects.
GeoElementLineOfSight renders a line between an observer GeoElement and a target GeoElement
(each using Point geometry).
Visible and obstructed portions of the line are displayed with unique colors (green and red by default).
The observer and/or target GeoElements may be moving, in which case visibility will be dynamically updated.
Supported GeoElement types are Graphic,
Feature, and DynamicEntity.
- 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
ConstructorsConstructorDescriptionGeoElementLineOfSight(GeoElement observerGeoElement, GeoElement targetGeoElement) Creates a LineOfSight analysis object that defines an observer and a target using pointGeoElementobjects. -
Method Summary
Modifier and TypeMethodDescriptionGets the observerGeoElementof the GeoElementLineOfSight.doubleGets the location offset applied to the observerGeoElementin the X direction.doubleGets the location offset applied to the observerGeoElementin the Y direction.doubleGets the location offset applied to the observerGeoElementin the Z direction.The targetGeoElementof the GeoElementLineOfSight.doubleGet the location offset applied to the targetGeoElementin the X direction.doubleGets the location offset applied to the targetGeoElementin the Y direction.doubleGets the location offset applied to the targetGeoElementin the Z direction.voidsetObserverOffsetX(double observerOffsetX) Sets the location offset applied to the observerGeoElementin the X direction.voidsetObserverOffsetY(double observerOffsetY) Sets the location offset applied to the observerGeoElementin the Y direction.voidsetObserverOffsetZ(double observerOffsetZ) Sets the location offset applied to the observerGeoElementin the Z direction.voidsetTargetOffsetX(double targetOffsetX) Sets the location offset applied to the targetGeoElementin the X direction.voidsetTargetOffsetY(double targetOffsetY) Sets the location offset applied to the targetGeoElementin the Y direction.voidsetTargetOffsetZ(double targetOffsetZ) Sets the location offset applied to the targetGeoElementin the Z direction.Methods inherited from class com.esri.arcgisruntime.geoanalysis.LineOfSight
addTargetVisibilityChangedListener, getLineWidth, getObstructedColor, getTargetVisibility, getVisibleColor, obstructedColorProperty, removeTargetVisibilityChangedListener, setLineWidth, setObstructedColor, setObstructedColor, setVisibleColor, setVisibleColor, visibleColorPropertyMethods inherited from class com.esri.arcgisruntime.geoanalysis.Analysis
isVisible, setVisible
-
Constructor Details
-
GeoElementLineOfSight
Creates a LineOfSight analysis object that defines an observer and a target using pointGeoElementobjects.The LineOfSight analysis result is a line rendered between the observer and target elements with distinct colors representing visible and obstructed segments. Supported
GeoElementtypes areGraphic,Feature, andDynamicEntity.- Parameters:
observerGeoElement- aGeoElementthat defines the observertargetGeoElement- aGeoElementthat defines the target- Throws:
IllegalArgumentException- if observerGeoElement is nullIllegalArgumentException- if targetGeoElement is null- Since:
- 10.2.0
-
-
Method Details
-
getObserverGeoElement
Gets the observerGeoElementof the GeoElementLineOfSight.The observer
GeoElementmust have point geometry. SupportedGeoElementtypes areGraphic,Feature, andDynamicEntity.- Returns:
- the observer GeoElement
- Since:
- 10.2.0
-
getObserverOffsetX
public double getObserverOffsetX()Gets the location offset applied to the observerGeoElementin the X direction.The observer location is determined by the location of the
GeoElementplus any defined offsets (in X, Y, or Z). The offset position of the observer relative to theGeoElementis always maintained, even when theGeoElementmoves.- 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 location offset applied to the observerGeoElementin the X direction.The observer location is determined by the location of the
GeoElementplus any defined offsets (in X, Y, or Z). The offset position of the observer relative to theGeoElementis always maintained, even when theGeoElementmoves.- 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 location offset applied to the observerGeoElementin the Y direction.The observer location is determined by the location of the
GeoElementplus any defined offsets (in X, Y, or Z). The offset position of the observer relative to theGeoElementis always maintained, even when theGeoElementmoves.- 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 location offset applied to the observerGeoElementin the Y direction.The observer location is determined by the location of the
GeoElementplus any defined offsets (in X, Y, or Z). The offset position of the observer relative to theGeoElementis always maintained, even when theGeoElementmoves.- 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 location offset applied to the observerGeoElementin the Z direction.The observer location is determined by the location of the
GeoElementplus any defined offsets (in X, Y, or Z). The offset position of the observer relative to theGeoElementis always maintained, even when theGeoElementmoves.- 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 location offset applied to the observerGeoElementin the Z direction.The observer location is determined by the location of the
GeoElementplus any defined offsets (in X, Y, or Z). The offset position of the observer relative to theGeoElementis always maintained, even when theGeoElementmoves.- Parameters:
observerOffsetZ- the observer's offset from the from GeoElement's location along the z-axis- Since:
- 100.2.0
-
getTargetGeoElement
The targetGeoElementof the GeoElementLineOfSight.The target
GeoElementmust have point geometry. SupportedGeoElementtypes areGraphic,Feature, andDynamicEntity.- Returns:
- the target GeoElement
- Since:
- 10.2.0
-
getTargetOffsetX
public double getTargetOffsetX()Get the location offset applied to the targetGeoElementin the X direction.The target location is determined by the location of the
GeoElementplus any defined offsets (in X, Y, or Z). The offset position of the target relative to theGeoElementis always maintained, even when theGeoElementmoves.- 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 location offset applied to the targetGeoElementin the X direction.The target location is determined by the location of the
GeoElementplus any defined offsets (in X, Y, or Z). The offset position of the target relative to theGeoElementis always maintained, even when theGeoElementmoves.- 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 location offset applied to the targetGeoElementin the Y direction.The target location is determined by the location of the
GeoElementplus any defined offsets (in X, Y, or Z). The offset position of the target relative to theGeoElementis always maintained, even when theGeoElementmoves.- 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 location offset applied to the targetGeoElementin the Y direction.The target location is determined by the location of the
GeoElementplus any defined offsets (in X, Y, or Z). The offset position of the target relative to theGeoElementis always maintained, even when theGeoElementmoves.- 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 location offset applied to the targetGeoElementin the Z direction.The target location is determined by the location of the
GeoElementplus any defined offsets (in X, Y, or Z). The offset position of the target relative to theGeoElementis always maintained, even when theGeoElementmoves.- 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 location offset applied to the targetGeoElementin the Z direction.The target location is determined by the location of the
GeoElementplus any defined offsets (in X, Y, or Z). The offset position of the target relative to theGeoElementis always maintained, even when theGeoElementmoves.- Parameters:
targetOffsetZ- the target's offset from the GeoElement's location along the z-axis- Since:
- 100.2.0
-