Class: QgsMeshLayerElevationProperties

class qgis.core.QgsMeshLayerElevationProperties

Bases: QgsMapLayerElevationProperties

Mesh layer specific subclass of QgsMapLayerElevationProperties.

Added in version 3.26.

QgsMeshLayerElevationProperties(parent: QObject) Constructor for QgsMeshLayerElevationProperties, with the specified parent object.

Methods

calculateZRange

param layer:

childEvent

clone

rtype:

QgsMeshLayerElevationProperties

connectNotify

copyCommonProperties

Copies common properties from another object.

customEvent

disconnectNotify

elevationLimit

Returns the elevation limit, which is used when profileSymbology() is Qgis.ProfileSurfaceSymbology.FillBelow or Qgis.ProfileSurfaceSymbology.FillAbove to limit the fill to a specific elevation range.

fixedRange

Returns the fixed elevation range for the mesh.

flags

rtype:

QgsMapLayerElevationProperties.Flags

hasElevation

rtype:

bool

htmlSummary

rtype:

str

isSignalConnected

isVisibleInZRange

param range:

mode

Returns the elevation mode.

profileFillSymbol

Returns the fill symbol used to render the mesh profile in elevation profile plots.

profileLineSymbol

Returns the line symbol used to render the mesh profile in elevation profile plots.

profileSymbology

Returns the symbology option used to render the mesh profile in elevation profile plots.

readCommonProperties

Reads common class properties from a DOM element previously written by writeXml().

readXml

param element:

receivers

sender

senderSignalIndex

setElevationLimit

Sets the elevation limit, which is used when profileSymbology() is Qgis.ProfileSurfaceSymbology.FillBelow or Qgis.ProfileSurfaceSymbology.FillAbove to limit the fill to a specific elevation range.

setFixedRange

Sets the fixed elevation range for the mesh.

setMode

Sets the elevation mode.

setProfileFillSymbol

Sets the fill symbol used to render the mesh profile in elevation profile plots.

setProfileLineSymbol

Sets the line symbol used to render the mesh profile in elevation profile plots.

setProfileSymbology

Sets the symbology option used to render the mesh profile in elevation profile plots.

showByDefaultInElevationProfilePlots

rtype:

bool

timerEvent

writeCommonProperties

Writes common class properties to a DOM element, to be used later with readXml().

writeXml

param element:

calculateZRange(self, layer: QgsMapLayer) QgsDoubleRange
Parameters:

layer (QgsMapLayer)

Return type:

QgsDoubleRange

childEvent(self, QChildEvent)
clone(self) QgsMeshLayerElevationProperties
Return type:

QgsMeshLayerElevationProperties

connectNotify(self, QMetaMethod)
copyCommonProperties(self, other: QgsMapLayerElevationProperties)

Copies common properties from another object.

Added in version 3.26.

customEvent(self, QEvent)
disconnectNotify(self, QMetaMethod)
elevationLimit(self) float

Returns the elevation limit, which is used when profileSymbology() is Qgis.ProfileSurfaceSymbology.FillBelow or Qgis.ProfileSurfaceSymbology.FillAbove to limit the fill to a specific elevation range.

By default this is NaN, which indicates that there is no elevation limit.

Added in version 3.32.

Return type:

float

fixedRange(self) QgsDoubleRange

Returns the fixed elevation range for the mesh.

Note

This is only considered when mode() is Qgis.MeshElevationMode.FixedElevationRange.

Note

When a fixed range is set any zOffset() and zScale() is ignored.

See also

setFixedRange()

Added in version 3.38.

Return type:

QgsDoubleRange

flags(self) QgsMapLayerElevationProperties.Flags
Return type:

QgsMapLayerElevationProperties.Flags

hasElevation(self) bool
Return type:

bool

htmlSummary(self) str
Return type:

str

isSignalConnected(self, QMetaMethod) bool
isVisibleInZRange(self, range: QgsDoubleRange, layer: QgsMapLayer = None) bool
Parameters:
Return type:

bool

mode(self) Qgis.MeshElevationMode

Returns the elevation mode.

See also

setMode()

Added in version 3.38.

Return type:

Qgis.MeshElevationMode

profileFillSymbol(self) QgsFillSymbol

Returns the fill symbol used to render the mesh profile in elevation profile plots.

Return type:

QgsFillSymbol

profileLineSymbol(self) QgsLineSymbol

Returns the line symbol used to render the mesh profile in elevation profile plots.

Return type:

QgsLineSymbol

profileSymbology(self) Qgis.ProfileSurfaceSymbology

Returns the symbology option used to render the mesh profile in elevation profile plots.

Return type:

Qgis.ProfileSurfaceSymbology

readCommonProperties(self, element: QDomElement, context: QgsReadWriteContext)

Reads common class properties from a DOM element previously written by writeXml().

Added in version 3.26.

readXml(self, element: QDomElement, context: QgsReadWriteContext) bool
Parameters:
Return type:

bool

receivers(self, PYQT_SIGNAL) int
sender(self) QObject
senderSignalIndex(self) int
setElevationLimit(self, limit: float)

Sets the elevation limit, which is used when profileSymbology() is Qgis.ProfileSurfaceSymbology.FillBelow or Qgis.ProfileSurfaceSymbology.FillAbove to limit the fill to a specific elevation range.

Set to NaN to indicate that there is no elevation limit.

See also

elevationLimit()

Added in version 3.32.

Parameters:

limit (float)

setFixedRange(self, range: QgsDoubleRange)

Sets the fixed elevation range for the mesh.

Note

This is only considered when mode() is Qgis.MeshElevationMode.FixedElevationRange.

Note

When a fixed range is set any zOffset() and zScale() is ignored.

See also

fixedRange()

Added in version 3.38.

Parameters:

range (QgsDoubleRange)

setMode(self, mode: Qgis.MeshElevationMode)

Sets the elevation mode.

See also

mode()

Added in version 3.38.

Parameters:

mode (Qgis.MeshElevationMode)

setProfileFillSymbol(self, symbol: QgsFillSymbol)

Sets the fill symbol used to render the mesh profile in elevation profile plots.

Ownership of symbol is transferred to the plot.

Parameters:

symbol (QgsFillSymbol)

setProfileLineSymbol(self, symbol: QgsLineSymbol)

Sets the line symbol used to render the mesh profile in elevation profile plots.

Ownership of symbol is transferred to the plot.

Parameters:

symbol (QgsLineSymbol)

setProfileSymbology(self, symbology: Qgis.ProfileSurfaceSymbology)

Sets the symbology option used to render the mesh profile in elevation profile plots.

Parameters:

symbology (Qgis.ProfileSurfaceSymbology)

showByDefaultInElevationProfilePlots(self) bool
Return type:

bool

timerEvent(self, QTimerEvent)
writeCommonProperties(self, element: QDomElement, doc: QDomDocument, context: QgsReadWriteContext)

Writes common class properties to a DOM element, to be used later with readXml().

Added in version 3.26.

writeXml(self, element: QDomElement, doc: QDomDocument, context: QgsReadWriteContext) QDomElement
Parameters:
Return type:

QDomElement