QGIS API Documentation  3.18.1-Zürich (202f1bf7e5)
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 
21 #include "qgspointcloudrenderer.h"
22 #include "qgis_core.h"
23 #include "qgis_sip.h"
24 
25 #include "qgssymbol.h"
26 
34 {
35  public:
36 
44 
45  QString type() const override;
46  QgsPointCloudRenderer *clone() const override;
47  void renderBlock( const QgsPointCloudBlock *block, QgsPointCloudRenderContext &context ) override;
48  QDomElement save( QDomDocument &doc, const QgsReadWriteContext &context ) const override;
49 
50  void startRender( QgsPointCloudRenderContext &context ) override;
51  void stopRender( QgsPointCloudRenderContext &context ) override;
52  QList<QgsLayerTreeModelLegendNode *> createLegendNodes( QgsLayerTreeLayer *nodeLayer ) override SIP_FACTORY;
53 
57  static QgsPointCloudRenderer *create( QDomElement &element, const QgsReadWriteContext &context ) SIP_FACTORY;
58 
62  void renderExtent( const QgsGeometry &extent, QgsPointCloudRenderContext &context );
63 
67  static QgsFillSymbol *defaultFillSymbol() SIP_FACTORY;
68 
74  QgsFillSymbol *fillSymbol() const;
75 
83  void setFillSymbol( QgsFillSymbol *symbol SIP_TRANSFER );
84 
85  private:
86 
87  std::unique_ptr< QgsFillSymbol > mFillSymbol;
88 
89 };
90 
91 #endif // QGSPOINTCLOUDEXTENTRENDERER_H
A fill symbol type, for rendering Polygon and MultiPolygon geometries.
Definition: qgssymbol.h:1307
A geometry is the spatial representation of a feature.
Definition: qgsgeometry.h:124
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...
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 QgsPointCloudRenderer * clone() const =0
Create a deep copy of this renderer.
virtual QString type() const =0
Returns the identifier of the renderer type.
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.
#define SIP_TRANSFER
Definition: qgis_sip.h:36
#define SIP_FACTORY
Definition: qgis_sip.h:76