18 #ifndef QGSPOINTDISPLACEMENTRENDERER_H 19 #define QGSPOINTDISPLACEMENTRENDERER_H 21 #include "qgis_core.h" 54 QSet<QString> usedAttributes( const
QgsRenderContext &context ) const override;
65 void setCircleWidth(
double width ) { mCircleWidth = width; }
144 std::unique_ptr< QgsMarkerSymbol > mCenterSymbol;
150 double mCircleWidth = 0.4;
154 double mCircleRadiusAddition = 0;
159 void calculateSymbolAndLabelPositions(
QgsSymbolRenderContext &symbolContext, QPointF centerPoint,
int nPosition,
double symbolDiagonal, QList<QPointF> &symbolPositions, QList<QPointF> &labelShifts,
double &circleRadius,
160 double &gridRadius,
int &gridSize )
const;
161 void drawCircle(
double radiusPainterUnits,
QgsSymbolRenderContext &context, QPointF centerPoint,
int nSymbols );
164 QList<QPointF> pointSymbolPositions,
int nSymbols );
165 void centralizeGrid( QList<QPointF> &pointSymbolPositions,
double radius,
int size )
const;
168 #endif // QGSPOINTDISPLACEMENTRENDERER_H An abstract base class for distance based point renderers (e.g., clusterer and displacement renderers...
The class is used as a container of context for various read/write operations on other objects...
Placement
Placement methods for dispersing points.
Container of fields for a vector layer.
double circleWidth() const
Returns the line width for the displacement group circle in mm.
A marker symbol type, for rendering Point and MultiPoint geometries.
void setCircleColor(const QColor &color)
Sets the color used for drawing the displacement group circle.
Place points in concentric rings around group.
Placement placement() const
Returns the placement method used for dispersing the points.
void setPlacement(Placement placement)
Sets the placement method used for dispersing the points.
Place points in a single ring around group.
QColor circleColor() const
Returns the color used for drawing the displacement group circle.
A renderer that automatically displaces points with the same geographic location. ...
Contains information about the context of a rendering operation.
QList< QgsPointDistanceRenderer::GroupedFeature > ClusteredGroup
A group of clustered points (ie features within the distance tolerance).
void setCircleRadiusAddition(double distance)
Sets a factor for increasing the ring size of displacement groups.
virtual QgsFeatureRenderer * clone() const =0
Create a deep copy of this renderer.
double circleRadiusAddition() const
Returns the factor for increasing the ring size of displacement groups.