Class: QgsPointCloudAttribute¶
- class qgis.core.QgsPointCloudAttribute¶
Bases:
sip.wrapper
Attribute for point cloud data pair of name and size in bytes
New in version 3.18.
QgsPointCloudAttribute() Ctor
QgsPointCloudAttribute(name: str, type: QgsPointCloudAttribute.DataType) Ctor
QgsPointCloudAttribute(
QgsPointCloudAttribute
)Methods
Returns the type to use when displaying this field.
Returns
True
if the specified datatype
is numeric.Returns name of the attribute
Returns size of the attribute in bytes
Returns the data type
Returns the most suitable equivalent QVariant data type to this attribute type.
Attributes
- Char = 0¶
- class DataType¶
Bases:
int
- Double = 9¶
- Float = 8¶
- Int32 = 4¶
- Int64 = 6¶
- Short = 2¶
- UChar = 1¶
- UInt32 = 5¶
- UInt64 = 7¶
- UShort = 3¶
- displayType(self) str ¶
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
- Return type
str
- isNumeric(type: QgsPointCloudAttribute.DataType) bool ¶
Returns
True
if the specified datatype
is numeric.- Parameters
type (QgsPointCloudAttribute.DataType) –
- Return type
bool
- name(self) str ¶
Returns name of the attribute
- Return type
str
- size(self) int ¶
Returns size of the attribute in bytes
- Return type
int
- type(self) QgsPointCloudAttribute.DataType ¶
Returns the data type
See also
- Return type