17 #ifndef QGSTRANSFORMEFFECT_H 18 #define QGSTRANSFORMEFFECT_H 60 void setTranslateX(
const double translateX ) { mTranslateX = translateX; }
78 void setTranslateY(
const double translateY ) { mTranslateY = translateY; }
130 void setScaleX(
const double scaleX ) { mScaleX = scaleX; }
137 double scaleX()
const {
return mScaleX; }
143 void setScaleY(
const double scaleY ) { mScaleY = scaleY; }
150 double scaleY()
const {
return mScaleY; }
156 void setRotation(
const double rotation ) { mRotation = rotation; }
169 void setShearX(
const double shearX ) { mShearX = shearX; }
176 double shearX()
const {
return mShearX; }
183 void setShearY(
const double shearY ) { mShearY = shearY; }
190 double shearY()
const {
return mShearY; }
243 #endif // QGSTRANSFORMEFFECT_H
OutputUnit
The unit of the output.
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.
virtual QgsPaintEffect * clone() const =0
Duplicates an effect by creating a deep copy of the effect.
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.
Struct for storing maximum and minimum scales for measurements in map units.
virtual void draw(QgsRenderContext &context)=0
Handles drawing of the effect's result on to the specified render context.