Skip To Content ArcGIS for Developers Sign In Dashboard

KmlNodeListModel Class

(Esri::ArcGISRuntime::KmlNodeListModel)

A list model storing a list of KmlNodes available in a KmlContainer. More...

Header: #include <KmlNodeListModel>
Since: Esri::ArcGISRuntime 100.6
Inherits: QAbstractListModel and Iterable<KmlNode *>

Public Functions

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

Signals

void errorOccurred(Esri::ArcGISRuntime::Error error)
void kmlNodeAdded(int index)
void kmlNodeRemoved(int index)

Additional Inherited Members

Detailed Description

A list model storing a list of KmlNodes available in a KmlContainer.

Modifying this model (adding, removing, moving) will update the nodes available in the KmlContainer.

Member Function Documentation

KmlNodeListModel::~KmlNodeListModel()

Destructor.

void KmlNodeListModel::append(KmlNode *kmlNode)

Appends an kmlNode to the KmlNode list model.

KmlNode *KmlNodeListModel::at(int index) const

Returns the kmlNode at the specified index.

void KmlNodeListModel::clear()

Removes all KmlNodes from the list model.

bool KmlNodeListModel::contains(KmlNode *kmlNode) const

Returns true if the list model contains the specified kmlNode.

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

Signal emitted when an error occurs.

  • error - Details about the error.

KmlNode *KmlNodeListModel::first() const

Returns the first KmlNode in the list model.

int KmlNodeListModel::indexOf(KmlNode *kmlNode) const

Returns the index of the kmlNode specified.

void KmlNodeListModel::insert(int index, KmlNode *kmlNode)

Inserts a kmlNode 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 KmlNodeListModel::isEmpty() const

Returns true if the list model contains no KmlNodes.

[signal] void KmlNodeListModel::kmlNodeAdded(int index)

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

  • index - The index of the added KmlNode.

[signal] void KmlNodeListModel::kmlNodeRemoved(int index)

Signal emitted when KmlNode is removed from the list model.

  • index - The index of the removed KmlNode.

KmlNode *KmlNodeListModel::last() const

Returns the last KmlNode in the list model.

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

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

void KmlNodeListModel::removeAt(int index)

Removes a kmlNode at the specified index.

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

void KmlNodeListModel::removeOne(KmlNode *kmlNode)

Removes the specified kmlNode from the list model.

int KmlNodeListModel::size() const

Returns the number of KmlNodes contained in the list model.


Feedback on this topic?