• OrientedImageFootprintListModel
  • class Esri::ArcGISRuntime::OrientedImageFootprintListModel

    A list model containing active oriented image footprints in an oriented imagery layer. More...

    Header: #include <OrientedImageFootprintListModel.h>
    Since: Esri::ArcGISRuntime 300.2
    Inherits: QAbstractListModel and Esri::ArcGISRuntime::Iterable

    Public Types

    enum OrientedImageFootprintRoles { OrientedImageFootprintRole }

    Public Functions

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

    Reimplemented Public Functions

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

    Signals

    (since Esri::ArcGISRuntime 300.2) void itemAdded(int index)
    (since Esri::ArcGISRuntime 300.2) void itemRemoved(int index)

    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:

    RoleTypeDescriptionOrientedImageFootprintRoles
    orientedImageFootprintOrientedImageFootprint*The oriented image footprint at the specified row.OrientedImageFootprintRole

    Member Type Documentation

    enum OrientedImageFootprintListModel::OrientedImageFootprintRoles

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

    ConstantValueDescription
    Esri::ArcGISRuntime::OrientedImageFootprintListModel::OrientedImageFootprintRoleQt::UserRole + 1The 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.