Class: QgsTiledSceneRenderContext

class qgis.core.QgsTiledSceneRenderContext

Bases: sip.wrapper

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

Added in version 3.34.

QgsTiledSceneRenderContext(context: QgsRenderContext, feedback: QgsFeedback = None) Constructor for QgsTiledSceneRenderContext.

Methods

feedback

Returns the feedback object used to cancel rendering

renderContext

Returns a reference to the context's render context.

setTextureCoordinates

Sets the current texture coordinates.

setTextureImage

Sets the current texture image.

textureCoordinates

Returns the current texture coordinates.

textureImage

Returns the current texture image.

feedback(self) QgsFeedback

Returns the feedback object used to cancel rendering

Added in version 3.20.

Return type:

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)

Sets the current texture coordinates.

Parameters:
  • textureX1 (float)

  • textureY1 (float)

  • textureX2 (float)

  • textureY2 (float)

  • textureX3 (float)

  • textureY3 (float)

setTextureImage(self, image: QImage)

Sets the current texture image.

See also

textureImage()

Parameters:

image (QImage)

textureCoordinates(self) Tuple[float, float, float, float, float, float]

Returns the current texture coordinates.

Return type:

Tuple[float, float, float, float, float, float]

textureImage(self) QImage

Returns the current texture image.

Return type:

QImage