QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
|
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 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.