An analysis object that evaluates visibility along a line defined by observer and target GeoElement objects. More...
Header: | #include <GeoElementLineOfSight.h> |
Since: | Esri::ArcGISRuntime 100.2 |
Inherits: | Esri::ArcGISRuntime::LineOfSight |
This class was introduced in Esri::ArcGISRuntime 100.2.
Public Functions
GeoElementLineOfSight(Esri::ArcGISRuntime::GeoElement *observerGeoElement, Esri::ArcGISRuntime::GeoElement *targetGeoElement, QObject *parent = nullptr) | |
virtual | ~GeoElementLineOfSight() override |
Esri::ArcGISRuntime::GeoElement * | observerGeoElement() const |
double | observerOffsetX() const |
double | observerOffsetY() const |
double | observerOffsetZ() const |
void | setObserverOffsetX(double offsetX) |
void | setObserverOffsetY(double offsetY) |
void | setObserverOffsetZ(double offsetZ) |
void | setTargetOffsetX(double offsetX) |
void | setTargetOffsetY(double offsetY) |
void | setTargetOffsetZ(double offsetZ) |
Esri::ArcGISRuntime::GeoElement * | targetGeoElement() const |
double | targetOffsetX() const |
double | targetOffsetY() const |
double | targetOffsetZ() const |
Detailed Description
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 target GeoElements may be moving, in which case visibility will be dynamically updated.
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.
Member Function Documentation
GeoElementLineOfSight::GeoElementLineOfSight (Esri::ArcGISRuntime::GeoElement *observerGeoElement , Esri::ArcGISRuntime::GeoElement *targetGeoElement , QObject *parent = nullptr)
Creates a LineOfSight 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]
GeoElementLineOfSight::~GeoElementLineOfSight ()
Destructor.
Esri::ArcGISRuntime::GeoElement *GeoElementLineOfSight::observerGeoElement () const
Returns the observer GeoElement.
The observer GeoElement must have point geometry.
double GeoElementLineOfSight::observerOffsetX () const
Returns the location X offset applied to the observer GeoElement.
See also setObserverOffsetX().
double GeoElementLineOfSight::observerOffsetY () const
Returns the location Y offset applied to the observer GeoElement.
See also setObserverOffsetY().
double GeoElementLineOfSight::observerOffsetZ () const
Returns the location Z offset applied to the observer GeoElement.
See also setObserverOffsetZ().
void GeoElementLineOfSight::setObserverOffsetX (double offsetX )
Sets the location Y offset applied to the observer GeoElement to offsetX.
See also observerOffsetX().
void GeoElementLineOfSight::setObserverOffsetY (double offsetY )
Sets the location Y offset applied to the observer GeoElement to offsetY.
See also observerOffsetY().
void GeoElementLineOfSight::setObserverOffsetZ (double offsetZ )
Sets the location Z offset applied to the observer GeoElement to offsetZ.
See also observerOffsetZ().
void GeoElementLineOfSight::setTargetOffsetX (double offsetX )
Sets the location X offset applied to the target GeoElement to offsetX.
See also targetOffsetX().
void GeoElementLineOfSight::setTargetOffsetY (double offsetY )
Sets the location Y offset applied to the target GeoElemen to offsetY.
See also targetOffsetY().
void GeoElementLineOfSight::setTargetOffsetZ (double offsetZ )
Sets the location Z offset applied to the target GeoElement to offsetZ.
See also targetOffsetZ().
Esri::ArcGISRuntime::GeoElement *GeoElementLineOfSight::targetGeoElement () const
Returns the target GeoElement.
The target GeoElement must have point geometry.
double GeoElementLineOfSight::targetOffsetX () const
Returns the location X offset applied to the target GeoElement.
See also setTargetOffsetX().
double GeoElementLineOfSight::targetOffsetY () const
Returns the location Y offset applied to the target GeoElement.
See also setTargetOffsetY().
double GeoElementLineOfSight::targetOffsetZ () const
Returns the location Z offset applied to the target GeoElement.
See also setTargetOffsetZ().