An analysis object that evaluates visibility along a line defined by observer and target GeoElement objects. More...
| Header | #include <Exploratory |
| Since | Esri |
| Inherits | Esri |
Public Functions
| Exploratory | |
| virtual | ~ |
| Esri | observer |
| double | observer |
| double | observer |
| double | observer |
| void | set |
| void | set |
| void | set |
| void | set |
| void | set |
| void | set |
| Esri | target |
| double | target |
| double | target |
| double | target |
Detailed Description
ExploratoryGeoElementLineOfSight 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.
The observer and target locations are determined by the location of the GeoElement plus any defined offsets (in X, Y, or Z). The offset positions of the observer and target relative to the GeoElement is always maintained, even when the GeoElement moves.
Relevant samples:
- Show exploratory line of sight (GeoElement): Show an exploratory line of sight between two moving objects.
Member Function Documentation
ExploratoryGeoElementLineOfSight::ExploratoryGeoElementLineOfSight (Esri::ArcGISRuntime::GeoElement *observerGeoElement , Esri::ArcGISRuntime::GeoElement *targetGeoElement , QObject *parent = nullptr)
Creates a ExploratoryLineOfSight analysis object that defines an observer and a target using point GeoElement objects.
- observerGeoElement - A GeoElement that defines the observer.
- targetGeoElement - A GeoElement that defines the target.
- parent - An optional parent.
[override virtual noexcept] ExploratoryGeoElementLineOfSight::~ExploratoryGeoElementLineOfSight ()
Destructor.
Esri::ArcGISRuntime::GeoElement *ExploratoryGeoElementLineOfSight::observerGeoElement () const
Returns the observer GeoElement of the ExploratoryGeoElementLineOfSight.
The observer GeoElement must have point geometry. Supported GeoElement types are Graphic, Feature, and DynamicEntity.
double ExploratoryGeoElementLineOfSight::observerOffsetX () const
Returns 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.
See also setObserverOffsetX().
double ExploratoryGeoElementLineOfSight::observerOffsetY () const
Returns 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.
See also setObserverOffsetY().
double ExploratoryGeoElementLineOfSight::observerOffsetZ () const
Returns 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.
See also setObserverOffsetZ().
void ExploratoryGeoElementLineOfSight::setObserverOffsetX (double offsetX )
Sets the location Y offset applied to the observer GeoElement to offsetX.
See also observerOffsetX().
void ExploratoryGeoElementLineOfSight::setObserverOffsetY (double offsetY )
Sets the location Y offset applied to the observer GeoElement to offsetY.
See also observerOffsetY().
void ExploratoryGeoElementLineOfSight::setObserverOffsetZ (double offsetZ )
Sets the location Z offset applied to the observer GeoElement to offsetZ.
See also observerOffsetZ().
void ExploratoryGeoElementLineOfSight::setTargetOffsetX (double offsetX )
Sets the location X offset applied to the target GeoElement to offsetX.
See also targetOffsetX().
void ExploratoryGeoElementLineOfSight::setTargetOffsetY (double offsetY )
Sets the location Y offset applied to the target GeoElemen to offsetY.
See also targetOffsetY().
void ExploratoryGeoElementLineOfSight::setTargetOffsetZ (double offsetZ )
Sets the location Z offset applied to the target GeoElement to offsetZ.
See also targetOffsetZ().
Esri::ArcGISRuntime::GeoElement *ExploratoryGeoElementLineOfSight::targetGeoElement () const
Returns the target GeoElement of the ExploratoryGeoElementLineOfSight.
The target GeoElement must have point geometry. Supported GeoElement types are Graphic, Feature, and DynamicEntity.
double ExploratoryGeoElementLineOfSight::targetOffsetX () const
Returns 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.
See also setTargetOffsetX().
double ExploratoryGeoElementLineOfSight::targetOffsetY () const
Returns 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.
See also setTargetOffsetY().
double ExploratoryGeoElementLineOfSight::targetOffsetZ () const
Returns 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.
See also setTargetOffsetZ().