Skip To Content ArcGIS for Developers Sign In Dashboard

GeometricEffectListModel Class

(Esri::ArcGISRuntime::GeometricEffectListModel)

A list model storing a list of geometric effects. More...

Header: #include <GeometricEffectListModel>
Since: Esri::ArcGISRuntime 100.5
Inherits: QAbstractListModel and Iterable<GeometricEffect *>

Public Types

enum GeometricEffectRoles { GeometricEffectTypeRole }

Public Functions

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

Reimplemented Public Functions

virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const

Signals

void errorOccurred(Esri::ArcGISRuntime::Error error)
void geometricEffectAdded(int index)
void geometricEffectRemoved(int index)

Additional Inherited Members

Detailed Description

A list model storing a list of geometric effects.

Modifying this model (adding, removing, moving) will update the SolidStrokeSymbolLayer.

The model returns data for the following roles:

RoleTypeDescriptionGeometricEffectRoles
geometricEffectTypeEsri::ArcGISRuntime::GeometricEffectTypeRolesThe GeometricEffectType enum.GeometricEffectTypeRole

Member Type Documentation

enum GeometricEffectListModel::GeometricEffectRoles

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

ConstantValueDescription
Esri::ArcGISRuntime::GeometricEffectListModel::GeometricEffectTypeRoleQt::UserRole + 1The geometric effect

Member Function Documentation

GeometricEffectListModel::~GeometricEffectListModel()

Destructor.

void GeometricEffectListModel::append(GeometricEffect *geometricEffect)

Appends a geometricEffect to the geometric effect list model.

GeometricEffect *GeometricEffectListModel::at(int index) const

Returns the GeometricEffect at the specified index.

void GeometricEffectListModel::clear()

Removes all geometric effects from the list model.

bool GeometricEffectListModel::contains(GeometricEffect *geometricEffect) const

Returns true if the list model contains the specified geometricEffect.

[virtual] QVariant GeometricEffectListModel::data(const QModelIndex &index, int role = Qt::DisplayRole) const

Reimplemented from QAbstractItemModel::data().

Returns the data stored under the given role for the geometric effect 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 GeometricEffectListModel::errorOccurred(Esri::ArcGISRuntime::Error error)

Signal emitted when an error occurs.

  • error - Details about the error.

GeometricEffect *GeometricEffectListModel::first() const

Returns the first geometric effect in the list model.

[signal] void GeometricEffectListModel::geometricEffectAdded(int index)

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

index is the index of the added GeometricEffect.

[signal] void GeometricEffectListModel::geometricEffectRemoved(int index)

Signal emitted when a GeometricEffect is removed from the list model.

index is the index of the removed GeometricEffect.

int GeometricEffectListModel::indexOf(GeometricEffect *geometricEffect) const

Returns the index of the geometricEffect specified.

void GeometricEffectListModel::insert(int index, GeometricEffect *geometricEffect)

Inserts a geometricEffect 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 GeometricEffectListModel::isEmpty() const

Returns true if the list model contains no geometric effects.

GeometricEffect *GeometricEffectListModel::last() const

Returns the last geometric effect in the list model.

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

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

void GeometricEffectListModel::removeAt(int index)

Removes a geometric effect at the specified index.

void GeometricEffectListModel::removeOne(GeometricEffect *geometricEffect)

Removes the specified geometricEffect from the list model.

int GeometricEffectListModel::size() const

Returns the number of geometric effects contained in the list model.


Feedback on this topic?