Class: QgsProfileRenderContext¶
- class qgis.core.QgsProfileRenderContext¶
Bases:
sip.wrapper
Abstract base class for storage of elevation profiles.
New in version 3.26.
QgsProfileRenderContext(context:
QgsRenderContext
) Constructor forQgsProfileRenderContext
, with the specified embedded rendercontext
.QgsProfileRenderContext(
QgsProfileRenderContext
)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
QgsRenderContext
.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.
- distanceRange(self) QgsDoubleRange ¶
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 ¶
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)¶
Sets the
range
of 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)¶
Sets the
range
of 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)¶
Sets the
transform
from 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