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
Returns the feedback object used to cancel rendering
Returns a reference to the context's render context.
Sets the current texture coordinates.
Sets the current texture
image
.Returns the current texture coordinates.
Returns the current texture image.
- feedback(self) QgsFeedback ¶
Returns the feedback object used to cancel rendering
Added in version 3.20.
- Return type:
- renderContext(self) QgsRenderContext ¶
Returns a reference to the context’s render context.
- Return type:
- setTextureCoordinates(self, textureX1: float, textureY1: float, textureX2: float, textureY2: float, textureX3: float, textureY3: float)¶
Sets the current texture coordinates.
See also
- Parameters:
textureX1 (float)
textureY1 (float)
textureX2 (float)
textureY2 (float)
textureX3 (float)
textureY3 (float)
- setTextureImage(self, image: QImage)¶
Sets the current texture
image
.See also
- Parameters:
image (QImage)
- textureCoordinates(self) Tuple[float, float, float, float, float, float] ¶
Returns the current texture coordinates.
See also
- Return type:
Tuple[float, float, float, float, float, float]
- textureImage(self) QImage ¶
Returns the current texture image.
See also
- Return type:
QImage