17#ifndef QGSTRANSFORMEFFECT_H
18#define QGSTRANSFORMEFFECT_H
52 QString
type()
const override {
return QStringLiteral(
"transform" ); }
65 void setTranslateX( const
double translateX ) { mTranslateX = translateX; }
85 void setTranslateY(
const double translateY ) { mTranslateY = translateY; }
143 void setScaleX(
const double scaleX ) { mScaleX = scaleX; }
151 double scaleX()
const {
return mScaleX; }
158 void setScaleY(
const double scaleY ) { mScaleY = scaleY; }
166 double scaleY()
const {
return mScaleY; }
172 void setRotation(
const double rotation ) { mRotation = rotation; }
186 void setShearX(
const double shearX ) { mShearX = shearX; }
194 double shearX()
const {
return mShearX; }
202 void setShearY(
const double shearY ) { mShearY = shearY; }
210 double shearY()
const {
return mShearY; }
251 double mTranslateX = 0.0;
252 double mTranslateY = 0.0;
255 double mScaleX = 1.0;
256 double mScaleY = 1.0;
257 double mRotation = 0.0;
258 double mShearX = 0.0;
259 double mShearY = 0.0;
260 bool mReflectX =
false;
261 bool mReflectY =
false;
RenderUnit
Rendering size units.
@ Millimeters
Millimeters.
Struct for storing maximum and minimum scales for measurements in map units.
Base class for visual effects which can be applied to QPicture drawings.
virtual void readProperties(const QVariantMap &props)=0
Reads a string map of an effect's properties and restores the effect to the state described by the pr...
virtual QgsPaintEffect * clone() const =0
Duplicates an effect by creating a deep copy of the effect.
virtual QRectF boundingRect(const QRectF &rect, const QgsRenderContext &context) const
Returns the bounding rect required for drawing the effect.
virtual QVariantMap properties() const =0
Returns the properties describing the paint effect encoded in a string format.
virtual void draw(QgsRenderContext &context)=0
Handles drawing of the effect's result on to the specified render context.
Contains information about the context of a rendering operation.
#define SIP_NODEFAULTCTORS