Class: QgsRenderedItemDetails

Base class for detailed information about a rendered item.

Added in version 3.22.

Class Hierarchy

Inheritance diagram of qgis.core.QgsRenderedItemDetails

Subclasses

QgsRenderedAnnotationItemDetails

Contains information about a rendered annotation item.

QgsRenderedLayerStatistics

Contains computed statistics for a layer render.

Methods

boundingBox

Returns the bounding box of the item (in map units).

layerId

Returns the layer ID of the associated map layer.

setBoundingBox

Sets the bounding box of the item (in map units).

class qgis.core.QgsRenderedItemDetails[source]

Bases: object

__init__(layerId: str | None)

Constructor for QgsRenderedItemDetails.

Parameters:

layerId (Optional[str])

__init__(a0: QgsRenderedItemDetails)
Parameters:

a0 (QgsRenderedItemDetails)

boundingBox(self) QgsRectangle[source]

Returns the bounding box of the item (in map units).

See also

setBoundingBox()

Return type:

QgsRectangle

layerId(self) str[source]

Returns the layer ID of the associated map layer.

Return type:

str

setBoundingBox(self, bounds: QgsRectangle)[source]

Sets the bounding box of the item (in map units).

See also

boundingBox()

Parameters:

bounds (QgsRectangle)