Class: QgsAnnotationLayer3DRenderer

3D renderers for annotation layers.

Added in version 4.0.

Class Hierarchy

Inheritance diagram of qgis._3d.QgsAnnotationLayer3DRenderer

Base classes

QgsAbstract3DRenderer

Base class for all renderers that participate in 3D views.

class qgis._3d.QgsAnnotationLayer3DRenderer[source]

Bases: QgsAbstract3DRenderer

altitudeClamping(self) Qgis.AltitudeClamping[source]

Returns the altitude clamping method, which determines the vertical position of annotations.

Return type:

Qgis.AltitudeClamping

layer(self) QgsAnnotationLayer | None[source]

Returns the annotation layer associated with the renderer.

See also

setLayer()

Return type:

Optional[QgsAnnotationLayer]

setAltitudeClamping(self, clamping: Qgis.AltitudeClamping)[source]

Sets the altitude clamping method, which determines the vertical position of annotations.

Parameters:

clamping (Qgis.AltitudeClamping)

setLayer(self, layer: QgsAnnotationLayer | None)[source]

Sets the annotation layer associated with the renderer.

See also

layer()

Parameters:

layer (Optional[QgsAnnotationLayer])

setShowCalloutLines(self, show: bool)[source]

Sets whether callout lines are shown, vertically joining the annotations to the terrain.

Parameters:

show (bool)

setTextFormat(self, format: QgsTextFormat)[source]

Sets the text format to use for rendering text annotations in 3D.

See also

textFormat()

Parameters:

format (QgsTextFormat)

setZOffset(self, offset: float)[source]

Sets the z offset, which is a fixed offset amount which will be added to z values for the annotations.

See also

zOffset()

Parameters:

offset (float)

showCalloutLines(self) bool[source]

Returns True if callout lines are shown, vertically joining the annotations to the terrain.

Return type:

bool

textFormat(self) QgsTextFormat[source]

Returns the text format to use for rendering text annotations in 3D.

See also

setTextFormat()

Return type:

QgsTextFormat

zOffset(self) float[source]

Returns the z offset, which is a fixed offset amount which should be added to z values for the annotations.

See also

setZOffset()

Return type:

float