15 #ifndef QGSINVERTEDPOLYGONRENDERER_H
16 #define QGSINVERTEDPOLYGONRENDERER_H
18 #include "qgis_core.h"
78 QString dump() const override;
79 QSet<QString> usedAttributes( const
QgsRenderContext &context ) const override;
80 bool filterNeedsGeometry() const override;
99 void setLegendSymbolItem( const QString &key,
QgsSymbol *symbol ) override;
101 bool legendSymbolItemsCheckable() const override;
102 bool legendSymbolItemChecked( const QString &key ) override;
103 void checkLegendSymbolItem( const QString &key,
bool state = true ) override;
107 bool preprocessingEnabled()
const {
return mPreprocessingEnabled; }
127 std::unique_ptr<QgsFeatureRenderer> mSubRenderer;
130 struct CombinedFeature
132 QVector<QgsGeometry> geometries;
135 typedef QVector<CombinedFeature> FeatureCategoryVector;
137 FeatureCategoryVector mFeaturesCategories;
140 QMap<QByteArray, int> mSymbolCategories;
155 struct FeatureDecoration
161 FeatureDecoration(
const QgsFeature &a_feature,
bool a_selected,
bool a_drawMarkers,
int a_layer )
162 : feature( a_feature )
163 , selected( a_selected )
164 , drawMarkers( a_drawMarkers )
168 QList<FeatureDecoration> mFeatureDecorations;
171 bool mPreprocessingEnabled =
false;
175 #endif // QGSINVERTEDPOLYGONRENDERER_H