QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
Classes | Public Member Functions | List of all members
QgsPointCloudAttributeCollection Class Reference

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 QgsPointCloudAttributeat (int index) const
 Returns the attribute at the specified index. More...
 
QVector< QgsPointCloudAttributeattributes () const
 Returns all attributes. More...
 
int count () const
 Returns the number of attributes present in the collection. More...
 
void extend (const QgsPointCloudAttributeCollection &otherCollection, const QSet< QString > &matchingNames)
 Adds specific missing attributes from another QgsPointCloudAttributeCollection. More...
 
const QgsPointCloudAttributefind (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...
 

Detailed Description

Collection of point cloud attributes.

Since
QGIS 3.18

Definition at line 141 of file qgspointcloudattribute.h.

Constructor & Destructor Documentation

◆ QgsPointCloudAttributeCollection() [1/2]

QgsPointCloudAttributeCollection::QgsPointCloudAttributeCollection ( )
default

Ctor.

◆ QgsPointCloudAttributeCollection() [2/2]

QgsPointCloudAttributeCollection::QgsPointCloudAttributeCollection ( const QVector< QgsPointCloudAttribute > &  attributes)

Ctor with given attributes.

Definition at line 133 of file qgspointcloudattribute.cpp.

Member Function Documentation

◆ at()

const QgsPointCloudAttribute & QgsPointCloudAttributeCollection::at ( int  index) const
inline

Returns the attribute at the specified index.

Definition at line 170 of file qgspointcloudattribute.h.

◆ attributes()

QVector< QgsPointCloudAttribute > QgsPointCloudAttributeCollection::attributes ( ) const

Returns all attributes.

Definition at line 163 of file qgspointcloudattribute.cpp.

◆ count()

int QgsPointCloudAttributeCollection::count ( ) const
inline

Returns the number of attributes present in the collection.

Definition at line 165 of file qgspointcloudattribute.h.

◆ extend()

void QgsPointCloudAttributeCollection::extend ( const QgsPointCloudAttributeCollection otherCollection,
const QSet< QString > &  matchingNames 
)

Adds specific missing attributes from another QgsPointCloudAttributeCollection.

Parameters
otherCollectiona QgsPointCloudAttributeCollection with more attributes
matchingNamesthe names of the attributes to be added
Since
QGIS 3.26

Definition at line 149 of file qgspointcloudattribute.cpp.

◆ find()

const QgsPointCloudAttribute * QgsPointCloudAttributeCollection::find ( const QString &  attributeName,
int &  offset 
) const

Finds the attribute with the name.

Returns nullptr if not found.

Definition at line 168 of file qgspointcloudattribute.cpp.

◆ indexOf()

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 181 of file qgspointcloudattribute.cpp.

◆ pointRecordSize()

int QgsPointCloudAttributeCollection::pointRecordSize ( ) const
inline

Returns total size of record.

Definition at line 187 of file qgspointcloudattribute.h.

◆ push_back()

void QgsPointCloudAttributeCollection::push_back ( const QgsPointCloudAttribute attribute)

Adds extra attribute.

Definition at line 142 of file qgspointcloudattribute.cpp.

◆ toFields()

QgsFields QgsPointCloudAttributeCollection::toFields ( ) const

Converts the attribute collection to an equivalent QgsFields collection.

Definition at line 193 of file qgspointcloudattribute.cpp.


The documentation for this class was generated from the following files: