QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
qgspointcloudextentrenderer.h
Go to the documentation of this file.
1/***************************************************************************
2 qgspointcloudextentrenderer.h
3 --------------------
4 begin : December 2020
5 copyright : (C) 2020 by Nyall Dawson
6 email : nyall dot dawson at gmail dot com
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18#ifndef QGSPOINTCLOUDEXTENTRENDERER_H
19#define QGSPOINTCLOUDEXTENTRENDERER_H
20
22#include "qgis_core.h"
23#include "qgis_sip.h"
24
25class QgsFillSymbol;
26
34{
35 public:
36
45
46 QString type() const override;
47 QgsPointCloudRenderer *clone() const override;
48 void renderBlock( const QgsPointCloudBlock *block, QgsPointCloudRenderContext &context ) override;
49 QDomElement save( QDomDocument &doc, const QgsReadWriteContext &context ) const override;
50
51 void startRender( QgsPointCloudRenderContext &context ) override;
52 void stopRender( QgsPointCloudRenderContext &context ) override;
53 QList<QgsLayerTreeModelLegendNode *> createLegendNodes( QgsLayerTreeLayer *nodeLayer ) override SIP_FACTORY;
54
58 static QgsPointCloudRenderer *create( QDomElement &element, const QgsReadWriteContext &context ) SIP_FACTORY;
59
63 void renderExtent( const QgsGeometry &extent, QgsPointCloudRenderContext &context );
64
68 static QgsFillSymbol *defaultFillSymbol() SIP_FACTORY;
69
75 QgsFillSymbol *fillSymbol() const;
76
84 void setFillSymbol( QgsFillSymbol *symbol SIP_TRANSFER );
85
86 private:
87
88 std::unique_ptr< QgsFillSymbol > mFillSymbol;
89
90};
91
92#endif // QGSPOINTCLOUDEXTENTRENDERER_H
A fill symbol type, for rendering Polygon and MultiPolygon geometries.
Definition: qgsfillsymbol.h:30
A geometry is the spatial representation of a feature.
Definition: qgsgeometry.h:162
Layer tree node points to a map layer.
Base class for storing raw data from point cloud nodes.
A renderer for 2d visualisation of point clouds which shows the dataset's extents using a fill symbol...
~QgsPointCloudExtentRenderer() override
Encapsulates the render context for a 2D point cloud rendering operation.
Abstract base class for 2d point cloud renderers.
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.
The class is used as a container of context for various read/write operations on other objects.
std::unique_ptr< GEOSGeometry, GeosDeleter > unique_ptr
Scoped GEOS pointer.
Definition: qgsgeos.h:73
#define SIP_TRANSFER
Definition: qgis_sip.h:36
#define SIP_FACTORY
Definition: qgis_sip.h:76