• PointCloudColorClassBreakListModel
  • class Esri::ArcGISRuntime::PointCloudColorClassBreakListModel

    A list model that stores a list of point cloud color unique values. More...

    Header: #include <PointCloudColorClassBreakListModel.h>
    Since: Esri::ArcGISRuntime 300.1
    Inherits: QAbstractListModel and Esri::ArcGISRuntime::Iterable

    Public Types

    enum PointCloudColorClassBreakRoles { PointCloudColorClassBreakColorRole, PointCloudColorClassBreakDescriptionRole, PointCloudColorClassBreakLabelRole, PointCloudColorClassBreakMaxValueRole, PointCloudColorClassBreakMinValueRole }

    Public Functions

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

    Reimplemented Public Functions

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

    Signals

    void errorOccurred(const Esri::ArcGISRuntime::Error &error)
    void itemAdded(int index)
    void itemRemoved(int index)

    Detailed Description

    Modifying this model (adding, removing, or moving) will update the values in a PointCloudUniqueValueRenderer.

    The model returns data for the following roles:

    RoleTypeDescriptionPointCloudColorClassBreakRoles
    colorQColorThe point cloud color class break's color.PointCloudColorClassBreakColorRole
    descriptionQStringThe point cloud color class break's description.PointCloudColorClassBreakDescriptionRole
    labelQStringThe point cloud color class break's label.PointCloudColorClassBreakLabelRole
    maxValuedoubleThe point cloud color class break's maximum value.PointCloudColorClassBreakMaxValueRole
    minValueminValuedoubleThe point cloud color class break's minimum value.PointCloudColorClassBreakMinValueRole

    Member Type Documentation

    enum PointCloudColorClassBreakListModel::PointCloudColorClassBreakRoles

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

    ConstantValueDescription
    Esri::ArcGISRuntime::PointCloudColorClassBreakListModel::PointCloudColorClassBreakColorRoleQt::UserRole + 1The point cloud color class break's color.
    Esri::ArcGISRuntime::PointCloudColorClassBreakListModel::PointCloudColorClassBreakDescriptionRoleQt::UserRole + 2The point cloud color class break's description.
    Esri::ArcGISRuntime::PointCloudColorClassBreakListModel::PointCloudColorClassBreakLabelRoleQt::UserRole + 3The point cloud color class break's label.
    Esri::ArcGISRuntime::PointCloudColorClassBreakListModel::PointCloudColorClassBreakMaxValueRoleQt::UserRole + 4The point cloud color class break's maximum value.
    Esri::ArcGISRuntime::PointCloudColorClassBreakListModel::PointCloudColorClassBreakMinValueRoleQt::UserRole + 5The point cloud color class break's minimum value.

    Member Function Documentation

    [override virtual noexcept] PointCloudColorClassBreakListModel::~PointCloudColorClassBreakListModel()

    Destructor.

    void PointCloudColorClassBreakListModel::append(Esri::ArcGISRuntime::PointCloudColorClassBreak *PointCloudColorClassBreak)

    Appends a PointCloudColorClassBreak to the list model.

    [override virtual] Esri::ArcGISRuntime::PointCloudColorClassBreak *PointCloudColorClassBreakListModel::at(int index) const

    Returns the point cloud color unique value at the specified index.

    void PointCloudColorClassBreakListModel::clear()

    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 PointCloudColorClassBreakListModel::contains(Esri::ArcGISRuntime::PointCloudColorClassBreak *PointCloudColorClassBreak) const

    Returns whether this list model contains the specified PointCloudColorClassBreak.

    [override virtual] QVariant PointCloudColorClassBreakListModel::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 point cloud color unique value 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 PointCloudColorClassBreakListModel::errorOccurred(const Esri::ArcGISRuntime::Error &error)

    Signal emitted when an error occurs.

    • error - Details about the error.

    Esri::ArcGISRuntime::PointCloudColorClassBreak *PointCloudColorClassBreakListModel::first() const

    Returns the first point cloud color unique value in the list model.

    int PointCloudColorClassBreakListModel::indexOf(Esri::ArcGISRuntime::PointCloudColorClassBreak *PointCloudColorClassBreak) const

    Returns the index of the specified PointCloudColorClassBreak.

    void PointCloudColorClassBreakListModel::insert(int index, Esri::ArcGISRuntime::PointCloudColorClassBreak *PointCloudColorClassBreak)

    Inserts a PointCloudColorClassBreak at the 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 PointCloudColorClassBreakListModel::isEmpty() const

    Returns true if the list model contains no point cloud color class breaks.

    [signal] void PointCloudColorClassBreakListModel::itemAdded(int index)

    Signal emitted when a point cloud color unique value is added to the list model.

    • index - The index of the added point cloud color unique value.

    [signal] void PointCloudColorClassBreakListModel::itemRemoved(int index)

    Signal emitted when a point cloud color unique value is removed from the list model.

    • index - The index of the removed point cloud color unique value.

    Esri::ArcGISRuntime::PointCloudColorClassBreak *PointCloudColorClassBreakListModel::last() const

    Returns the last point cloud color unique value in the list model.

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

    Moves one point cloud color unique value from an index in the list model to a different index.

    void PointCloudColorClassBreakListModel::removeAt(int index)

    Removes a point cloud color unique value at the specified index.

    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 PointCloudColorClassBreakListModel::removeOne(Esri::ArcGISRuntime::PointCloudColorClassBreak *PointCloudColorClassBreak)

    Removes a specific point cloud color unique value (PointCloudColorClassBreak) from the list 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 PointCloudColorClassBreakListModel::size() const

    Returns the number of point cloud color class breaks in the list model.