72 props.
insert(
"reflect_x", mReflectX ?
"1" :
"0" );
73 props.
insert(
"reflect_y", mReflectY ?
"1" :
"0" );
92 mReflectX = props.
value(
"reflect_x",
"0" ).toInt();
93 mReflectY = props.
value(
"reflect_y",
"0" ).toInt();
94 mScaleX = props.
value(
"scale_x",
"1.0" ).toDouble();
95 mScaleY = props.
value(
"scale_y",
"1.0" ).toDouble();
96 mRotation = props.
value(
"rotation",
"0.0" ).toDouble();
97 mShearX = props.
value(
"shear_x",
"0.0" ).toDouble();
98 mShearY = props.
value(
"shear_y",
"0.0" ).toDouble();
99 mTranslateX = props.
value(
"translate_x",
"0.0" ).toDouble();
100 mTranslateY = props.
value(
"translate_y",
"0.0" ).toDouble();
137 t.
translate( translateX + left + width / 2.0,
138 translateY + top + height / 2.0 );
141 t.
shear( mShearX, mShearY );
142 t.
scale( mScaleX, mScaleY );
144 if ( mReflectX || mReflectY )
146 t.
scale( mReflectX ? -1 : 1, mReflectY ? -1 : 1 );
150 -top - height / 2.0 );
static QString encodeOutputUnit(QgsSymbolV2::OutputUnit unit)
QRect boundingRect() const
Base class for visual effects which can be applied to QPicture drawings.
static QString encodeMapUnitScale(const QgsMapUnitScale &mapUnitScale)
static double pixelSizeScaleFactor(const QgsRenderContext &c, QgsSymbolV2::OutputUnit u, const QgsMapUnitScale &scale=QgsMapUnitScale())
Returns scale factor painter units -> pixel dimensions.
static QgsSymbolV2::OutputUnit decodeOutputUnit(const QString &str)
QString number(int n, int base)
bool enabled() const
Returns whether the effect is enabled.
DrawMode
Drawing modes for effects.
Contains information about the context of a rendering operation.
void drawSource(QPainter &painter)
Draws the source QPicture onto the specified painter.
iterator insert(const Key &key, const T &value)
const QPicture * source() const
Returns the source QPicture.
static QgsMapUnitScale decodeMapUnitScale(const QString &str)
const T value(const Key &key) const