17 #ifndef QGSBLUREFFECT_H 18 #define QGSBLUREFFECT_H 91 void setTransparency(
const double transparency ) { mTransparency = transparency; }
105 void setBlendMode(
const QPainter::CompositionMode mode ) { mBlendMode = mode; }
112 QPainter::CompositionMode
blendMode()
const {
return mBlendMode; }
123 double mTransparency;
124 QPainter::CompositionMode mBlendMode;
131 #endif // QGSBLUREFFECT_H void setBlurMethod(const BlurMethod method)
Sets the blur method (algorithm) to use for performing the blur.
virtual QgsStringMap properties() const =0
Returns the properties describing the paint effect encoded in a string format.
double transparency() const
Returns the transparency for the effect.
Base class for visual effects which can be applied to QPicture drawings.
void setBlurLevel(const int level)
Sets blur level (strength)
BlurMethod blurMethod() const
Returns the blur method (algorithm) used for performing the blur.
virtual QgsPaintEffect * clone() const =0
Duplicates an effect by creating a deep copy of the effect.
BlurMethod
Available blur methods (algorithms)
int blurLevel() const
Returns the blur level (strength)
A paint effect which blurs a source picture, using a number of different blur methods.
virtual QString type() const override
Returns the effect type.
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.
virtual QRectF boundingRect(const QRectF &rect, const QgsRenderContext &context) const
Returns the bounding rect required for drawing the effect.
QPainter::CompositionMode blendMode() const
Returns the blend mode for the effect.
virtual void draw(QgsRenderContext &context)=0
Handles drawing of the effect's result on to the specified render context.
void setBlendMode(const QPainter::CompositionMode mode)
Sets the blend mode for the effect.
void setTransparency(const double transparency)
Sets the transparency for the effect.