19 #include <QDomDocument> 20 #include <QDomElement> 44 if ( !selected && !drawVertexMarker )
58 mSymbol->startRender( context );
76 mSymbol->stopRender( context );
123 Q_UNUSED( renderer );
#define RENDERER_TAG_NAME
static QgsNullSymbolRenderer * convertFromRenderer(const QgsFeatureRendererV2 *renderer)
Creates a QgsNullSymbolRenderer from an existing renderer.
QList< QgsSymbolV2 * > QgsSymbolV2List
virtual QString dump() const override
for debugging
Container of fields for a vector layer.
const QgsGeometry * constGeometry() const
Gets a const pointer to the geometry object associated with this feature.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
virtual QgsFeatureRendererV2 * clone() const override
virtual QgsSymbolV2 * symbolForFeature(QgsFeature &feature, QgsRenderContext &context) override
To be overridden.
int mCurrentVertexMarkerSize
The current size of editing marker.
void setAttribute(const QString &name, const QString &value)
static QgsFeatureRendererV2 * create(QDomElement &element)
Creates a null renderer from XML element.
virtual bool willRenderFeature(QgsFeature &feat, QgsRenderContext &context) override
Returns whether the renderer will render a feature or not.
int mCurrentVertexMarkerType
The current type of editing marker.
virtual Q_DECL_DEPRECATED QgsSymbolV2List symbols()
For symbol levels.
QGis::GeometryType type() const
Returns type of the geometry as a QGis::GeometryType.
virtual bool renderFeature(QgsFeature &feature, QgsRenderContext &context, int layer=-1, bool selected=false, bool drawVertexMarker=false) override
Render a feature using this renderer in the given context.
Contains information about the context of a rendering operation.
virtual QgsSymbolV2 * originalSymbolForFeature(QgsFeature &feature, QgsRenderContext &context) override
Return symbol for feature.
static QgsSymbolV2 * defaultSymbol(QGis::GeometryType geomType)
return new default symbol for specified geometry type
virtual void stopRender(QgsRenderContext &context) override
Needs to be called when a render cycle has finished to clean up.
virtual QList< QString > usedAttributes() override
Returns a set of attributes required for this renderer.
QDomElement createElement(const QString &tagName)
virtual void startRender(QgsRenderContext &context, const QgsFields &fields) override
Needs to be called when a new render cycle is started.
virtual QDomElement save(QDomDocument &doc) override
store renderer info to XML element
virtual ~QgsNullSymbolRenderer()