QGIS API Documentation
3.20.0-Odense (decaadbb31)
|
Point cloud layer specific subclass of QgsMapLayerElevationProperties. More...
#include <qgspointcloudlayerelevationproperties.h>
Public Member Functions | |
QgsPointCloudLayerElevationProperties (QObject *parent) | |
Constructor for QgsPointCloudLayerElevationProperties, with the specified parent object. More... | |
QgsDoubleRange | calculateZRange (QgsMapLayer *layer) const override |
Attempts to calculate the overall elevation or z range for the specified layer, using the settings defined by this elevation properties object. More... | |
bool | hasElevation () const override |
Returns true if the layer has an elevation or z component. More... | |
bool | isVisibleInZRange (const QgsDoubleRange &range) const override |
Returns true if the layer should be visible and rendered for the specified z range. More... | |
bool | readXml (const QDomElement &element, const QgsReadWriteContext &context) override |
Reads the elevation properties from a DOM element previously written by writeXml(). More... | |
void | setZOffset (double offset) |
Sets the z offset, which is a fixed offset amount which will be added to z values from the layer. More... | |
void | setZScale (double scale) |
Sets the z scale, which is a scaling factor which will be applied to z values from the layer. More... | |
QDomElement | writeXml (QDomElement &element, QDomDocument &doc, const QgsReadWriteContext &context) override |
Writes the properties to a DOM element, to be used later with readXml(). More... | |
double | zOffset () const |
Returns the z offset, which is a fixed offset amount which should be added to z values from the layer. More... | |
double | zScale () const |
Returns the z scale, which is a scaling factor which should be applied to z values from the layer. More... | |
Public Member Functions inherited from QgsMapLayerElevationProperties | |
QgsMapLayerElevationProperties (QObject *parent) | |
Constructor for QgsMapLayerElevationProperties, with the specified parent object. More... | |
virtual QgsMapLayerElevationProperties::Flags | flags () const |
Returns flags associated to the elevation properties. More... | |
Additional Inherited Members | |
Public Types inherited from QgsMapLayerElevationProperties | |
enum | Flag { FlagDontInvalidateCachedRendersWhenRangeChanges = 1 } |
Flags attached to the elevation property. More... | |
Signals inherited from QgsMapLayerElevationProperties | |
void | changed () |
Emitted when the elevation properties have changed. More... | |
Point cloud layer specific subclass of QgsMapLayerElevationProperties.
Definition at line 33 of file qgspointcloudlayerelevationproperties.h.
QgsPointCloudLayerElevationProperties::QgsPointCloudLayerElevationProperties | ( | QObject * | parent | ) |
Constructor for QgsPointCloudLayerElevationProperties, with the specified parent object.
Definition at line 21 of file qgspointcloudlayerelevationproperties.cpp.
|
overridevirtual |
Attempts to calculate the overall elevation or z range for the specified layer, using the settings defined by this elevation properties object.
May return an infinite range if the extent could not be calculated.
Reimplemented from QgsMapLayerElevationProperties.
Definition at line 54 of file qgspointcloudlayerelevationproperties.cpp.
|
overridevirtual |
Returns true
if the layer has an elevation or z component.
Reimplemented from QgsMapLayerElevationProperties.
Definition at line 26 of file qgspointcloudlayerelevationproperties.cpp.
|
overridevirtual |
Returns true
if the layer should be visible and rendered for the specified z range.
Reimplemented from QgsMapLayerElevationProperties.
Definition at line 48 of file qgspointcloudlayerelevationproperties.cpp.
|
overridevirtual |
Reads the elevation properties from a DOM element previously written by writeXml().
Implements QgsMapLayerElevationProperties.
Definition at line 40 of file qgspointcloudlayerelevationproperties.cpp.
|
inline |
Sets the z offset, which is a fixed offset amount which will be added to z values from the layer.
This can be used to correct or manually adjust for incorrect elevation values in a point cloud layer.
Definition at line 73 of file qgspointcloudlayerelevationproperties.h.
|
inline |
Sets the z scale, which is a scaling factor which will be applied to z values from the layer.
This can be used to correct or manually adjust for incorrect elevation values in a point cloud layer, such as conversion of elevation values in feet to meters.
Definition at line 99 of file qgspointcloudlayerelevationproperties.h.
|
overridevirtual |
Writes the properties to a DOM element, to be used later with readXml().
Implements QgsMapLayerElevationProperties.
Definition at line 31 of file qgspointcloudlayerelevationproperties.cpp.
|
inline |
Returns the z offset, which is a fixed offset amount which should be added to z values from the layer.
This can be used to correct or manually adjust for incorrect elevation values in a point cloud layer.
Definition at line 61 of file qgspointcloudlayerelevationproperties.h.
|
inline |
Returns the z scale, which is a scaling factor which should be applied to z values from the layer.
This can be used to correct or manually adjust for incorrect elevation values in a point cloud layer, such as conversion of elevation values in feet to meters.
Definition at line 86 of file qgspointcloudlayerelevationproperties.h.