17 #ifndef QGSEFFECTSTACK_H 18 #define QGSEFFECTSTACK_H 20 #include "qgis_core.h" 74 QString
type()
const override {
return QStringLiteral(
"effectStack" ); }
76 bool saveProperties( QDomDocument &doc, QDomElement &element )
const override;
104 bool insertEffect(
int index,
QgsPaintEffect *effect SIP_TRANSFER );
112 bool changeEffect(
int index,
QgsPaintEffect *effect SIP_TRANSFER );
125 QList< QgsPaintEffect * > *effectList();
131 int count()
const {
return mEffectList.count(); }
148 QList< QgsPaintEffect * > mEffectList;
153 #endif // QGSEFFECTSTACK_H virtual QgsStringMap properties() const =0
Returns the properties describing the paint effect encoded in a string format.
Base class for visual effects which can be applied to QPicture drawings.
QMap< QString, QString > QgsStringMap
virtual QgsPaintEffect * clone() const =0
Duplicates an effect by creating a deep copy of the effect.
int count() const
Returns count of effects contained by the stack.
QString type() const override
Returns the effect type.
A paint effect which consists of a stack of other chained paint effects.
virtual void readProperties(const QgsStringMap &props)=0
Reads a string map of an effect's properties and restores the effect to the state described by the pr...
Contains information about the context of a rendering operation.
friend class QgsEffectStack
virtual void draw(QgsRenderContext &context)=0
Handles drawing of the effect's result on to the specified render context.
virtual bool saveProperties(QDomDocument &doc, QDomElement &element) const
Saves the current state of the effect to a DOM element.