17 #ifndef QGSGLOWEFFECT_H    18 #define QGSGLOWEFFECT_H    59     void setSpread( 
const double spread ) { mSpread = spread; }
    67     double spread()
 const { 
return mSpread; }
   169     void setBlendMode( 
const QPainter::CompositionMode mode ) { mBlendMode = mode; }
   176     QPainter::CompositionMode 
blendMode()
 const { 
return mBlendMode; }
   209     virtual bool shadeExterior() 
const = 0;
   285 #endif // QGSGLOWEFFECT_H QgsSymbolV2::OutputUnit mSpreadUnit
 
OutputUnit
The unit of the output. 
 
virtual QgsStringMap properties() const =0
Returns the properties describing the paint effect encoded in a string format. 
 
void setSpreadUnit(const QgsSymbolV2::OutputUnit unit)
Sets the units used for the glow spread distance. 
 
QPainter::CompositionMode mBlendMode
 
Base class for visual effects which can be applied to QPicture drawings. 
 
QgsSymbolV2::OutputUnit spreadUnit() const
Returns the units used for the glow spread distance. 
 
void setBlendMode(const QPainter::CompositionMode mode)
Sets the blend mode for the effect. 
 
Base class for paint effect which draw a glow inside or outside a picture. 
 
virtual QgsPaintEffect * clone() const =0
Duplicates an effect by creating a deep copy of the effect. 
 
void setTransparency(const double transparency)
Sets the transparency for the effect. 
 
void setSpreadMapUnitScale(const QgsMapUnitScale &scale)
Sets the map unit scale used for the spread distance. 
 
void setBlurLevel(const int level)
Sets blur level (strength) for the glow. 
 
void setColorType(GlowColorType colorType)
Sets the color mode to use for the glow. 
 
const QgsMapUnitScale & spreadMapUnitScale() const
Returns the map unit scale used for the spread distance. 
 
QgsVectorColorRampV2 * mRamp
 
GlowColorType
Color sources for the glow. 
 
virtual bool shadeExterior() const override
Specifies whether the glow is drawn outside the picture or within the picture. 
 
void setSpread(const double spread)
Sets the spread distance for drawing the glow effect. 
 
GlowColorType colorType() const
Returns the color mode used for the glow. 
 
A paint effect which draws a glow outside of a picture. 
 
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. 
 
double spread() const
Returns the spread distance used for drawing the glow effect. 
 
QPainter::CompositionMode blendMode() const
Returns the blend mode for the effect. 
 
Struct for storing maximum and minimum scales for measurements in map units. 
 
virtual QString type() const override
Returns the effect type. 
 
virtual QString type() const override
Returns the effect type. 
 
QgsMapUnitScale mSpreadMapUnitScale
 
virtual void draw(QgsRenderContext &context)=0
Handles drawing of the effect's result on to the specified render context. 
 
virtual bool shadeExterior() const override
Specifies whether the glow is drawn outside the picture or within the picture. 
 
A paint effect which draws a glow within a picture. 
 
double transparency() const
Returns the transparency for the effect. 
 
Abstract base class for color ramps. 
 
void setColor(const QColor &color)
Sets the color for the glow. 
 
QgsVectorColorRampV2 * ramp() const
Returns the color ramp used for the glow. 
 
int blurLevel() const
Returns the blur level (strength) for the glow. 
 
QColor color() const
Returns the color for the glow.