KmlGeometryListModel Class

  • KmlGeometryListModel
  • class Esri::ArcGISRuntime::KmlGeometryListModel

    A list model storing a list of type KmlGeometry. More...

    Header: #include <KmlGeometryListModel>
    Since: Esri::ArcGISRuntime 100.6
    Inherits: QAbstractListModel and Esri::ArcGISRuntime::Iterable

    This class was introduced in Esri::ArcGISRuntime 100.6.

    Public Types

    enum KmlGeometryRoles { KmlGeometryGeometryRole, KmlGeometryTessellatedRole, KmlGeometryExtrudedRole, KmlGeometryKmlAltitudeModeRole, KmlGeometryKmlGeometryTypeRole, KmlGeometryGeometryJsonRole }

    Public Functions

    virtual ~KmlGeometryListModel() override
    void append(const Esri::ArcGISRuntime::KmlGeometry &geometry)
    void clear()
    bool contains(const Esri::ArcGISRuntime::KmlGeometry &geometry) const
    Esri::ArcGISRuntime::KmlGeometry first() const
    int indexOf(const Esri::ArcGISRuntime::KmlGeometry &geometry) const
    void insert(int index, const Esri::ArcGISRuntime::KmlGeometry &geometry)
    bool isEmpty() const
    Esri::ArcGISRuntime::KmlGeometry last() const
    void move(int from, int to)
    void removeAt(int index)
    void removeOne(const Esri::ArcGISRuntime::KmlGeometry &geometry)

    Reimplemented Public Functions

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


    void errorOccurred(Esri::ArcGISRuntime::Error error)
    void kmlGeometryAdded(int index)
    void kmlGeometryRemoved(int index)

    Detailed Description

    The model returns data for the following roles:

    geometryGeometryThe KmlGeometry's geometry.KmlGeometryGeometryRole
    tessellatedboolThe KmlGeometry's tessellated flag.KmlGeometryTessellatedRole
    extrudedboolThe KmlGeometry's extruded flag.KmlGeometryExtrudedRole
    altitudeModeKmlAltitudeModeThe KmlGeometry's altitude mode.KmlGeometryKmlAltitudeModeRole
    kmlGeometryTypeKmlGeometryTypeThe KmlGeometry's geometry type.KmlGeometryKmlGeometryTypeRole
    geometryJsonQStringJSON representation of the KmlGeometry's geometry.KmlGeometryGeometryJsonRole

    Member Type Documentation

    enum KmlGeometryListModel::KmlGeometryRoles

    This enum specifies the custom roles that can be used with KmlGeometryListModel::data.

    Esri::ArcGISRuntime::KmlGeometryListModel::KmlGeometryGeometryRoleQt::UserRole + 1The KmlGeometry's geometry.
    Esri::ArcGISRuntime::KmlGeometryListModel::KmlGeometryTessellatedRole258Flag indicating if the KmlGeometry is tessellated.
    Esri::ArcGISRuntime::KmlGeometryListModel::KmlGeometryExtrudedRole259Flag indicating if the KmlGeometry is extruded.
    Esri::ArcGISRuntime::KmlGeometryListModel::KmlGeometryKmlAltitudeModeRole260Enum indicating altitude mode of the KmlGeometry.
    Esri::ArcGISRuntime::KmlGeometryListModel::KmlGeometryKmlGeometryTypeRole261Enum indicating geometry type of the KmlGeometry.
    Esri::ArcGISRuntime::KmlGeometryListModel::KmlGeometryGeometryJsonRole262Enum indicating geometry json of the KmlGeometry's geometry.

    Member Function Documentation

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

    Signal emitted when an error occurs.

    • error - Details about the error.

    [signal] void KmlGeometryListModel::kmlGeometryAdded(int index)

    Signal emitted when a KmlGeometry is added to the list model.

    [signal] void KmlGeometryListModel::kmlGeometryRemoved(int index)

    Signal emitted when an KmlGeometry is removed from the list model.

    [override virtual] KmlGeometryListModel::~KmlGeometryListModel()


    void KmlGeometryListModel::append(const Esri::ArcGISRuntime::KmlGeometry &geometry)

    Appends the KmlGeometry geometry to the list model.

    [override virtual] Esri::ArcGISRuntime::KmlGeometry KmlGeometryListModel::at(int index) const

    Returns the KmlGeometry at the specified index.

    void KmlGeometryListModel::clear()

    Removes all KmlGeometry elements from the list model.

    bool KmlGeometryListModel::contains(const Esri::ArcGISRuntime::KmlGeometry &geometry) const

    Returns true if the list model contains the KmlGeometry geometry.

    [override virtual] QVariant KmlGeometryListModel::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 KmlGeometry referred to by the index.

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

    An empty value is returned if the specified index is out of range.

    Esri::ArcGISRuntime::KmlGeometry KmlGeometryListModel::first() const

    Returns the first KmlGeometry in the list model.

    int KmlGeometryListModel::indexOf(const Esri::ArcGISRuntime::KmlGeometry &geometry) const

    Returns the index of the KmlGeometry geometry in the list model.

    Returns -1 if geometry is not in the list model.

    void KmlGeometryListModel::insert(int index, const Esri::ArcGISRuntime::KmlGeometry &geometry)

    Inserts the KmlGeometry geometry into the list model at a specified index.

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

    bool KmlGeometryListModel::isEmpty() const

    Returns true if the list model contains no KmlGeometry elements.

    Esri::ArcGISRuntime::KmlGeometry KmlGeometryListModel::last() const

    Returns the last KmlGeometry in the list model.

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

    Moves one KmlGeometry from an index in the list model to a different index.

    Both indexes from and to must be at least 0 and less than size.

    void KmlGeometryListModel::removeAt(int index)

    Removes a KmlGeometry at the specified index.

    No KmlGeometry will be removed if the specified index is out of range.

    void KmlGeometryListModel::removeOne(const Esri::ArcGISRuntime::KmlGeometry &geometry)

    Removes the KmlGeometry geometry from the list model.

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

    Returns the number of KmlGeometry elements 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.