18 #ifndef QGSPOINTDISPLACEMENTRENDERER_H
19 #define QGSPOINTDISPLACEMENTRENDERER_H
39 virtual void toSld( QDomDocument& doc, QDomElement &element )
const;
55 QDomElement
save( QDomDocument& doc );
71 Q_DECL_DEPRECATED
void setDisplacementGroups(
const QList<QMap<QgsFeatureId, QgsFeature> >& list ) { Q_UNUSED( list ); }
110 QString mLabelAttributeName;
128 double mCircleRadiusAddition;
132 double mMaxLabelScaleDenominator;
134 typedef QMap<QgsFeatureId, QgsFeature> DisplacementGroup;
136 QList<DisplacementGroup> mDisplacementGroups;
138 QMap<QgsFeatureId, int> mGroupIndex;
142 QSet<QgsFeatureId> mSelectedFeatures;
147 void printInfoDisplacementGroups();
153 void renderPoint(
const QPointF& point,
QgsSymbolV2RenderContext& context,
const QList<QgsMarkerSymbolV2*>& symbols,
154 const QStringList& labels );
157 void calculateSymbolAndLabelPositions(
const QPointF& centerPoint,
int nPosition,
double radius,
double symbolDiagonal, QList<QPointF>& symbolPositions, QList<QPointF>& labelShifts )
const;
158 void drawGroup(
const DisplacementGroup& group,
QgsRenderContext& context );
159 void drawCircle(
double radiusPainterUnits,
QgsSymbolV2RenderContext& context,
const QPointF& centerPoint,
int nSymbols );
160 void drawSymbols(
const QgsFeature& f,
QgsRenderContext& context,
const QList<QgsMarkerSymbolV2*>& symbolList,
const QList<QPointF>& symbolPositions,
bool selected =
false );
161 void drawLabels(
const QPointF& centerPoint,
QgsSymbolV2RenderContext& context,
const QList<QPointF>& labelShifts,
const QStringList& labelList );
166 #endif // QGSPOINTDISPLACEMENTRENDERER_H