QGIS API Documentation
3.22.4-Białowieża (ce8e65e95e)
|
Collection of point cloud attributes. More...
#include <qgspointcloudattribute.h>
Public Member Functions | |
QgsPointCloudAttributeCollection () | |
Ctor. More... | |
QgsPointCloudAttributeCollection (const QVector< QgsPointCloudAttribute > &attributes) | |
Ctor with given attributes. More... | |
const QgsPointCloudAttribute & | at (int index) const |
Returns the attribute at the specified index. More... | |
QVector< QgsPointCloudAttribute > | attributes () const |
Returns all attributes. More... | |
int | count () const |
Returns the number of attributes present in the collection. More... | |
const QgsPointCloudAttribute * | find (const QString &attributeName, int &offset) const |
Finds the attribute with the name. More... | |
int | indexOf (const QString &name) const |
Returns the index of the attribute with the specified name. More... | |
int | pointRecordSize () const |
Returns total size of record. More... | |
void | push_back (const QgsPointCloudAttribute &attribute) |
Adds extra attribute. More... | |
QgsFields | toFields () const |
Converts the attribute collection to an equivalent QgsFields collection. More... | |
Collection of point cloud attributes.
Definition at line 128 of file qgspointcloudattribute.h.
|
default |
Ctor.
QgsPointCloudAttributeCollection::QgsPointCloudAttributeCollection | ( | const QVector< QgsPointCloudAttribute > & | attributes | ) |
Ctor with given attributes.
Definition at line 110 of file qgspointcloudattribute.cpp.
|
inline |
Returns the attribute at the specified index.
Definition at line 149 of file qgspointcloudattribute.h.
QVector< QgsPointCloudAttribute > QgsPointCloudAttributeCollection::attributes | ( | ) | const |
Returns all attributes.
Definition at line 126 of file qgspointcloudattribute.cpp.
|
inline |
Returns the number of attributes present in the collection.
Definition at line 144 of file qgspointcloudattribute.h.
const QgsPointCloudAttribute * QgsPointCloudAttributeCollection::find | ( | const QString & | attributeName, |
int & | offset | ||
) | const |
Finds the attribute with the name.
Returns nullptr
if not found.
Definition at line 131 of file qgspointcloudattribute.cpp.
int QgsPointCloudAttributeCollection::indexOf | ( | const QString & | name | ) | const |
Returns the index of the attribute with the specified name.
Returns -1 if a matching attribute was not found.
Definition at line 144 of file qgspointcloudattribute.cpp.
|
inline |
Returns total size of record.
Definition at line 166 of file qgspointcloudattribute.h.
void QgsPointCloudAttributeCollection::push_back | ( | const QgsPointCloudAttribute & | attribute | ) |
Adds extra attribute.
Definition at line 119 of file qgspointcloudattribute.cpp.
QgsFields QgsPointCloudAttributeCollection::toFields | ( | ) | const |
Converts the attribute collection to an equivalent QgsFields collection.
Definition at line 156 of file qgspointcloudattribute.cpp.