Class: QgsAnnotationLayer3DRenderer¶
3D renderers for annotation layers.
Added in version 4.0.
Class Hierarchy¶
Base classes¶
Base class for all renderers that participate in 3D views. |
Methods
Returns the altitude clamping method, which determines the vertical position of annotations. |
|
Returns the annotation layer associated with the renderer. |
|
Sets the altitude clamping method, which determines the vertical position of annotations. |
|
Sets the annotation layer associated with the renderer. |
|
Sets whether callout lines are shown, vertically joining the annotations to the terrain. |
|
Sets the z offset, which is a fixed offset amount which will be added to z values for the annotations. |
|
Returns |
|
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.
See also
- Return type:
- layer(self) QgsAnnotationLayer | None [source]¶
Returns the annotation layer associated with the renderer.
See also
- Return type:
Optional[QgsAnnotationLayer]
- setAltitudeClamping(self, clamping: Qgis.AltitudeClamping)[source]¶
Sets the altitude
clamping
method, which determines the vertical position of annotations.See also
- Parameters:
clamping (Qgis.AltitudeClamping)
- setLayer(self, layer: QgsAnnotationLayer | None)[source]¶
Sets the annotation layer associated with the renderer.
See also
- Parameters:
layer (Optional[QgsAnnotationLayer])
- setShowCalloutLines(self, show: bool)[source]¶
Sets whether callout lines are shown, vertically joining the annotations to the terrain.
See also
- 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
- Parameters:
offset (float)
- showCalloutLines(self) bool [source]¶
Returns
True
if callout lines are shown, vertically joining the annotations to the terrain.See also
- Return type:
bool