18#ifndef QGSPOINTCLOUDEXTENTRENDERER_H
19#define QGSPOINTCLOUDEXTENTRENDERER_H
46 QString
type()
const override;
A fill symbol type, for rendering Polygon and MultiPolygon geometries.
A geometry is the spatial representation of a feature.
Layer tree node points to a map layer.
Base class for storing raw data from point cloud nodes.
QgsFillSymbol * fillSymbol() const
Returns the symbol used to render the cloud's extent.
static QgsPointCloudRenderer * create(QDomElement &element, const QgsReadWriteContext &context)
Creates an extent renderer from an XML element.
~QgsPointCloudExtentRenderer() override
void setFillSymbol(QgsFillSymbol *symbol)
Sets the symbol used to render the cloud's extent.
void renderExtent(const QgsGeometry &extent, QgsPointCloudRenderContext &context)
Renders a polygon extent geometry to the specified render context.
static QgsFillSymbol * defaultFillSymbol()
Returns a new instance of the default fill symbol to use for showing point cloud extents.
void renderLabel(const QRectF &extent, const QString &text, QgsPointCloudRenderContext &context) const
Renders a label inside the specified extent rectangle.
QgsPointCloudExtentRenderer(QgsFillSymbol *symbol=nullptr)
Constructor for QgsPointCloudExtentRenderer.
Encapsulates the render context for a 2D point cloud rendering operation.
virtual QDomElement save(QDomDocument &doc, const QgsReadWriteContext &context) const =0
Saves the renderer configuration to an XML element.
virtual void renderBlock(const QgsPointCloudBlock *block, QgsPointCloudRenderContext &context)=0
Renders a block of point cloud data using the specified render context.
virtual QString type() const =0
Returns the identifier of the renderer type.
virtual QgsPointCloudRenderer * clone() const =0
Create a deep copy of this renderer.
virtual void startRender(QgsPointCloudRenderContext &context)
Must be called when a new render cycle is started.
virtual void stopRender(QgsPointCloudRenderContext &context)
Must be called when a render cycle has finished, to allow the renderer to clean up.
virtual QList< QgsLayerTreeModelLegendNode * > createLegendNodes(QgsLayerTreeLayer *nodeLayer)
Creates a set of legend nodes representing the renderer.
A container for the context for various read/write operations on objects.