17#ifndef QGSPROJECTELEVATIONPROPERTIES_H
18#define QGSPROJECTELEVATIONPROPERTIES_H
156 void setElevationFilterRangeSize(
double size );
165 void setInvertElevationFilter(
bool invert );
189 std::unique_ptr< QgsAbstractTerrainProvider > mTerrainProvider;
191 double mElevationFilterRangeSize = -1;
192 bool mInvertElevationFilter =
false;
Abstract base class for terrain providers.
QgsRange which stores a range of double values.
bool readXml(const QDomElement &element, const QgsReadWriteContext &context)
Reads the property state from a DOM element.
void reset()
Resets the properties to a default state.
QgsDoubleRange elevationRange() const
Returns the project's elevation range, which indicates the upper and lower elevation limits associate...
QgsProjectElevationProperties(QObject *parent=nullptr)
Constructor for QgsProjectElevationProperties with the specified parent object.
QDomElement writeXml(QDomDocument &document, const QgsReadWriteContext &context) const
Returns a DOM element representing the properties.
~QgsProjectElevationProperties() override
QgsAbstractTerrainProvider * terrainProvider()
Returns the project's terrain provider.
void elevationRangeChanged(const QgsDoubleRange &range)
Emitted when the project's elevation is changed.
double elevationFilterRangeSize() const
Returns the fixed size for elevation range filtering in the project, used when interactively filterin...
void changed()
Emitted when the elevation properties change.
void resolveReferences(const QgsProject *project)
Resolves reference to layers from stored layer ID.
void setTerrainProvider(QgsAbstractTerrainProvider *provider)
Sets the project's terrain provider.
bool invertElevationFilter() const
Returns true if the elevation range filter slider should be inverted for this project.
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
A container for the context for various read/write operations on objects.