16#ifndef QGSANNOTATIONLAYER3DRENDERER_H
17#define QGSANNOTATIONLAYER3DRENDERER_H
78 QString
type()
const override;
119 bool showCalloutLines()
const;
126 void setShowCalloutLines(
bool show );
136 SIP_SKIP void setCalloutLineColor(
const QColor &color );
144 SIP_SKIP QColor calloutLineColor()
const;
152 SIP_SKIP void setCalloutLineWidth(
double width );
160 SIP_SKIP double calloutLineWidth()
const;
181 static constexpr double DEFAULT_Z_OFFSET = 50;
185 double mZOffset = DEFAULT_Z_OFFSET;
186 bool mShowCalloutLines =
true;
187 QColor mCalloutLineColor { 0, 0, 0 };
188 double mCalloutLineWidth = 2;
189 QgsTextFormat mTextFormat;
AltitudeClamping
Altitude clamping.
@ Relative
Elevation is relative to terrain height (final elevation = terrain elevation + feature elevation).
Base class for all renderers that participate in 3D views.
QgsAbstract3DRenderer()=default
3D renderers for annotation layers.
void setAltitudeClamping(Qgis::AltitudeClamping clamping)
Sets the altitude clamping method, which determines the vertical position of annotations.
Qt3DCore::QEntity * createEntity(Qgs3DMapSettings *map) const override
Returns a 3D entity that will be used to show renderer's data in 3D scene.
void writeXml(QDomElement &elem, const QgsReadWriteContext &context) const override
Writes renderer's properties to given XML element.
void readXml(const QDomElement &elem, const QgsReadWriteContext &context) override
Reads renderer's properties from given XML element.
Qgis::AltitudeClamping altitudeClamping() const
Returns the altitude clamping method, which determines the vertical position of annotations.
void resolveReferences(const QgsProject &project) override
Resolves references to other objects - second phase of loading - after readXml().
QgsAnnotationLayer * layer() const
Returns the annotation layer associated with the renderer.
void setZOffset(double offset)
Sets the z offset, which is a fixed offset amount which will be added to z values for the annotations...
double zOffset() const
Returns the z offset, which is a fixed offset amount which should be added to z values for the annota...
QgsAnnotationLayer3DRenderer()
void setLayer(QgsAnnotationLayer *layer)
Sets the annotation layer associated with the renderer.
QgsAnnotationLayer3DRenderer * clone() const override
Returns a cloned instance.
Represents a map layer containing a set of georeferenced annotations, e.g.
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
A container for the context for various read/write operations on objects.
Container for all settings relating to text rendering.
_LayerRef< QgsMapLayer > QgsMapLayerRef