QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
Attribute for point cloud data pair of name and size in bytes. More...
#include <qgspointcloudattribute.h>
Public Types | |
enum | DataType { Char , UChar , Short , UShort , Int32 , UInt32 , Int64 , UInt64 , Float , Double } |
Systems of unit measurement. More... | |
Public Member Functions | |
QgsPointCloudAttribute () | |
Ctor. More... | |
QgsPointCloudAttribute (const QString &name, DataType type) | |
Ctor. More... | |
double | convertValueToDouble (const char *ptr) const |
Returns the attribute's value as a double for data pointed to by ptr. More... | |
QString | displayType () const |
Returns the type to use when displaying this field. More... | |
QString | name () const |
Returns name of the attribute. More... | |
int | size () const |
Returns size of the attribute in bytes. More... | |
DataType | type () const |
Returns the data type. More... | |
QVariant::Type | variantType () const |
Returns the most suitable equivalent QVariant data type to this attribute type. More... | |
Static Public Member Functions | |
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.
Definition at line 40 of file qgspointcloudattribute.h.
Systems of unit measurement.
Definition at line 44 of file qgspointcloudattribute.h.
|
default |
Ctor.
QgsPointCloudAttribute::QgsPointCloudAttribute | ( | const QString & | name, |
DataType | type | ||
) |
Ctor.
Definition at line 23 of file qgspointcloudattribute.cpp.
double QgsPointCloudAttribute::convertValueToDouble | ( | const char * | ptr | ) | const |
Returns the attribute's value as a double for data pointed to by ptr.
Definition at line 251 of file qgspointcloudattribute.cpp.
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.
Definition at line 52 of file qgspointcloudattribute.cpp.
|
static |
Retrieves all the attributes of a point.
Definition at line 273 of file qgspointcloudattribute.cpp.
|
static |
Retrieves the x, y, z values for the point at index i.
Definition at line 258 of file qgspointcloudattribute.cpp.
|
static |
Returns true
if the specified data type is numeric.
Definition at line 80 of file qgspointcloudattribute.cpp.
|
inline |
Returns name of the attribute.
Definition at line 64 of file qgspointcloudattribute.h.
|
inline |
Returns size of the attribute in bytes.
Definition at line 67 of file qgspointcloudattribute.h.
|
inline |
Returns the data type.
Definition at line 74 of file qgspointcloudattribute.h.
QVariant::Type QgsPointCloudAttribute::variantType | ( | ) | const |
Returns the most suitable equivalent QVariant data type to this attribute type.
Definition at line 30 of file qgspointcloudattribute.cpp.