mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-08 00:05:32 -04:00
Run clang-tidy modernize-use-override to remove all the redundant virtual keywords from overridden methods, and add some missing overrides. Another benefit is that this has also added the overrides on destructors, which will cause a build failure if a base class is missing a virtual destructor.
89 lines
2.9 KiB
Plaintext
89 lines
2.9 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/symbology/qgspointclusterrenderer.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
class QgsPointClusterRenderer: QgsPointDistanceRenderer
|
|
{
|
|
%Docstring
|
|
A renderer that automatically clusters points with the same geographic position.
|
|
|
|
.. versionadded:: 3.0
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgspointclusterrenderer.h"
|
|
%End
|
|
public:
|
|
|
|
QgsPointClusterRenderer();
|
|
|
|
virtual QgsPointClusterRenderer *clone() const /Factory/;
|
|
|
|
virtual void startRender( QgsRenderContext &context, const QgsFields &fields );
|
|
|
|
virtual void stopRender( QgsRenderContext &context );
|
|
|
|
virtual QDomElement save( QDomDocument &doc, const QgsReadWriteContext &context );
|
|
|
|
virtual QSet<QString> usedAttributes( const QgsRenderContext &context ) const;
|
|
|
|
|
|
static QgsFeatureRenderer *create( QDomElement &symbologyElem, const QgsReadWriteContext &context ) /Factory/;
|
|
%Docstring
|
|
Creates a renderer from XML element
|
|
|
|
:rtype: QgsFeatureRenderer
|
|
%End
|
|
|
|
QgsMarkerSymbol *clusterSymbol();
|
|
%Docstring
|
|
Returns the symbol used for rendering clustered groups (but not ownership of the symbol).
|
|
|
|
:rtype: QgsMarkerSymbol
|
|
|
|
.. seealso:: :py:func:`setClusterSymbol()`
|
|
%End
|
|
|
|
void setClusterSymbol( QgsMarkerSymbol *symbol /Transfer/ );
|
|
%Docstring
|
|
Sets the symbol for rendering clustered groups.
|
|
:param symbol: new cluster symbol. Ownership is transferred to the renderer.
|
|
|
|
.. seealso:: :py:func:`clusterSymbol()`
|
|
%End
|
|
|
|
static QgsPointClusterRenderer *convertFromRenderer( const QgsFeatureRenderer *renderer ) /Factory/;
|
|
%Docstring
|
|
Creates a QgsPointClusterRenderer from an existing renderer.
|
|
|
|
:return: a new renderer if the conversion was possible, otherwise None.
|
|
:rtype: QgsPointClusterRenderer
|
|
|
|
%End
|
|
|
|
private:
|
|
QgsPointClusterRenderer( const QgsPointClusterRenderer & );
|
|
QgsPointClusterRenderer &operator=( const QgsPointClusterRenderer & );
|
|
%Docstring
|
|
|
|
:rtype: QgsPointClusterRenderer
|
|
%End
|
|
virtual void drawGroup( QPointF centerPoint, QgsRenderContext &context, const QgsPointDistanceRenderer::ClusteredGroup &group ) ;
|
|
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/symbology/qgspointclusterrenderer.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|