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 for QgsProfileRenderContext, with the specified embedded render context.

QgsProfileRenderContext(QgsProfileRenderContext)

Methods

distanceRange

Returns the range of distances to include in the render.

elevationRange

Returns the range of elevations to include in the render.

renderContext

Returns a reference to the component QgsRenderContext.

setDistanceRange

Sets the range of distances to include in the render.

setElevationRange

Sets the range of elevations to include in the render.

setWorldTransform

Sets the transform from world coordinates to painter coordinates.

worldTransform

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.

Return type:

QgsDoubleRange

elevationRange(self) QgsDoubleRange

Returns the range of elevations to include in the render.

Elevations outside this range should be excluded from the render.

Return type:

QgsDoubleRange

renderContext(self) QgsRenderContext

Returns a reference to the component QgsRenderContext.

Return type:

QgsRenderContext

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

distanceRange()

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

elevationRange()

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

worldTransform()

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.

Return type:

QTransform