A representation of a real-world object on a map. More...
Header: | #include <Feature.h> |
Since: | Esri::ArcGISRuntime 100.0 |
Inherits: | Esri::ArcGISRuntime::Object and Esri::ArcGISRuntime::GeoElement |
Inherited By: |
This class was introduced in Esri::ArcGISRuntime 100.0.
Public Functions
virtual | ~Feature() override |
Esri::ArcGISRuntime::FeatureObjectType | featureObjectType() const |
Esri::ArcGISRuntime::FeatureTable * | featureTable() const |
bool | refresh() |
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
A feature is a representation of a real-world object, such as a polygon to that represents a land parcel or a point that represents a location. All features have a fixed schema, which may contain:
- A list model of attributes of the real-world entity it represents.
- A geometry which describes the location and the shape of the entity.
Feature is the base class for a single feature from a FeatureTable. Classes that inherit from Feature have additional capabilities to support their specific uses.
Member Function Documentation
[signal]
void Feature::geometryChanged ()
Signal emitted when the geometry is changed.
This function was introduced in Esri::ArcGISRuntime 100.2.1.
See also GeoElement.
[override virtual]
Feature::~Feature()
Destructor.
[override virtual]
Esri::ArcGISRuntime::AttributeListModel *Feature::attributes() const
Reimplements: GeoElement::attributes() const.
Returns a list model of all the feature attributes as key-value pairs.
Esri::ArcGISRuntime::FeatureObjectType Feature::featureObjectType () const
Returns the type of feature.
Esri::ArcGISRuntime::FeatureTable *Feature::featureTable () const
Returns a reference to the FeatureTable that this feature came from.
[override virtual]
Esri::ArcGISRuntime::Geometry Feature::geometry() const
Reimplements: GeoElement::geometry() const.
Returns the geometry for this feature.
See also setGeometry().
bool Feature::refresh()
Resets the attributes and geometry to the values in the data source, returning true
on success or false
otherwise.
Discards any in-memory changes to the Feature that have not been applied to the table, and reloads the Feature geometry and all attributes.
This function was introduced in Esri::ArcGISRuntime 100.4.
[override virtual]
void Feature::setGeometry (const Esri::ArcGISRuntime::Geometry &geometry)
Reimplements: GeoElement::setGeometry(const Esri::ArcGISRuntime::Geometry &geometry).
Sets the geometry for the feature.
See also geometry().