Class: QgsPointCloudAttributeCollection¶
- class qgis.core.QgsPointCloudAttributeCollection¶
Bases:
sip.wrapper
Ctor
QgsPointCloudAttributeCollection(attributes: Iterable[QgsPointCloudAttribute]) Ctor with given attributes
QgsPointCloudAttributeCollection(
QgsPointCloudAttributeCollection
)Collection of point cloud attributes
Methods
Returns the attribute at the specified
index
.Returns all attributes
Returns the number of attributes present in the collection.
Finds the attribute with the name
Returns the index of the attribute with the specified
name
.Returns total size of record
Adds extra attribute
Converts the attribute collection to an equivalent
QgsFields
collection.- at(self, index: int) → QgsPointCloudAttribute¶
Returns the attribute at the specified
index
.- Parameters
index (int) –
- Return type
- attributes(self) → List[QgsPointCloudAttribute]¶
Returns all attributes
- Return type
List[QgsPointCloudAttribute]
- count(self) → int¶
Returns the number of attributes present in the collection.
- Return type
int
- find(self, attributeName: str) → Tuple[QgsPointCloudAttribute, int]¶
Finds the attribute with the name
Returns
None
if not found.- Parameters
attributeName (str) –
- Return type
Tuple[
QgsPointCloudAttribute
, int]
- indexOf(self, name: str) → int¶
Returns the index of the attribute with the specified
name
.Returns -1 if a matching attribute was not found.
- Parameters
name (str) –
- Return type
int
- pointRecordSize(self) → int¶
Returns total size of record
- Return type
int
- push_back(self, attribute: QgsPointCloudAttribute)¶
Adds extra attribute
- Parameters
attribute (QgsPointCloudAttribute) –