QGIS API Documentation 3.36.0-Maidenhead (09951dc0acf)
|
Contains elevation properties for a QgsProject. More...
#include <qgsprojectelevationproperties.h>
Signals | |
void | changed () |
Emitted when the elevation properties change. | |
Public Member Functions | |
QgsProjectElevationProperties (QObject *parent=nullptr) | |
Constructor for QgsProjectElevationProperties with the specified parent object. | |
~QgsProjectElevationProperties () override | |
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. | |
void | resolveReferences (const QgsProject *project) |
Resolves reference to layers from stored layer ID. | |
void | setTerrainProvider (QgsAbstractTerrainProvider *provider) |
Sets the project's terrain provider. | |
QgsAbstractTerrainProvider * | terrainProvider () |
Returns the project's terrain provider. | |
QDomElement | writeXml (QDomDocument &document, const QgsReadWriteContext &context) const |
Returns a DOM element representing the properties. | |
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 24 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 45 of file qgsprojectelevationproperties.cpp.
void QgsProjectElevationProperties::reset | ( | ) |
Resets the properties to a default state.
Definition at line 33 of file qgsprojectelevationproperties.cpp.
void QgsProjectElevationProperties::resolveReferences | ( | const QgsProject * | project | ) |
Resolves reference to layers from stored layer ID.
Definition at line 39 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 90 of file qgsprojectelevationproperties.cpp.
QgsAbstractTerrainProvider * QgsProjectElevationProperties::terrainProvider | ( | ) |
Returns the project's terrain provider.
Definition at line 85 of file qgsprojectelevationproperties.cpp.
QDomElement QgsProjectElevationProperties::writeXml | ( | QDomDocument & | document, |
const QgsReadWriteContext & | context | ||
) | const |
Returns a DOM element representing the properties.
Definition at line 71 of file qgsprojectelevationproperties.cpp.