A list model that stores a list of point cloud color stops. 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 stops in a PointCloudStretchRenderer.
The model returns data for the following roles:
| Role | Type | Description | PointCloudColorStopRoles |
|---|---|---|---|
| color | QColor | The point cloud color stop's color. | Point |
| label | QString | The point cloud color stop's label. | Point |
| value | double | The point cloud color stop's value. | Point |
Member Type Documentation
enum PointCloudColorStopListModel::PointCloudColorStopRoles
This enum specifies the custom roles which can be used with PointCloudColorStopListModel::data.
| Constant | Value | Description |
|---|---|---|
Esri | Qt | The point cloud color stop's color. |
Esri | Qt | The point cloud color stop's label. |
Esri | Qt | The point cloud color stop's value. |
Member Function Documentation
[override virtual noexcept] PointCloudColorStopListModel::~PointCloudColorStopListModel ()
Destructor.
void PointCloudColorStopListModel::append(Esri::ArcGISRuntime::PointCloudColorStop *pointCloudColorStop )
Appends a pointCloudColorStop to the list model.
[override virtual] Esri::ArcGISRuntime::PointCloudColorStop *PointCloudColorStopListModel::at(int index) const
Returns the point cloud color stop at the specified index.
void PointCloudColorStopListModel::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 PointCloudColorStopListModel::contains(Esri::ArcGISRuntime::PointCloudColorStop *pointCloudColorStop ) const
Returns whether this list model contains the specified pointCloudColorStop.
[override virtual] QVariant PointCloudColorStopListModel::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 stop 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 PointCloudColorStopListModel::errorOccurred (const Esri::ArcGISRuntime::Error &error)
Signal emitted when an error occurs.
- error - Details about the error.
Esri::ArcGISRuntime::PointCloudColorStop *PointCloudColorStopListModel::first() const
Returns the first point cloud color stop in the list model.
int PointCloudColorStopListModel::indexOf (Esri::ArcGISRuntime::PointCloudColorStop *pointCloudColorStop ) const
Returns the index of the specified pointCloudColorStop.
void PointCloudColorStopListModel::insert(int index, Esri::ArcGISRuntime::PointCloudColorStop *pointCloudColorStop )
Inserts a pointCloudColorStop 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 PointCloudColorStopListModel::isEmpty () const
Returns true if the list model contains no point cloud color stops.
[signal] void PointCloudColorStopListModel::itemAdded (int index)
Signal emitted when a point cloud color stop is added to the list model.
- index - The index of the added point cloud color stop.
[signal] void PointCloudColorStopListModel::itemRemoved (int index)
Signal emitted when a point cloud color stop is removed from the list model.
- index - The index of the removed point cloud color stop.
Esri::ArcGISRuntime::PointCloudColorStop *PointCloudColorStopListModel::last() const
Returns the last point cloud color stop in the list model.
void PointCloudColorStopListModel::move(int from, int to)
Moves one point cloud color stop from an index in the list model to a different index.
void PointCloudColorStopListModel::removeAt (int index)
Removes a point cloud color stop 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 PointCloudColorStopListModel::removeOne (Esri::ArcGISRuntime::PointCloudColorStop *pointCloudColorStop )
Removes a specific point cloud color stop (pointCloudColorStop) 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 PointCloudColorStopListModel::size() const
Returns the number of point cloud color stops in the list model.