19 #ifndef QGSPOINTCLOUDLAYERELEVATIONPROPERTIES_H
20 #define QGSPOINTCLOUDLAYERELEVATIONPROPERTIES_H
22 #include "qgis_core.h"
61 double zOffset()
const {
return mZOffset; }
86 double zScale()
const {
return mZScale; }
103 double mZScale = 1.0;
104 double mZOffset = 0.0;
QgsRange which stores a range of double values.
Base class for storage of map layer elevation properties.
virtual QDomElement writeXml(QDomElement &element, QDomDocument &doc, const QgsReadWriteContext &context)=0
Writes the properties to a DOM element, to be used later with readXml().
virtual QgsDoubleRange calculateZRange(QgsMapLayer *layer) const
Attempts to calculate the overall elevation or z range for the specified layer, using the settings de...
virtual bool readXml(const QDomElement &element, const QgsReadWriteContext &context)=0
Reads the elevation properties from a DOM element previously written by writeXml().
virtual bool hasElevation() const
Returns true if the layer has an elevation or z component.
virtual bool isVisibleInZRange(const QgsDoubleRange &range) const
Returns true if the layer should be visible and rendered for the specified z range.
Base class for all map layer types.
Point cloud layer specific subclass of QgsMapLayerElevationProperties.
void setZOffset(double offset)
Sets the z offset, which is a fixed offset amount which will be added to z values from the layer.
double zOffset() const
Returns the z offset, which is a fixed offset amount which should be added to z values from the layer...
double zScale() const
Returns the z scale, which is a scaling factor which should be applied to z values from the layer.
void setZScale(double scale)
Sets the z scale, which is a scaling factor which will be applied to z values from the layer.
The class is used as a container of context for various read/write operations on other objects.