Class: QgsProfileRenderContext

Abstract base class for storage of elevation profiles.

Added in version 3.26.

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:

a0 (QgsProfileRenderContext)

distanceRange(self) QgsDoubleRange[source]

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[source]

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)[source]

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)[source]

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)[source]

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