18#ifndef QGSPOINTCLOUDATTRIBUTE_H
19#define QGSPOINTCLOUDATTRIBUTE_H
64 QString
name()
const {
return mName; }
67 int size()
const {
return mSize; }
81 QVariant::Type variantType()
const;
90 QString displayType()
const;
98 double convertValueToDouble(
const char *ptr )
const SIP_SKIP;
103 static bool isNumeric( DataType type );
106 SIP_PYOBJECT __repr__();
108 QString
str = QStringLiteral(
"<QgsPointCloudAttribute: %1 (%2)>" ).arg( sipCpp->name() ).arg( sipCpp->displayType() );
109 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
160 QVector<QgsPointCloudAttribute> attributes()
const;
165 int count()
const {
return mAttributes.size(); }
184 int indexOf(
const QString &name )
const;
196 QVector<QgsPointCloudAttribute> mAttributes;
198 struct CachedAttributeData
202 CachedAttributeData(
int index,
int offset )
208 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.
const QgsPointCloudAttribute & at(int index) const
Returns the attribute at the specified index.
int count() const
Returns the number of attributes present in the collection.
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.