|
QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
A model for display of available attributes from a point cloud. More...
#include <qgspointcloudattributemodel.h>

Public Types | |
| enum | FieldRoles { AttributeNameRole = Qt::UserRole + 1 , AttributeIndexRole , AttributeSizeRole , AttributeTypeRole , IsEmptyRole , IsNumericRole } |
| Roles utilized by the model. More... | |
Public Member Functions | |
| QgsPointCloudAttributeModel (QObject *parent=nullptr) | |
| Constructor for QgsPointCloudAttributeModel, with the specified parent object. More... | |
| bool | allowEmptyAttributeName () const |
Returns true if the model allows the empty attribute ("not set") choice. More... | |
| QgsPointCloudAttributeCollection | attributes () const |
| Returns the attributes associated with the model. More... | |
| int | columnCount (const QModelIndex &parent) const override |
| QVariant | data (const QModelIndex &index, int role) const override |
| QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const override |
| QModelIndex | indexFromName (const QString &name) |
| Returns the index corresponding to a given attribute name. More... | |
| QgsPointCloudLayer * | layer () |
| Returns the layer associated with the model. More... | |
| QModelIndex | parent (const QModelIndex &child) const override |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| void | setAllowEmptyAttributeName (bool allowEmpty) |
| Sets whether an optional empty attribute ("not set") option is present in the model. More... | |
| void | setAttributes (const QgsPointCloudAttributeCollection &attributes) |
| Sets the attributes to include in the model. More... | |
| void | setLayer (QgsPointCloudLayer *layer) |
| Sets the layer associated with the model. More... | |
Static Public Member Functions | |
| static QString | attributeToolTip (const QgsPointCloudAttribute &attribute) |
| Returns a HTML formatted tooltip string for a attribute, containing details like the attribute name and type. More... | |
| static QIcon | iconForAttributeType (QgsPointCloudAttribute::DataType type) |
| Returns an icon corresponding to an attribute type. More... | |
A model for display of available attributes from a point cloud.
Definition at line 36 of file qgspointcloudattributemodel.h.
Roles utilized by the model.
| Enumerator | |
|---|---|
| AttributeNameRole | Attribute name. |
| AttributeIndexRole | Attribute index if index corresponds to an attribute. |
| AttributeSizeRole | Attribute size. |
| AttributeTypeRole | Attribute type, see QgsPointCloudAttribute::DataType. |
| IsEmptyRole |
|
| IsNumericRole |
|
Definition at line 43 of file qgspointcloudattributemodel.h.
|
explicit |
Constructor for QgsPointCloudAttributeModel, with the specified parent object.
Definition at line 24 of file qgspointcloudattributemodel.cpp.
|
inline |
Returns true if the model allows the empty attribute ("not set") choice.
Definition at line 102 of file qgspointcloudattributemodel.h.
|
inline |
Returns the attributes associated with the model.
Definition at line 85 of file qgspointcloudattributemodel.h.
|
static |
Returns a HTML formatted tooltip string for a attribute, containing details like the attribute name and type.
Definition at line 217 of file qgspointcloudattributemodel.cpp.
|
override |
Definition at line 118 of file qgspointcloudattributemodel.cpp.
|
override |
Definition at line 124 of file qgspointcloudattributemodel.cpp.
|
static |
Returns an icon corresponding to an attribute type.
Definition at line 226 of file qgspointcloudattributemodel.cpp.
|
override |
Definition at line 92 of file qgspointcloudattributemodel.cpp.
| QModelIndex QgsPointCloudAttributeModel::indexFromName | ( | const QString & | name | ) |
Returns the index corresponding to a given attribute name.
Definition at line 72 of file qgspointcloudattributemodel.cpp.
| QgsPointCloudLayer * QgsPointCloudAttributeModel::layer | ( | ) |
Returns the layer associated with the model.
Definition at line 41 of file qgspointcloudattributemodel.cpp.
|
override |
Definition at line 102 of file qgspointcloudattributemodel.cpp.
|
override |
Definition at line 108 of file qgspointcloudattributemodel.cpp.
| void QgsPointCloudAttributeModel::setAllowEmptyAttributeName | ( | bool | allowEmpty | ) |
Sets whether an optional empty attribute ("not set") option is present in the model.
Definition at line 53 of file qgspointcloudattributemodel.cpp.
| void QgsPointCloudAttributeModel::setAttributes | ( | const QgsPointCloudAttributeCollection & | attributes | ) |
Sets the attributes to include in the model.
Definition at line 46 of file qgspointcloudattributemodel.cpp.
| void QgsPointCloudAttributeModel::setLayer | ( | QgsPointCloudLayer * | layer | ) |
Sets the layer associated with the model.
Definition at line 30 of file qgspointcloudattributemodel.cpp.