16#ifndef QGSANNOTATIONLAYER3DRENDERER_H
17#define QGSANNOTATIONLAYER3DRENDERER_H
64 sipType = sipType_QgsAnnotationLayer3DRenderer;
87 QString
type()
const override;
128 bool showCalloutLines()
const;
135 void setShowCalloutLines(
bool show );
145 SIP_SKIP void setCalloutLineColor(
const QColor &color );
153 SIP_SKIP QColor calloutLineColor()
const;
161 SIP_SKIP void setCalloutLineWidth(
double width );
169 SIP_SKIP double calloutLineWidth()
const;
190 static constexpr double DEFAULT_Z_OFFSET = 50;
194 double mZOffset = DEFAULT_Z_OFFSET;
195 bool mShowCalloutLines =
true;
196 QColor mCalloutLineColor { 0, 0, 0 };
197 double mCalloutLineWidth = 2;
198 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.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
_LayerRef< QgsMapLayer > QgsMapLayerRef