Public Member Functions |
| QgsInvertedPolygonRenderer (const QgsFeatureRendererV2 *embeddedRenderer=0) |
| Constructor.
|
virtual | ~QgsInvertedPolygonRenderer () |
virtual QgsFeatureRendererV2 * | clone () const |
| Used to clone this feature renderer.
|
virtual void | startRender (QgsRenderContext &context, const QgsFields &fields) |
virtual bool | renderFeature (QgsFeature &feature, QgsRenderContext &context, int layer=-1, bool selected=false, bool drawVertexMarker=false) |
| Renders a given feature.
|
virtual void | stopRender (QgsRenderContext &context) |
| The actual rendering will take place here.
|
virtual QString | dump () const |
virtual QList< QString > | usedAttributes () |
| Proxy that will call this method on the embedded renderer.
|
virtual int | capabilities () |
| Proxy that will call this method on the embedded renderer.
|
virtual QgsSymbolV2List | symbols () |
| Proxy that will call this method on the embedded renderer.
|
virtual QgsSymbolV2 * | symbolForFeature (QgsFeature &feature) |
| Proxy that will call this method on the embedded renderer.
|
virtual QgsSymbolV2 * | originalSymbolForFeature (QgsFeature &feat) |
| Proxy that will call this method on the embedded renderer.
|
virtual QgsSymbolV2List | symbolsForFeature (QgsFeature &feat) |
| Proxy that will call this method on the embedded renderer.
|
virtual QgsSymbolV2List | originalSymbolsForFeature (QgsFeature &feat) |
| Proxy that will call this method on the embedded renderer.
|
virtual QgsLegendSymbologyList | legendSymbologyItems (QSize iconSize) |
| Proxy that will call this method on the embedded renderer.
|
virtual QgsLegendSymbolList | legendSymbolItems (double scaleDenominator=-1, QString rule="") |
| Proxy that will call this method on the embedded renderer.
|
virtual bool | willRenderFeature (QgsFeature &feat) |
| Proxy that will call this method on the embedded renderer.
|
virtual QDomElement | save (QDomDocument &doc) |
| Creates an XML representation of the renderer.
|
void | setEmbeddedRenderer (const QgsFeatureRendererV2 *subRenderer) |
| sets the embedded renderer
|
const QgsFeatureRendererV2 * | embeddedRenderer () const |
bool | preprocessingEnabled () const |
void | setPreprocessingEnabled (bool enabled) |
QString | type () const |
virtual Q_DECL_DEPRECATED void | startRender (QgsRenderContext &context, const QgsVectorLayer *vlayer) |
virtual | ~QgsFeatureRendererV2 () |
bool | usingSymbolLevels () const |
void | setUsingSymbolLevels (bool usingSymbolLevels) |
virtual QDomElement | writeSld (QDomDocument &doc, const QgsVectorLayer &layer) const |
| create the SLD UserStyle element following the SLD v1.1 specs
|
virtual void | toSld (QDomDocument &doc, QDomElement &element) const |
| used from subclasses to create SLD Rule elements following SLD v1.1 specs
|
virtual bool | legendSymbolItemsCheckable () const |
| items of symbology items in legend should be checkable
|
virtual bool | legendSymbolItemChecked (QString key) |
| items of symbology items in legend is checked
|
virtual void | checkLegendSymbolItem (QString key, bool state=true) |
| item in symbology was checked
|
virtual QgsLegendSymbolListV2 | legendSymbolItemsV2 () const |
| Return a list of symbology items for the legend.
|
virtual QString | legendClassificationAttribute () const |
| If supported by the renderer, return classification attribute for the use in legend.
|
void | setVertexMarkerAppearance (int type, int size) |
| set type and size of editing vertex markers for subsequent rendering
|
virtual QString | rotationField () const |
| return rotation field name (or empty string if not set or not supported by renderer)
|
virtual void | setRotationField (QString fieldName) |
| sets rotation field of renderer (if supported by the renderer)
|
Additional Inherited Members |
enum | Capabilities {
SymbolLevels = 1,
RotationField = 1 << 1,
MoreSymbolsPerFeature = 1 << 2,
Filter = 1 << 3,
ScaleDependent = 1 << 4
} |
| QgsFeatureRendererV2 (QString type) |
void | renderFeatureWithSymbol (QgsFeature &feature, QgsSymbolV2 *symbol, QgsRenderContext &context, int layer, bool selected, bool drawVertexMarker) |
void | renderVertexMarker (QPointF &pt, QgsRenderContext &context) |
| render editing vertex marker at specified point
|
void | renderVertexMarkerPolyline (QPolygonF &pts, QgsRenderContext &context) |
| render editing vertex marker for a polyline
|
void | renderVertexMarkerPolygon (QPolygonF &pts, QList< QPolygonF > *rings, QgsRenderContext &context) |
| render editing vertex marker for a polygon
|
void | setScaleMethodToSymbol (QgsSymbolV2 *symbol, int scaleMethod) |
static const unsigned char * | _getPoint (QPointF &pt, QgsRenderContext &context, const unsigned char *wkb) |
static const unsigned char * | _getLineString (QPolygonF &pts, QgsRenderContext &context, const unsigned char *wkb) |
static const unsigned char * | _getPolygon (QPolygonF &pts, QList< QPolygonF > &holes, QgsRenderContext &context, const unsigned char *wkb) |
QString | mType |
bool | mUsingSymbolLevels |
int | mCurrentVertexMarkerType |
| The current type of editing marker.
|
int | mCurrentVertexMarkerSize |
| The current size of editing marker.
|
QgsInvertedPolygonRenderer is a polygon-only feature renderer used to display features inverted, where the exterior is turned to an interior and where the exterior theoretically spans the entire plane, allowing to mask the surroundings of some features.
It is designed on top of another feature renderer, which is called "embedded" Most of the methods are then only proxies to the embedded renderer.
Features are collected to form one "inverted" polygon during renderFeature() and rendered on stopRender().
- Note
- added in 2.4