18 #ifndef QGSPOINTCLOUDATTRIBUTE_H
19 #define QGSPOINTCLOUDATTRIBUTE_H
22 #include "qgis_core.h"
63 QString
name()
const {
return mName; }
66 int size()
const {
return mSize; }
80 QVariant::Type variantType()
const;
89 QString displayType()
const;
94 static bool isNumeric( DataType type );
97 SIP_PYOBJECT __repr__();
99 QString
str = QStringLiteral(
"<QgsPointCloudAttribute: %1 (%2)>" ).arg( sipCpp->name() ).arg( sipCpp->displayType() );
100 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
143 QVector<QgsPointCloudAttribute> attributes()
const;
148 int count()
const {
return mAttributes.size(); }
167 int indexOf(
const QString &name )
const;
179 QVector<QgsPointCloudAttribute> mAttributes;
181 struct CachedAttributeData
185 CachedAttributeData(
int index,
int offset )
191 QMap< QString, CachedAttributeData > mCachedAttributes;
Container of fields for a vector layer.
Collection of point cloud attributes.
int pointRecordSize() const
Returns total size of record.
QgsPointCloudAttributeCollection()
Ctor.
int count() const
Returns the number of attributes present in the collection.
const QgsPointCloudAttribute & at(int index) const
Returns the attribute at the specified index.
Attribute for point cloud data pair of name and size in bytes.
DataType
Systems of unit measurement.
@ UShort
Unsigned short int 2 bytes.
@ Short
Short int 2 bytes.
@ UChar
Unsigned char 1 byte.
@ UInt32
Unsigned int32 4 bytes.
@ UInt64
Unsigned int64 8 bytes.
QgsPointCloudAttribute()
Ctor.
int size() const
Returns size of the attribute in bytes.
QString name() const
Returns name of the attribute.
DataType type() const
Returns the data type.