Skip To Content ArcGIS for Developers Sign In Dashboard

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 Iterable<FeatureCollectionTable *>

Public Types

enum FeatureCollectionTableRoles { FeatureCollectionTableTitleRole }

Public Functions

~FeatureCollectionTableListModel()
void append(FeatureCollectionTable *featureCollectionTable)
FeatureCollectionTable *at(int index) const
void clear()
bool contains(FeatureCollectionTable *featureCollectionTable) const
FeatureCollectionTable *first() const
int indexOf(FeatureCollectionTable *featureCollectionTable) const
void insert(int index, FeatureCollectionTable *featureCollectionTable)
bool isEmpty() const
FeatureCollectionTable *last() const
void move(int from, int to)
void removeAt(int index)
void removeOne(FeatureCollectionTable *featureCollectionTable)
int size() const

Reimplemented Public Functions

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

Signals

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

Additional Inherited Members

Detailed Description

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

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

FeatureCollectionTableListModel::~FeatureCollectionTableListModel()

Destructor.

void FeatureCollectionTableListModel::append(FeatureCollectionTable *featureCollectionTable)

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

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(FeatureCollectionTable *featureCollectionTable) const

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

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

Reimplemented from QAbstractItemModel::data().

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.

[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.

FeatureCollectionTable *FeatureCollectionTableListModel::first() const

Returns the first feature collection table in the list model.

int FeatureCollectionTableListModel::indexOf(FeatureCollectionTable *featureCollectionTable) const

Returns the index of the specific feature collection table featureCollectionTable.

void FeatureCollectionTableListModel::insert(int index, 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.

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(FeatureCollectionTable *featureCollectionTable)

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

int FeatureCollectionTableListModel::size() const

Returns the number of feature collection tables contained in the list model.


Feedback on this topic?