@@ -64,7 +64,7 @@ class CORE_EXPORT QgsMapSettings
6464 // ! The actual visible extent used for rendering could be slightly different
6565 // ! since the given extent may be expanded in order to fit the aspect ratio
6666 // ! 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 );
6868
6969 // ! Return the size of the resulting map image
7070 QSize outputSize () const ;
@@ -86,6 +86,13 @@ class CORE_EXPORT QgsMapSettings
8686 // ! Set DPI used for conversion between real world units (e.g. mm) and pixels
8787 void setOutputDpi ( int dpi );
8888
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+
8996 // ! Get list of layer IDs for map rendering
9097 // ! The layers are stored in the reverse order of how they are rendered (layer with index 0 will be on top)
9198 QStringList layers () const ;
@@ -261,6 +268,7 @@ class CORE_EXPORT QgsMapSettings
261268 QgsRectangle mExtent ;
262269
263270 double mRotation ;
271+ double mMagnificationFactor ;
264272
265273 QStringList mLayers ;
266274 QMap<QString, QString> mLayerStyleOverrides ;
0 commit comments