A GeoElement that represents a static observation of a DynamicEntity received from a DynamicEntityDataSource. More...
Header: | #include <DynamicEntityObservation.h> |
Since: | Esri::ArcGISRuntime 200.1 |
Inherits: | Esri::ArcGISRuntime::Object and Esri::ArcGISRuntime::GeoElement |
Public Functions
virtual | ~DynamicEntityObservation() override |
Esri::ArcGISRuntime::DynamicEntity * | dynamicEntity() const |
quint64 | observationId() const |
Reimplemented Public Functions
virtual Esri::ArcGISRuntime::AttributeListModel * | attributes() const override |
virtual Esri::ArcGISRuntime::Geometry | geometry() const override |
virtual void | setGeometry(const Esri::ArcGISRuntime::Geometry &geometry) override |
Signals
void | geometryChanged() |
Detailed Description
Dynamic entity observations are objects streamed by a DynamicEntityDataSource. Each observation is a snapshot of the state of a DynamicEntity at a given point in time.
Observations are stored in a local data cache as they are received from the data source. Observations may be purged from the local data cache according to DynamicEntityDataSourcePurgeOptions.
Multiple observations may be associated with a single DynamicEntity (via a shared track ID). These observations may be retrieved using DynamicEntity::observations(int, QObject*). The most current observation of a DynamicEntity may be retrieved using DynamicEntity::latestObservation.
Observations may also be retrieved by identifying observations on a map or scene, or by handling events directly from the DynamicEntityDataSource.
See also DynamicEntityLayer.
Member Function Documentation
[override virtual]
DynamicEntityObservation::~DynamicEntityObservation ()
Destructor.
[override virtual]
Esri::ArcGISRuntime::AttributeListModel *DynamicEntityObservation::attributes() const
Reimplements: GeoElement::attributes() const.
Returns the attributes of the GeoElement as a collection of key/value pairs.
Esri::ArcGISRuntime::DynamicEntity *DynamicEntityObservation::dynamicEntity () const
Returns the DynamicEntity associated with this observation.
Use this method to retrieve the DynamicEntity associated with this observation.
This method returns nullptr
if the associated DynamicEntity has been purged from the local data cache, which happens when all observations associated with a dynamic entity have been purged.
[override virtual]
Esri::ArcGISRuntime::Geometry DynamicEntityObservation::geometry() const
Reimplements: GeoElement::geometry() const.
Returns the geometry defines the shape and location of the GeoElement.
See also setGeometry().
[signal]
void DynamicEntityObservation::geometryChanged ()
Signal emitted when the geometry is changed.
See also GeoElement.
quint64 DynamicEntityObservation::observationId () const
Returns a unique identifier for the DynamicEntityObservation.
The observationId property uniquely identifies a DynamicEntityObservation and is useful when determining if two observations are the same.
[override virtual]
void DynamicEntityObservation::setGeometry (const Esri::ArcGISRuntime::Geometry &geometry)
Reimplements: GeoElement::setGeometry(const Esri::ArcGISRuntime::Geometry &geometry).
Sets the geometry to geometry.
See also geometry.