A list model that stores a list of point cloud color unique values. More...
| Header | #include <Point |
| Since | Esri |
| Inherits | QAbstract |
Public Types
| enum | Point |
Public Functions
| virtual | ~ |
| void | append( |
| void | clear() |
| bool | contains( |
| Esri | first() const |
| int | index |
| void | insert(int index, Esri |
| bool | is |
| Esri | last() const |
| void | move(int from, int to) |
| void | remove |
| void | remove |
Reimplemented Public Functions
| virtual Esri | at(int index) const override |
| virtual QVariant | data(const QModel |
| virtual int | size() const override |
Signals
| void | error |
| void | item |
| void | item |
Detailed Description
Modifying this model (adding, removing, or moving) will update the values in a PointCloudUniqueValueRenderer.
The model returns data for the following roles:
| Role | Type | Description | PointCloudColorClassBreakRoles | |
|---|---|---|---|---|
| color | QColor | The point cloud color class break's color. | Point | |
| description | QString | The point cloud color class break's description. | Point | |
| label | QString | The point cloud color class break's label. | Point | |
| max | double | The point cloud color class break's maximum value. | Point | |
| min | min | double | The point cloud color class break's minimum value. | Point |
Member Type Documentation
enum PointCloudColorClassBreakListModel::PointCloudColorClassBreakRoles
This enum specifies the custom roles which can be used with PointCloudColorClassBreakListModel::data.
| Constant | Value | Description |
|---|---|---|
Esri | Qt | The point cloud color class break's color. |
Esri | Qt | The point cloud color class break's description. |
Esri | Qt | The point cloud color class break's label. |
Esri | Qt | The point cloud color class break's maximum value. |
Esri | Qt | The 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.