Class: QgsMeshLayerElevationProperties¶
Mesh layer specific subclass of
QgsMapLayerElevationProperties.
Added in version 3.26.
Class Hierarchy¶
Base classes¶
Base class for storage of map layer elevation properties.  | 
|
Methods
Returns the elevation limit, which is used when   | 
|
Returns the fixed elevation range for the mesh.  | 
|
Returns the fixed elevation range for each group.  | 
|
Returns the elevation mode.  | 
|
Returns the fill symbol used to render the mesh profile in elevation profile plots.  | 
|
Returns the line symbol used to render the mesh profile in elevation profile plots.  | 
|
Returns the symbology option used to render the mesh profile in elevation profile plots.  | 
|
Sets the elevation limit, which is used when   | 
|
Sets the fixed elevation range for the mesh.  | 
|
Sets the fixed elevation range for each group.  | 
|
Sets the elevation mode.  | 
|
Sets the fill symbol used to render the mesh profile in elevation profile plots.  | 
|
Sets the line symbol used to render the mesh profile in elevation profile plots.  | 
|
Sets the symbology option used to render the mesh profile in elevation profile plots.  | 
- class qgis.core.QgsMeshLayerElevationProperties[source]¶
 Bases:
QgsMapLayerElevationProperties- __init__(parent: QObject | None)
 Constructor for QgsMeshLayerElevationProperties, with the specified
parentobject.- Parameters:
 parent (Optional[QObject])
- elevationLimit(self) float[source]¶
 Returns the elevation limit, which is used when
profileSymbology()isQgis.ProfileSurfaceSymbology.FillBelow orQgis.ProfileSurfaceSymbology.FillAbove to limit the fill to a specific elevation range.By default this is NaN, which indicates that there is no elevation limit.
See also
Added in version 3.32.
- Return type:
 float
- fixedRange(self) QgsDoubleRange[source]¶
 Returns the fixed elevation range for the mesh.
Note
When a fixed range is set any
zOffset()andzScale()is ignored.See also
Added in version 3.38.
- Return type:
 
- fixedRangePerGroup(self) Dict[int, QgsDoubleRange]¶
 Returns the fixed elevation range for each group.
Note
When a fixed range is set any
zOffset()andzScale()is ignored.See also
Added in version 3.38.
- Return type:
 Dict[int, QgsDoubleRange]
- mode(self) Qgis.MeshElevationMode[source]¶
 Returns the elevation mode.
See also
Added in version 3.38.
- Return type:
 
- profileFillSymbol(self) QgsFillSymbol | None[source]¶
 Returns the fill symbol used to render the mesh profile in elevation profile plots.
See also
- Return type:
 Optional[QgsFillSymbol]
- profileLineSymbol(self) QgsLineSymbol | None[source]¶
 Returns the line symbol used to render the mesh profile in elevation profile plots.
See also
- Return type:
 Optional[QgsLineSymbol]
- profileSymbology(self) Qgis.ProfileSurfaceSymbology[source]¶
 Returns the symbology option used to render the mesh profile in elevation profile plots.
See also
- Return type:
 
- setElevationLimit(self, limit: float)[source]¶
 Sets the elevation
limit, which is used whenprofileSymbology()isQgis.ProfileSurfaceSymbology.FillBelow orQgis.ProfileSurfaceSymbology.FillAbove to limit the fill to a specific elevation range.Set to NaN to indicate that there is no elevation limit.
See also
Added in version 3.32.
- Parameters:
 limit (float)
- setFixedRange(self, range: QgsDoubleRange)[source]¶
 Sets the fixed elevation
rangefor the mesh.Note
When a fixed range is set any
zOffset()andzScale()is ignored.See also
Added in version 3.38.
- Parameters:
 range (QgsDoubleRange)
- setFixedRangePerGroup(self, ranges: Dict[int, QgsDoubleRange])[source]¶
 Sets the fixed elevation range for each group.
Note
When a fixed range is set any
zOffset()andzScale()is ignored.See also
Added in version 3.38.
- Parameters:
 ranges (Dict[int, QgsDoubleRange])
- setMode(self, mode: Qgis.MeshElevationMode)[source]¶
 Sets the elevation
mode.See also
Added in version 3.38.
- Parameters:
 mode (Qgis.MeshElevationMode)
- setProfileFillSymbol(self, symbol: QgsFillSymbol | None)[source]¶
 Sets the fill
symbolused to render the mesh profile in elevation profile plots.Ownership of
symbolis transferred to the plot.See also
- Parameters:
 symbol (Optional[QgsFillSymbol])
- setProfileLineSymbol(self, symbol: QgsLineSymbol | None)[source]¶
 Sets the line
symbolused to render the mesh profile in elevation profile plots.Ownership of
symbolis transferred to the plot.See also
- Parameters:
 symbol (Optional[QgsLineSymbol])
- setProfileSymbology(self, symbology: Qgis.ProfileSurfaceSymbology)[source]¶
 Sets the
symbologyoption used to render the mesh profile in elevation profile plots.See also
- Parameters:
 symbology (Qgis.ProfileSurfaceSymbology)