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.

Methods

altitudeClamping

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

layer

Returns the annotation layer associated with the renderer.

setAltitudeClamping

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

setLayer

Sets the annotation layer associated with the renderer.

setShowCalloutLines

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

setZOffset

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

showCalloutLines

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

zOffset

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

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)

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

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