ArcGISFeatureListModel Class

  • ArcGISFeatureListModel
  • class Esri::ArcGISRuntime::ArcGISFeatureListModel

    A list model storing a list of ArcGISFeature objects. More...

    Header: #include <ArcGISFeatureListModel.h>
    Since: Esri::ArcGISRuntime 100.6
    Inherits: QAbstractListModel and Esri::ArcGISRuntime::Iterable

    Public Functions

    virtual ~ArcGISFeatureListModel() override
    bool contains(Esri::ArcGISRuntime::ArcGISFeature *feature) const
    QList<Esri::ArcGISRuntime::Feature *> features(QObject *parent = nullptr) const
    Esri::ArcGISRuntime::ArcGISFeature *first() const
    int indexOf(Esri::ArcGISRuntime::ArcGISFeature *feature) const
    bool isEmpty() const
    Esri::ArcGISRuntime::ArcGISFeature *last() const

    Reimplemented Public Functions

    virtual Esri::ArcGISRuntime::ArcGISFeature *at(int index) const override

    Detailed Description

    Member Function Documentation

    [override virtual] ArcGISFeatureListModel::~ArcGISFeatureListModel()

    Destructor.

    [override virtual] Esri::ArcGISRuntime::ArcGISFeature *ArcGISFeatureListModel::at(int index) const

    Returns the map feature at the specified index.

    bool ArcGISFeatureListModel::contains(Esri::ArcGISRuntime::ArcGISFeature *feature) const

    Returns true if the provided feature is in the list model.

    QList<Esri::ArcGISRuntime::Feature *> ArcGISFeatureListModel::features(QObject *parent = nullptr) const

    Returns all features in the model in a QList as Feature objects.

    An optional parent may be provided to set the parent for all objects.

    Use this method to get a list of features for use with FeatureLayer::selectFeatures.

    See also Returned QObjects Parenting.

    Esri::ArcGISRuntime::ArcGISFeature *ArcGISFeatureListModel::first() const

    Returns the first feature in the list model.

    int ArcGISFeatureListModel::indexOf(Esri::ArcGISRuntime::ArcGISFeature *feature) const

    Returns the index of the provided feature in the list model.

    bool ArcGISFeatureListModel::isEmpty() const

    Returns true if this list model is empty.

    Esri::ArcGISRuntime::ArcGISFeature *ArcGISFeatureListModel::last() const

    Returns the last feature in the list model.

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.