QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
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 class QgsFillSymbol;
26 
34 {
35  public:
36 
44  ~QgsPointCloudExtentRenderer() override;
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
QgsReadWriteContext
The class is used as a container of context for various read/write operations on other objects.
Definition: qgsreadwritecontext.h:34
QgsPointCloudRenderer::createLegendNodes
virtual QList< QgsLayerTreeModelLegendNode * > createLegendNodes(QgsLayerTreeLayer *nodeLayer)
Creates a set of legend nodes representing the renderer.
Definition: qgspointcloudrenderer.cpp:152
QgsPointCloudExtentRenderer
A renderer for 2d visualisation of point clouds which shows the dataset's extents using a fill symbol...
Definition: qgspointcloudextentrenderer.h:33
QgsPointCloudRenderer::clone
virtual QgsPointCloudRenderer * clone() const =0
Create a deep copy of this renderer.
QgsPointCloudBlock
Base class for storing raw data from point cloud nodes.
Definition: qgspointcloudblock.h:38
QgsPointCloudRenderer::startRender
virtual void startRender(QgsPointCloudRenderContext &context)
Must be called when a new render cycle is started.
Definition: qgspointcloudrenderer.cpp:88
SIP_FACTORY
#define SIP_FACTORY
Definition: qgis_sip.h:76
QgsPointCloudRenderer::save
virtual QDomElement save(QDomDocument &doc, const QgsReadWriteContext &context) const =0
Saves the renderer configuration to an XML element.
QgsPointCloudRenderer::renderBlock
virtual void renderBlock(const QgsPointCloudBlock *block, QgsPointCloudRenderContext &context)=0
Renders a block of point cloud data using the specified render context.
QgsPointCloudRenderContext
Encapsulates the render context for a 2D point cloud rendering operation.
Definition: qgspointcloudrenderer.h:41
QgsLayerTreeLayer
Layer tree node points to a map layer.
Definition: qgslayertreelayer.h:43
qgis_sip.h
SIP_TRANSFER
#define SIP_TRANSFER
Definition: qgis_sip.h:36
QgsPointCloudRenderer::stopRender
virtual void stopRender(QgsPointCloudRenderContext &context)
Must be called when a render cycle has finished, to allow the renderer to clean up.
Definition: qgspointcloudrenderer.cpp:115
QgsGeometry
A geometry is the spatial representation of a feature.
Definition: qgsgeometry.h:124
QgsPointCloudRenderer::type
virtual QString type() const =0
Returns the identifier of the renderer type.
QgsFillSymbol
A fill symbol type, for rendering Polygon and MultiPolygon geometries.
Definition: qgsfillsymbol.h:29
QgsPointCloudRenderer
Abstract base class for 2d point cloud renderers.
Definition: qgspointcloudrenderer.h:296
qgspointcloudrenderer.h