A list model containing active oriented image footprints in an oriented imagery layer. More...
| Header | #include <Oriented |
| Since | Esri |
| Inherits | QAbstract |
Public Types
| enum | Oriented |
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 QVariant | data(const QModel |
| virtual int | size() const override |
Signals
(since Esri void | item |
(since Esri void | item |
Detailed Description
The model is the collection returned by OrientedImageryLayer::visibleFootprints. Adding or removing a footprint updates the collection of footprints rendered by the map or scene view.
The model returns data for the following role:
| Role | Type | Description | OrientedImageFootprintRoles |
|---|---|---|---|
| oriented | Oriented | The oriented image footprint at the specified row. | Oriented |
Member Type Documentation
enum OrientedImageFootprintListModel::OrientedImageFootprintRoles
This enum specifies the custom roles which can be used with OrientedImageFootprintListModel::data.
| Constant | Value | Description |
|---|---|---|
Esri | Qt | The oriented image footprint object. |
Member Function Documentation
[override virtual noexcept] OrientedImageFootprintListModel::~OrientedImageFootprintListModel ()
Destructor.
void OrientedImageFootprintListModel::append(Esri::ArcGISRuntime::OrientedImageFootprint *footprint)
Appends footprint to the 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] Esri::ArcGISRuntime::OrientedImageFootprint *OrientedImageFootprintListModel::at(int index) const
Returns the footprint at index.
Returns nullptr if index is out of range.
void OrientedImageFootprintListModel::clear()
Removes all oriented image footprints from the 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 OrientedImageFootprintListModel::contains(Esri::ArcGISRuntime::OrientedImageFootprint *footprint) const
Returns true if the model contains footprint.
[override virtual] QVariant OrientedImageFootprintListModel::data(const QModelIndex &index, int role = Qt::DisplayRole) const
Reimplements: QAbstractItemModel::data(const QModelIndex &index, int role) const.
Returns data for the specified role and index.
role may be Qt::DisplayRole or OrientedImageFootprintRole. An empty QVariant is returned if index is out of range or the role is not supported.
Esri::ArcGISRuntime::OrientedImageFootprint *OrientedImageFootprintListModel::first() const
Returns the first footprint in the model.
int OrientedImageFootprintListModel::indexOf (Esri::ArcGISRuntime::OrientedImageFootprint *footprint) const
Returns the index of footprint in the model.
Returns -1 if the footprint is not in the model.
void OrientedImageFootprintListModel::insert(int index, Esri::ArcGISRuntime::OrientedImageFootprint *footprint)
Inserts footprint at index in the model.
If index is greater than the current size, the footprint is appended.
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 OrientedImageFootprintListModel::isEmpty () const
Returns true if the list model contains no oriented image footprints.
[signal, since Esri::ArcGISRuntime 300.2] void OrientedImageFootprintListModel::itemAdded (int index)
Signal emitted when an oriented image footprint is added to the model.
index is the index of the added footprint.
This function was introduced in Esri::ArcGISRuntime 300.2.
[signal, since Esri::ArcGISRuntime 300.2] void OrientedImageFootprintListModel::itemRemoved (int index)
Signal emitted when an oriented image footprint is removed from the model.
index is the index of the removed footprint.
This function was introduced in Esri::ArcGISRuntime 300.2.
Esri::ArcGISRuntime::OrientedImageFootprint *OrientedImageFootprintListModel::last() const
Returns the last footprint in the model.
void OrientedImageFootprintListModel::move(int from, int to)
Moves the footprint at from to to.
void OrientedImageFootprintListModel::removeAt (int index)
Removes the footprint at index from the model.
No footprint is removed if index is out of range.
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 OrientedImageFootprintListModel::removeOne (Esri::ArcGISRuntime::OrientedImageFootprint *footprint)
Removes footprint from the 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 OrientedImageFootprintListModel::size() const
Returns the number of oriented image footprints in the model.