Class: QgsProjectElevationProperties¶
- class qgis.core.QgsProjectElevationProperties¶
Bases:
PyQt5.QtCore.QObject
Contains elevation properties for a
QgsProject
.New in version 3.26.
QgsProjectElevationProperties(parent: QObject = None) Constructor for
QgsProjectElevationProperties
with the specifiedparent
object.Methods
Reads the property state from a DOM
element
.Resets the properties to a default state.
Resolves reference to layers from stored layer ID.
Sets the project's terrain
provider
.Returns the project's terrain provider.
Returns a DOM element representing the properties.
Signals
Emitted when the elevation properties change.
- changed¶
Emitted when the elevation properties change. [signal]
- childEvent(self, QChildEvent)¶
- connectNotify(self, QMetaMethod)¶
- customEvent(self, QEvent)¶
- disconnectNotify(self, QMetaMethod)¶
- isSignalConnected(self, QMetaMethod) bool ¶
- readXml(self, element: QDomElement, context: QgsReadWriteContext) bool ¶
Reads the property state from a DOM
element
.See also
- Parameters
element (QDomElement) –
context (QgsReadWriteContext) –
- Return type
bool
- receivers(self, PYQT_SIGNAL) int ¶
- reset(self)¶
Resets the properties to a default state.
- resolveReferences(self, project: QgsProject)¶
Resolves reference to layers from stored layer ID.
- Parameters
project (QgsProject) –
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- setTerrainProvider(self, provider: QgsAbstractTerrainProvider)¶
Sets the project’s terrain
provider
.Ownership of
provider
is transferred to this object.See also
- Parameters
provider (QgsAbstractTerrainProvider) –
- terrainProvider(self) QgsAbstractTerrainProvider ¶
Returns the project’s terrain provider.
See also
- Return type
- timerEvent(self, QTimerEvent)¶
- writeXml(self, document: QDomDocument, context: QgsReadWriteContext) QDomElement ¶
Returns a DOM element representing the properties.
See also
- Parameters
document (QDomDocument) –
context (QgsReadWriteContext) –
- Return type
QDomElement