@@ -64,7 +64,7 @@ class CORE_EXPORT QgsMapSettings
64
64
// ! The actual visible extent used for rendering could be slightly different
65
65
// ! since the given extent may be expanded in order to fit the aspect ratio
66
66
// ! of output size. Use visibleExtent() to get the resulting extent.
67
- void setExtent ( const QgsRectangle& rect );
67
+ void setExtent ( const QgsRectangle& rect, bool magnified = true );
68
68
69
69
// ! Return the size of the resulting map image
70
70
QSize outputSize () const ;
@@ -86,6 +86,13 @@ class CORE_EXPORT QgsMapSettings
86
86
// ! Set DPI used for conversion between real world units (e.g. mm) and pixels
87
87
void setOutputDpi ( int dpi );
88
88
89
+ // ! Set the magnification factor.
90
+ // ! @note added in 2.16
91
+ void setMagnificationFactor ( double factor );
92
+ // ! Return the magnification factor.
93
+ // ! @note added in 2.16
94
+ double magnificationFactor () const ;
95
+
89
96
// ! Get list of layer IDs for map rendering
90
97
// ! The layers are stored in the reverse order of how they are rendered (layer with index 0 will be on top)
91
98
QStringList layers () const ;
@@ -261,6 +268,7 @@ class CORE_EXPORT QgsMapSettings
261
268
QgsRectangle mExtent ;
262
269
263
270
double mRotation ;
271
+ double mMagnificationFactor ;
264
272
265
273
QStringList mLayers ;
266
274
QMap<QString, QString> mLayerStyleOverrides ;
0 commit comments