;

FeatureCollectionTableListModel Class

  • FeatureCollectionTableListModel
  • class Esri::ArcGISRuntime::FeatureCollectionTableListModel

    A list model that stores a list of feature collection tables in a feature collection. More...

    Header: #include <FeatureCollectionTableListModel>
    Since: Esri::ArcGISRuntime 100.0
    Inherits: QAbstractListModel and Esri::ArcGISRuntime::Iterable

    This class was introduced in Esri::ArcGISRuntime 100.0.

    Public Types

    enum FeatureCollectionTableRoles { FeatureCollectionTableTitleRole }

    Public Functions

    virtual ~FeatureCollectionTableListModel() override
    void append(Esri::ArcGISRuntime::FeatureCollectionTable *featureCollectionTable)
    void clear()
    bool contains(Esri::ArcGISRuntime::FeatureCollectionTable *featureCollectionTable) const
    Esri::ArcGISRuntime::FeatureCollectionTable *first() const
    int indexOf(Esri::ArcGISRuntime::FeatureCollectionTable *featureCollectionTable) const
    void insert(int index, Esri::ArcGISRuntime::FeatureCollectionTable *featureCollectionTable)
    bool isEmpty() const
    Esri::ArcGISRuntime::FeatureCollectionTable *last() const
    void move(int from, int to)
    void removeAt(int index)
    void removeOne(Esri::ArcGISRuntime::FeatureCollectionTable *featureCollectionTable)

    Reimplemented Public Functions

    virtual Esri::ArcGISRuntime::FeatureCollectionTable *at(int index) const override
    virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override
    virtual int size() const override

    Signals

    void errorOccurred(Esri::ArcGISRuntime::Error error)
    void featureCollectionTableAdded(int index)
    void featureCollectionTableRemoved(int index)

    Detailed Description

    Modifying this model (adding, removing, or moving) will update the feature collection tables available in the FeatureCollection.

    The model returns data for the following roles:

    RoleTypeDescriptionSublayerRoles
    titleQStringThe feature collection table's title.FeatureCollectionTableTitleRole

    Member Type Documentation

    enum FeatureCollectionTableListModel::FeatureCollectionTableRoles

    This enum specifies the custom roles which can be used with FeatureCollectionTableListModel::data.

    ConstantValueDescription
    Esri::ArcGISRuntime::FeatureCollectionTableListModel::FeatureCollectionTableTitleRoleQt::UserRole + 1The feature collection table's title.

    Member Function Documentation

    [signal] void FeatureCollectionTableListModel::errorOccurred(Esri::ArcGISRuntime::Error error)

    Signal emitted when an error occurs.

    • error - Details about the error.

    [signal] void FeatureCollectionTableListModel::featureCollectionTableAdded(int index)

    Signal emitted when a feature collection table is added to the list model.

    • index - The index of the added feature collection table.

    [signal] void FeatureCollectionTableListModel::featureCollectionTableRemoved(int index)

    Signal emitted when a feature collection table is removed from the list model.

    • index - The index of the removed feature collection table.

    [override virtual] FeatureCollectionTableListModel::~FeatureCollectionTableListModel()

    Destructor.

    void FeatureCollectionTableListModel::append(Esri::ArcGISRuntime::FeatureCollectionTable *featureCollectionTable)

    Appends a feature collection table (featureCollectionTable) to the feature collection table list model.

    [override virtual] Esri::ArcGISRuntime::FeatureCollectionTable *FeatureCollectionTableListModel::at(int index) const

    Returns the feature collection table at the specified index.

    void FeatureCollectionTableListModel::clear()

    Removes all feature collection tables from the list model.

    bool FeatureCollectionTableListModel::contains(Esri::ArcGISRuntime::FeatureCollectionTable *featureCollectionTable) const

    Returns true if the list model contains the specific feature collection table featureCollectionTable.

    [override virtual] QVariant FeatureCollectionTableListModel::data(const QModelIndex &index, int role = Qt::DisplayRole) const

    Reimplements: QAbstractItemModel::data(const QModelIndex &index, int role) const.

    Returns the data stored under the given role for the feature collection table referred to by the index.

    • index - The index in the model for which to return data.
    • role - The role for which to return data.

    Esri::ArcGISRuntime::FeatureCollectionTable *FeatureCollectionTableListModel::first() const

    Returns the first feature collection table in the list model.

    int FeatureCollectionTableListModel::indexOf(Esri::ArcGISRuntime::FeatureCollectionTable *featureCollectionTable) const

    Returns the index of the specific feature collection table featureCollectionTable.

    void FeatureCollectionTableListModel::insert(int index, Esri::ArcGISRuntime::FeatureCollectionTable *featureCollectionTable)

    Inserts a feature collection table (featureCollectionTable) at a specified index in the list model.

    This method will append to the list if the index is greater than the current size of the list model.

    bool FeatureCollectionTableListModel::isEmpty() const

    Returns true if the list model contains no feature collection tables.

    Esri::ArcGISRuntime::FeatureCollectionTable *FeatureCollectionTableListModel::last() const

    Returns the last feature collection table in the list model.

    void FeatureCollectionTableListModel::move(int from, int to)

    Moves one feature collection table from an index in the list model to a different index.

    void FeatureCollectionTableListModel::removeAt(int index)

    Removes a feature collection table at the specified index.

    void FeatureCollectionTableListModel::removeOne(Esri::ArcGISRuntime::FeatureCollectionTable *featureCollectionTable)

    Removes a specific feature collection table (featureCollectionTable) from the list model.

    [override virtual] int FeatureCollectionTableListModel::size() const

    Returns the number of feature collection tables contained 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.