15 #ifndef QGSINVERTEDPOLYGONRENDERER_H
16 #define QGSINVERTEDPOLYGONRENDERER_H
24 #include <QScopedPointer>
73 virtual QString
dump()
const;
101 virtual QDomElement
save( QDomDocument& doc );
162 feature( a_feature ), selected( a_selected ), drawMarkers( a_drawMarkers ), layer( a_layer ) {}
171 #endif // QGSMASKRENDERERV2_H
virtual bool willRenderFeature(QgsFeature &feat)
return whether the renderer will render a feature or not.
QList< QgsSymbolV2 * > QgsSymbolV2List
virtual QString dump() const
for debugging
virtual QDomElement save(QDomDocument &doc)
store renderer info to XML element
QgsPolygon mExtentPolygon
the polygon used as exterior ring that covers the current extent
bool mPreprocessingEnabled
whether to preprocess (merge) geometries before rendering
virtual QgsLegendSymbolList legendSymbolItems(double scaleDenominator=-1, QString rule="")
return a list of item text / symbol
Container of fields for a vector layer.
virtual QList< QString > usedAttributes()=0
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
FeatureDecoration(QgsFeature &a_feature, bool a_selected, bool a_drawMarkers, int a_layer)
virtual QgsLegendSymbologyList legendSymbologyItems(QSize iconSize)
return a list of symbology items for the legend
virtual void startRender(QgsRenderContext &context, const QgsFields &fields)=0
virtual void stopRender(QgsRenderContext &context)=0
virtual QgsSymbolV2List symbols()=0
for symbol levels
virtual bool renderFeature(QgsFeature &feature, QgsRenderContext &context, int layer=-1, bool selected=false, bool drawVertexMarker=false)
virtual QgsFeatureRendererV2 * clone()=0
QgsInvertedPolygonRenderer is a polygon-only feature renderer used to display features inverted...
void setPreprocessingEnabled(bool enabled)
bool preprocessingEnabled() const
QgsFields mFields
fields of each feature
QVector< CombinedFeature > FeatureCategoryVector
QVector< QgsPolyline > QgsPolygon
polygon: first item of the list is outer ring, inner rings (if any) start from second item ...
QList< QPair< QString, QPixmap > > QgsLegendSymbologyList
Class used to represent features that must be rendered with decorations (selection, vertex markers)
Contains information about the context of a rendering operation.
QMap< QByteArray, int > mSymbolCategories
maps a category to an index
FeatureCategoryVector mFeaturesCategories
where features are stored, based on the index of their symbol category
virtual QgsSymbolV2List symbolsForFeature(QgsFeature &feat)
return list of symbols used for rendering the feature.
QgsRenderContext mContext
the context used for rendering
QScopedPointer< QgsFeatureRendererV2 > mSubRenderer
Embedded renderer.
virtual int capabilities()
returns bitwise OR-ed capabilities of the renderer
QList< QgsGeometry * > geometries
QList< QPair< QString, QgsSymbolV2 * > > QgsLegendSymbolList
virtual QgsSymbolV2 * symbolForFeature(QgsFeature &feature)=0
to be overridden
QList< FeatureDecoration > mFeatureDecorations
Structure where the reversed geometry is built during renderFeature.