A container class storing a list of scale range display filters. More...
Header | #include <Scale |
Since | Esri |
Inherits | Q |
Public Types
enum | Scale |
Public Functions
virtual | ~ |
void | append( |
void | clear() |
bool | contains( |
Esri | first() const |
int | index |
void | insert(int index, Esri |
bool | is |
Esri | last() const |
void | move(int from, int to) |
void | remove |
void | remove |
Reimplemented Public Functions
virtual Esri | at(int index) const override |
virtual Q | data(const Q |
virtual int | size() const override |
Signals
void | error |
(since Esri void | item |
(since Esri void | item |
Detailed Description
The model returns data for the following roles:
Role | Type | Description | ScaleRangeDisplayFilterRoles |
---|---|---|---|
name | Q | The name of the scale range display filter. | Scale |
where | Q | SQ | Scale |
filter | Q | The identifier for the scale range display filter (read only). | Scale |
min | double | The minimum scale at which this scale range display filter is applied. | Scale |
max | double | The maximum scale at which this scale range display filter is applied. | Scale |
See also ScaleRangeDisplayFilter.
Member Type Documentation
enum ScaleRangeDisplayFilterListModel::ScaleRangeDisplayFilterRoles
This enum specifies the custom roles that can be used with ScaleRangeDisplayFilterListModel::data.
Constant | Value | Description |
---|---|---|
Esri | Qt | The name of the scale range display filter. |
Esri | Qt | SQ |
Esri | Qt | The identifier for the scale range display filter (read only). |
Esri | Qt | The minimum scale at which this scale range display filter is applied. |
Esri | Qt | The maximum scale at which this scale range display filter is applied. |
Member Function Documentation
[override virtual noexcept]
ScaleRangeDisplayFilterListModel::~ScaleRangeDisplayFilterListModel ()
Destructor.
void ScaleRangeDisplayFilterListModel::append(Esri::ArcGISRuntime::ScaleRangeDisplayFilter *scaleRangeDisplayFilter )
Appends the scaleRangeDisplayFilter to the scale range display filter list model.
[override virtual]
Esri::ArcGISRuntime::ScaleRangeDisplayFilter *ScaleRangeDisplayFilterListModel::at(int index) const
Returns the scale range display filter at the specified index.
void ScaleRangeDisplayFilterListModel::clear()
Removes all scale range display filters from the list model.
List models do not take ownership of the objects they contain. Therefore, removing or clearing objects from the list model will not delete those objects. An RAII technique should be used to ensure that memory is properly deallocated.
bool ScaleRangeDisplayFilterListModel::contains(Esri::ArcGISRuntime::ScaleRangeDisplayFilter *scaleRangeDisplayFilter ) const
Returns true
if the provided scaleRangeDisplayFilter is in the list model.
[override virtual]
QVariant ScaleRangeDisplayFilterListModel::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 scale range display filter 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 ScaleRangeDisplayFilterListModel::errorOccurred (const Esri::ArcGISRuntime::Error &error)
Signal emitted when an error occurs.
- error - Details about the error.
Esri::ArcGISRuntime::ScaleRangeDisplayFilter *ScaleRangeDisplayFilterListModel::first() const
Returns the first scale range display filter in the list model.
int ScaleRangeDisplayFilterListModel::indexOf (Esri::ArcGISRuntime::ScaleRangeDisplayFilter *scaleRangeDisplayFilter ) const
Returns the index of the provided scaleRangeDisplayFilter in the list model.
void ScaleRangeDisplayFilterListModel::insert(int index, Esri::ArcGISRuntime::ScaleRangeDisplayFilter *scaleRangeDisplayFilter )
Inserts a scaleRangeDisplayFilter at a specified index in the list model.
bool ScaleRangeDisplayFilterListModel::isEmpty () const
Returns true
if this list model is empty.
[signal, since Esri::ArcGISRuntime 100.15]
void ScaleRangeDisplayFilterListModel::itemAdded (int index)
Signal emitted when an item is added to the list model.
index is the index of the added item.
This function was introduced in Esri::ArcGISRuntime 100.15.
[signal, since Esri::ArcGISRuntime 100.15]
void ScaleRangeDisplayFilterListModel::itemRemoved (int index)
Signal emitted when an item is removed from the list model.
index is the index of the removed item.
This function was introduced in Esri::ArcGISRuntime 100.15.
Esri::ArcGISRuntime::ScaleRangeDisplayFilter *ScaleRangeDisplayFilterListModel::last() const
Returns the last scale range display filter in the list model.
void ScaleRangeDisplayFilterListModel::move(int from, int to)
Moves one scale range display filter from an index in the list model to a different index.
void ScaleRangeDisplayFilterListModel::removeAt (int index)
Removes a scale range display filter at the specified index in the list model.
List models do not take ownership of the objects they contain. Therefore, removing or clearing objects from the list model will not delete those objects. An RAII technique should be used to ensure that memory is properly deallocated.
void ScaleRangeDisplayFilterListModel::removeOne (Esri::ArcGISRuntime::ScaleRangeDisplayFilter *scaleRangeDisplayFilter )
Removes the specified scaleRangeDisplayFilter from the list model.
List models do not take ownership of the objects they contain. Therefore, removing or clearing objects from the list model will not delete those objects. An RAII technique should be used to ensure that memory is properly deallocated.
[override virtual]
int ScaleRangeDisplayFilterListModel::size() const
Returns the number of scale range display filters in the model.