GeoElementLineOfSight

class GeoElementLineOfSight : LineOfSight

An analysis object that evaluates visibility along a line defined by observer and target 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.

See also

Constructors

Link copied to clipboard
fun GeoElementLineOfSight(observerGeoElement: GeoElement, targetGeoElement: GeoElement)

Creates a LineOfSight analysis object that defines an observer and a target using point GeoElement objects. The LineOfSight analysis result is a line rendered between the observer and target elements with distinct colors representing visible and obstructed segments.

Properties

Link copied to clipboard
var isVisible: Boolean

Whether or not an Analysis is visible. Visibility can be controlled for individual Analyses as well as for the AnalysisOverlay that contains them. Will return false if an error occurs.

Link copied to clipboard
val observerGeoElement: GeoElement
Link copied to clipboard
var observerOffsetX: Double

The location offset applied to the observer GeoElement in the X direction. The observer location is determined by the location of the GeoElement plus any defined offsets (in X, Y, or Z). The offset position of the observer relative to the GeoElement is always maintained, even when the GeoElement moves.

Link copied to clipboard
var observerOffsetY: Double

The location offset applied to the observer GeoElement in the Y direction. The observer location is determined by the location of the GeoElement plus any defined offsets (in X, Y, or Z). The offset position of the observer relative to the GeoElement is always maintained, even when the GeoElement moves.

Link copied to clipboard
var observerOffsetZ: Double

The location offset applied to the observer GeoElement in the Z direction. The observer location is determined by the location of the GeoElement plus any defined offsets (in X, Y, or Z). The offset position of the observer relative to the GeoElement is always maintained, even when the GeoElement moves.

Link copied to clipboard
val targetGeoElement: GeoElement
Link copied to clipboard
var targetOffsetX: Double

The location offset applied to the target GeoElement in the X direction. The target location is determined by the location of the GeoElement plus any defined offsets (in X, Y, or Z). The offset position of the target relative to the GeoElement is always maintained, even when the GeoElement moves.

Link copied to clipboard
var targetOffsetY: Double

The location offset applied to the target GeoElement in the Y direction. The target location is determined by the location of the GeoElement plus any defined offsets (in X, Y, or Z). The offset position of the target relative to the GeoElement is always maintained, even when the GeoElement moves.

Link copied to clipboard
var targetOffsetZ: Double

The location offset applied to the target GeoElement in the Z direction. The target location is determined by the location of the GeoElement plus any defined offsets (in X, Y, or Z). The offset position of the target relative to the GeoElement is always maintained, even when the GeoElement moves.

Link copied to clipboard
val targetVisibility: StateFlow<LineOfSightTargetVisibility>

The target visibility state. Use LineOfSight.onTargetVisibilityChanged to handle changes in target visibility.