17 #ifndef QGSEFFECTSTACK_H    18 #define QGSEFFECTSTACK_H    20 #include "qgis_core.h"    79     QString 
type()
 const override { 
return QStringLiteral( 
"effectStack" ); }
    81     bool saveProperties( QDomDocument &doc, QDomElement &element ) 
const override;
   109     bool insertEffect( 
int index, 
QgsPaintEffect *effect SIP_TRANSFER );
   117     bool changeEffect( 
int index, 
QgsPaintEffect *effect SIP_TRANSFER );
   130     QList< QgsPaintEffect * > *effectList();
   136     int count()
 const { 
return mEffectList.count(); }
   156     QList< QgsPaintEffect * > mEffectList;
   161 #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...
 
virtual bool saveProperties(QDomDocument &doc, QDomElement &element) const 
Saves the current state of the effect to a DOM element. 
 
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.