Class: QgsTiledSceneRenderContext

Encapsulates the render context for a 2D tiled scene rendering operation.

Added in version 3.34.

class qgis.core.QgsTiledSceneRenderContext[source]

Bases: object

__init__(context: QgsRenderContext, feedback: QgsFeedback | None = None)

Constructor for QgsTiledSceneRenderContext.

Parameters:
feedback(self) QgsFeedback | None[source]

Returns the feedback object used to cancel rendering

Added in version 3.20.

Return type:

Optional[QgsFeedback]

renderContext(self) QgsRenderContext

Returns a reference to the context’s render context.

Return type:

QgsRenderContext

setTextureCoordinates(self, textureX1: float, textureY1: float, textureX2: float, textureY2: float, textureX3: float, textureY3: float)[source]

Sets the current texture coordinates.

Parameters:
  • textureX1 (float)

  • textureY1 (float)

  • textureX2 (float)

  • textureY2 (float)

  • textureX3 (float)

  • textureY3 (float)

setTextureImage(self, image: QImage)[source]

Sets the current texture image.

See also

textureImage()

Parameters:

image (QImage)

textureCoordinates(self)[source]

Returns the current texture coordinates.

textureImage(self) QImage[source]

Returns the current texture image.

Return type:

QImage