Class: QgsProfileRenderContext¶
Abstract base class for storage of elevation profiles.
Added in version 3.26.
List of all members, including inherited members
Constructor
Methods
Returns the range of distances to include in the render. |
|
Returns the range of elevations to include in the render. |
|
Returns a reference to the component |
|
Sets the range of distances to include in the render. |
|
Sets the range of elevations to include in the render. |
|
Sets the transform from world coordinates to painter coordinates. |
|
Returns the transform from world coordinates to painter coordinates. |
- class qgis.core.QgsProfileRenderContext[source]¶
Bases:
object- __init__(context: QgsRenderContext)¶
Constructor for QgsProfileRenderContext, with the specified embedded render
context.- Parameters:
context (QgsRenderContext)
- __init__(a0: QgsProfileRenderContext)
- Parameters:
- distanceRange(self) QgsDoubleRange[source]¶
Returns the range of distances to include in the render.
Distances outside this range should be excluded from the render.
See also
- Return type:
- elevationRange(self) QgsDoubleRange[source]¶
Returns the range of elevations to include in the render.
Elevations outside this range should be excluded from the render.
See also
- Return type:
- renderContext(self) QgsRenderContext¶
Returns a reference to the component
QgsRenderContext.- Return type:
- setDistanceRange(self, range: QgsDoubleRange)[source]¶
Sets the
rangeof distances to include in the render.Distances outside this range will be excluded from the render.
See also
- Parameters:
range (QgsDoubleRange)
- setElevationRange(self, range: QgsDoubleRange)[source]¶
Sets the
rangeof elevations to include in the render.Elevations outside this range will be excluded from the render.
See also
- Parameters:
range (QgsDoubleRange)
- setWorldTransform(self, transform: QTransform)[source]¶
Sets the
transformfrom world coordinates to painter coordinates.This transform maps points in (distance, elevation) to (x, y) in painter coordinates.
See also
- Parameters:
transform (QTransform)
- worldTransform(self) QTransform¶
Returns the transform from world coordinates to painter coordinates.
This transform maps points in (distance, elevation) to (x, y) in painter coordinates.
See also
- Return type:
QTransform