QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Contains elevation properties for a QgsProject. More...
#include <qgsprojectelevationproperties.h>
Signals | |
void | changed () |
Emitted when the elevation properties change. More... | |
Public Member Functions | |
QgsProjectElevationProperties (QObject *parent=nullptr) | |
Constructor for QgsProjectElevationProperties with the specified parent object. More... | |
~QgsProjectElevationProperties () override | |
bool | readXml (const QDomElement &element, const QgsReadWriteContext &context) |
Reads the property state from a DOM element. More... | |
void | reset () |
Resets the properties to a default state. More... | |
void | resolveReferences (const QgsProject *project) |
Resolves reference to layers from stored layer ID. More... | |
void | setTerrainProvider (QgsAbstractTerrainProvider *provider) |
Sets the project's terrain provider. More... | |
QgsAbstractTerrainProvider * | terrainProvider () |
Returns the project's terrain provider. More... | |
QDomElement | writeXml (QDomDocument &document, const QgsReadWriteContext &context) const |
Returns a DOM element representing the properties. More... | |
Contains elevation properties for a QgsProject.
Definition at line 38 of file qgsprojectelevationproperties.h.
QgsProjectElevationProperties::QgsProjectElevationProperties | ( | QObject * | parent = nullptr | ) |
Constructor for QgsProjectElevationProperties with the specified parent object.
Definition at line 23 of file qgsprojectelevationproperties.cpp.
|
overridedefault |
|
signal |
Emitted when the elevation properties change.
bool QgsProjectElevationProperties::readXml | ( | const QDomElement & | element, |
const QgsReadWriteContext & | context | ||
) |
Reads the property state from a DOM element.
Definition at line 44 of file qgsprojectelevationproperties.cpp.
void QgsProjectElevationProperties::reset | ( | ) |
Resets the properties to a default state.
Definition at line 32 of file qgsprojectelevationproperties.cpp.
void QgsProjectElevationProperties::resolveReferences | ( | const QgsProject * | project | ) |
Resolves reference to layers from stored layer ID.
Definition at line 38 of file qgsprojectelevationproperties.cpp.
void QgsProjectElevationProperties::setTerrainProvider | ( | QgsAbstractTerrainProvider * | provider | ) |
Sets the project's terrain provider.
Ownership of provider is transferred to this object.
Definition at line 89 of file qgsprojectelevationproperties.cpp.
QgsAbstractTerrainProvider * QgsProjectElevationProperties::terrainProvider | ( | ) |
Returns the project's terrain provider.
Definition at line 84 of file qgsprojectelevationproperties.cpp.
QDomElement QgsProjectElevationProperties::writeXml | ( | QDomDocument & | document, |
const QgsReadWriteContext & | context | ||
) | const |
Returns a DOM element representing the properties.
Definition at line 70 of file qgsprojectelevationproperties.cpp.