Attribute for point cloud data pair of name and size in bytes.
More...
#include <qgspointcloudattribute.h>
|
static QVariantMap | getAttributeMap (const char *data, std::size_t recordOffset, const QgsPointCloudAttributeCollection &attributeCollection) |
| Retrieves all the attributes of a point. More...
|
|
static void | getPointXYZ (const char *ptr, int i, std::size_t pointRecordSize, int xOffset, QgsPointCloudAttribute::DataType xType, int yOffset, QgsPointCloudAttribute::DataType yType, int zOffset, QgsPointCloudAttribute::DataType zType, const QgsVector3D &indexScale, const QgsVector3D &indexOffset, double &x, double &y, double &z) |
| Retrieves the x, y, z values for the point at index i. More...
|
|
static bool | isNumeric (DataType type) |
| Returns true if the specified data type is numeric. More...
|
|
Attribute for point cloud data pair of name and size in bytes.
- Since
- QGIS 3.18
Definition at line 40 of file qgspointcloudattribute.h.
◆ DataType
Systems of unit measurement.
Enumerator |
---|
Char | Char 1 byte.
|
UChar | Unsigned char 1 byte.
|
Short | Short int 2 bytes.
|
UShort | Unsigned short int 2 bytes.
|
Int32 | Int32 4 bytes.
|
UInt32 | Unsigned int32 4 bytes.
|
Int64 | Int64 8 bytes.
|
UInt64 | Unsigned int64 8 bytes.
|
Float | Float 4 bytes.
|
Double | Double 8 bytes.
|
Definition at line 44 of file qgspointcloudattribute.h.
◆ QgsPointCloudAttribute() [1/2]
QgsPointCloudAttribute::QgsPointCloudAttribute |
( |
| ) |
|
|
default |
◆ QgsPointCloudAttribute() [2/2]
QgsPointCloudAttribute::QgsPointCloudAttribute |
( |
const QString & |
name, |
|
|
DataType |
type |
|
) |
| |
◆ convertValueToDouble()
double QgsPointCloudAttribute::convertValueToDouble |
( |
const char * |
ptr | ) |
const |
Returns the attribute's value as a double for data pointed to by ptr.
- Note
- Not available in Python binding
- Since
- QGIS 3.26
Definition at line 251 of file qgspointcloudattribute.cpp.
◆ displayType()
QString QgsPointCloudAttribute::displayType |
( |
| ) |
const |
Returns the type to use when displaying this field.
This will be used when the full datatype with details has to displayed to the user.
- See also
- type()
Definition at line 52 of file qgspointcloudattribute.cpp.
◆ getAttributeMap()
QVariantMap QgsPointCloudAttribute::getAttributeMap |
( |
const char * |
data, |
|
|
std::size_t |
recordOffset, |
|
|
const QgsPointCloudAttributeCollection & |
attributeCollection |
|
) |
| |
|
static |
◆ getPointXYZ()
void QgsPointCloudAttribute::getPointXYZ |
( |
const char * |
ptr, |
|
|
int |
i, |
|
|
std::size_t |
pointRecordSize, |
|
|
int |
xOffset, |
|
|
QgsPointCloudAttribute::DataType |
xType, |
|
|
int |
yOffset, |
|
|
QgsPointCloudAttribute::DataType |
yType, |
|
|
int |
zOffset, |
|
|
QgsPointCloudAttribute::DataType |
zType, |
|
|
const QgsVector3D & |
indexScale, |
|
|
const QgsVector3D & |
indexOffset, |
|
|
double & |
x, |
|
|
double & |
y, |
|
|
double & |
z |
|
) |
| |
|
static |
◆ isNumeric()
◆ name()
QString QgsPointCloudAttribute::name |
( |
| ) |
const |
|
inline |
◆ size()
int QgsPointCloudAttribute::size |
( |
| ) |
const |
|
inline |
◆ type()
DataType QgsPointCloudAttribute::type |
( |
| ) |
const |
|
inline |
◆ variantType()
QVariant::Type QgsPointCloudAttribute::variantType |
( |
| ) |
const |
The documentation for this class was generated from the following files: