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 specified parent object.

Methods

childEvent

connectNotify

customEvent

disconnectNotify

isSignalConnected

readXml

Reads the property state from a DOM element.

receivers

reset

Resets the properties to a default state.

resolveReferences

Resolves reference to layers from stored layer ID.

sender

senderSignalIndex

setTerrainProvider

Sets the project's terrain provider.

terrainProvider

Returns the project's terrain provider.

timerEvent

writeXml

Returns a DOM element representing the properties.

Signals

changed

pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL

changed

pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Parameters:
  • name (str = ...) –

  • revision (int = ...) –

  • arguments (Sequence = ...) –

Return type:

PYQT_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

writeXml()

Parameters:
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.

Parameters:

provider (QgsAbstractTerrainProvider) –

terrainProvider(self) QgsAbstractTerrainProvider

Returns the project’s terrain provider.

Return type:

QgsAbstractTerrainProvider

timerEvent(self, QTimerEvent)
writeXml(self, document: QDomDocument, context: QgsReadWriteContext) QDomElement

Returns a DOM element representing the properties.

See also

readXml()

Parameters:
Return type:

QDomElement