QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
qgscomposermap.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgscomposermap.h
3  -------------------
4  begin : January 2005
5  copyright : (C) 2005 by Radim Blazek
6  email : blazek@itc.it
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 #ifndef QGSCOMPOSERMAP_H
18 #define QGSCOMPOSERMAP_H
19 
20 //#include "ui_qgscomposermapbase.h"
21 #include "qgscomposeritem.h"
22 #include "qgsrectangle.h"
23 #include <QFont>
24 #include <QGraphicsRectItem>
25 
26 class QgsComposition;
30 class QgsComposerMapGrid;
31 class QgsMapRenderer;
32 class QgsMapToPixel;
33 class QDomNode;
34 class QDomDocument;
35 class QGraphicsView;
36 class QPainter;
37 class QgsFillSymbolV2;
38 class QgsLineSymbolV2;
39 class QgsVectorLayer;
40 
47 class CORE_EXPORT QgsComposerMap : public QgsComposerItem
48 {
49  Q_OBJECT
50 
51  public:
53  QgsComposerMap( QgsComposition *composition, int x, int y, int width, int height );
55  QgsComposerMap( QgsComposition *composition );
56  virtual ~QgsComposerMap();
57 
59  virtual int type() const { return ComposerMap; }
60 
63  {
64  Cache = 0, // Use raster cache
65  Render, // Render the map
66  Rectangle // Display only rectangle
67  };
68 
69  //grid enums are moved to QgsComposerMapGrid
70  //TODO - remove for QGIS 3.0
71  enum GridStyle
72  {
73  Solid = 0, //solid lines
74  Cross, //only draw line crossings
76  FrameAnnotationsOnly
77  };
78 
80  {
81  InsideMapFrame = 0,
83  Disabled
84  };
85 
87  {
88  Horizontal = 0,
91  BoundaryDirection
92  };
93 
95  {
96  Decimal = 0,
103  DegreeMinuteSecondPadded
104  };
105 
107  {
108  NoGridFrame = 0,
109  Zebra, // black/white pattern
113  LineBorder
114  };
115 
117  enum Border
118  {
122  Top
123  };
124 
128  {
129  Fixed, /*< The current scale of the map is used for each feature of the atlas */
130  Predefined, /*< A scale is chosen from the predefined scales. The smallest scale from
131  the list of scales where the atlas feature is fully visible is chosen.
132  @see QgsAtlasComposition::setPredefinedScales.
133  @note This mode is only valid for polygon or line atlas coverage layers
134  */
135  Auto /*< The extent is adjusted so that each feature is fully visible.
136  A margin is applied around the center @see setAtlasMargin
137  @note This mode is only valid for polygon or line atlas coverage layers*/
138  };
139 
147  void draw( QPainter *painter, const QgsRectangle& extent, const QSizeF& size, double dpi, double* forceWidthScale = 0 );
148 
150  void paint( QPainter* painter, const QStyleOptionGraphicsItem* itemStyle, QWidget* pWidget );
151 
153  void cache();
154 
157  QgsMapSettings mapSettings( const QgsRectangle& extent, const QSizeF& size, int dpi ) const;
158 
160  int id() const {return mId;}
161 
163  bool isDrawing() const {return mDrawing;}
164 
166  void resize( double dx, double dy );
167 
171  void moveContent( double dx, double dy );
172 
179  Q_DECL_DEPRECATED void zoomContent( int delta, double x, double y );
180 
187  virtual void zoomContent( const double factor, const QPointF point, const ZoomMode mode = QgsComposerItem::Zoom );
188 
190  void setSceneRect( const QRectF& rectangle );
191 
193  double scale() const;
194 
196  void setNewScale( double scaleDenominator, bool forceUpdate = true );
197 
204  void setNewExtent( const QgsRectangle& extent );
205 
214  void zoomToExtent( const QgsRectangle& extent );
215 
219  void setNewAtlasFeatureExtent( const QgsRectangle& extent );
220 
224  Q_DECL_DEPRECATED void toggleAtlasPreview() {}
225 
232  QgsRectangle* currentMapExtent();
233  const QgsRectangle* currentMapExtent() const;
234 
235  PreviewMode previewMode() const {return mPreviewMode;}
236  void setPreviewMode( PreviewMode m );
237 
240  bool keepLayerSet() const {return mKeepLayerSet;}
243  void setKeepLayerSet( bool enabled ) {mKeepLayerSet = enabled;}
244 
247  QStringList layerSet() const {return mLayerSet;}
250  void setLayerSet( const QStringList& layerSet ) {mLayerSet = layerSet;}
252  void storeCurrentLayerSet();
253 
254  // Set cache outdated
255  void setCacheUpdated( bool u = false );
256 
257  QgsRectangle extent() const {return mExtent;}
258 
260  Q_DECL_DEPRECATED const QgsMapRenderer* mapRenderer() const;
261 
263  void setOffset( double xOffset, double yOffset );
264 
266  bool containsWMSLayer() const;
267 
269  bool containsAdvancedEffects() const;
270 
275  bool writeXML( QDomElement& elem, QDomDocument & doc ) const;
276 
281  bool readXML( const QDomElement& itemElem, const QDomDocument& doc );
282 
287  Q_DECL_DEPRECATED void setGridEnabled( bool enabled );
288 
292  Q_DECL_DEPRECATED bool gridEnabled() const;
293 
298  Q_DECL_DEPRECATED void setGridStyle( GridStyle style );
299 
303  Q_DECL_DEPRECATED GridStyle gridStyle() const;
304 
309  Q_DECL_DEPRECATED void setGridIntervalX( double interval );
310 
314  Q_DECL_DEPRECATED double gridIntervalX() const;
315 
320  Q_DECL_DEPRECATED void setGridIntervalY( double interval );
321 
325  Q_DECL_DEPRECATED double gridIntervalY() const;
326 
331  Q_DECL_DEPRECATED void setGridOffsetX( double offset );
332 
336  Q_DECL_DEPRECATED double gridOffsetX() const;
337 
342  Q_DECL_DEPRECATED void setGridOffsetY( double offset );
343 
347  Q_DECL_DEPRECATED double gridOffsetY() const;
348 
353  Q_DECL_DEPRECATED void setGridPen( const QPen& p );
354 
358  Q_DECL_DEPRECATED QPen gridPen() const;
359 
364  Q_DECL_DEPRECATED void setGridPenWidth( double w );
365 
370  Q_DECL_DEPRECATED void setGridPenColor( const QColor& c );
371 
376  Q_DECL_DEPRECATED void setGridAnnotationFont( const QFont& f );
377 
381  Q_DECL_DEPRECATED QFont gridAnnotationFont() const;
382 
387  Q_DECL_DEPRECATED void setAnnotationFontColor( const QColor& c );
388 
393  Q_DECL_DEPRECATED QColor annotationFontColor() const;
394 
399  Q_DECL_DEPRECATED void setGridAnnotationPrecision( int p );
400 
404  Q_DECL_DEPRECATED int gridAnnotationPrecision() const;
405 
410  Q_DECL_DEPRECATED void setShowGridAnnotation( bool show );
411 
415  Q_DECL_DEPRECATED bool showGridAnnotation() const;
416 
420  Q_DECL_DEPRECATED void setGridAnnotationPosition( GridAnnotationPosition p, QgsComposerMap::Border border );
421 
425  Q_DECL_DEPRECATED GridAnnotationPosition gridAnnotationPosition( QgsComposerMap::Border border ) const;
426 
431  Q_DECL_DEPRECATED void setAnnotationFrameDistance( double d );
432 
436  Q_DECL_DEPRECATED double annotationFrameDistance() const;
437 
441  Q_DECL_DEPRECATED void setGridAnnotationDirection( GridAnnotationDirection d, QgsComposerMap::Border border );
442 
446  Q_DECL_DEPRECATED GridAnnotationDirection gridAnnotationDirection( QgsComposerMap::Border border ) const;
447 
451  Q_DECL_DEPRECATED void setGridAnnotationFormat( GridAnnotationFormat f );
452 
456  Q_DECL_DEPRECATED GridAnnotationFormat gridAnnotationFormat() const;
457 
462  Q_DECL_DEPRECATED void setGridFrameStyle( GridFrameStyle style );
463 
467  Q_DECL_DEPRECATED GridFrameStyle gridFrameStyle() const;
468 
473  Q_DECL_DEPRECATED void setGridFrameWidth( double w );
474 
478  Q_DECL_DEPRECATED double gridFrameWidth() const;
479 
484  Q_DECL_DEPRECATED void setGridFramePenSize( double w );
485 
489  Q_DECL_DEPRECATED double gridFramePenSize() const;
490 
495  Q_DECL_DEPRECATED void setGridFramePenColor( const QColor& c );
496 
501  Q_DECL_DEPRECATED QColor gridFramePenColor() const;
502 
507  Q_DECL_DEPRECATED void setGridFrameFillColor1( const QColor& c );
508 
513  Q_DECL_DEPRECATED QColor gridFrameFillColor1() const;
514 
519  Q_DECL_DEPRECATED void setGridFrameFillColor2( const QColor& c );
520 
525  Q_DECL_DEPRECATED QColor gridFrameFillColor2() const;
526 
531  Q_DECL_DEPRECATED void setCrossLength( double l );
532 
536  Q_DECL_DEPRECATED double crossLength();
537 
541  Q_DECL_DEPRECATED void setGridLineSymbol( QgsLineSymbolV2* symbol );
542 
546  Q_DECL_DEPRECATED QgsLineSymbolV2* gridLineSymbol();
547 
551  Q_DECL_DEPRECATED QPainter::CompositionMode gridBlendMode() const;
552 
556  Q_DECL_DEPRECATED void setGridBlendMode( QPainter::CompositionMode blendMode );
557 
564  QgsComposerMapGridStack* grids() { return mGridStack; }
565 
571  QgsComposerMapGrid* grid();
572 
579  QgsComposerMapOverviewStack* overviews() { return mOverviewStack; }
580 
586  QgsComposerMapOverview* overview();
587 
590  QRectF boundingRect() const;
591 
592  /* reimplement setFrameOutlineWidth, so that updateBoundingRect() is called after setting the frame width */
593  virtual void setFrameOutlineWidth( const double outlineWidth );
594 
599  Q_DECL_DEPRECATED void setRotation( double r );
600 
604  Q_DECL_DEPRECATED double rotation() const { return mMapRotation;}
605 
609  void setMapRotation( double r );
610 
617  double mapRotation( QgsComposerObject::PropertyValueType valueType = QgsComposerObject::EvaluatedValue ) const;
618 
619  void updateItem();
620 
622  void setMapCanvas( QGraphicsView* canvas ) { mMapCanvas = canvas; }
623 
624  void setDrawCanvasItems( bool b ) { mDrawCanvasItems = b; }
625  bool drawCanvasItems() const { return mDrawCanvasItems; }
626 
628  double mapUnitsToMM() const;
629 
634  Q_DECL_DEPRECATED void setOverviewFrameMap( int mapId );
635 
640  Q_DECL_DEPRECATED int overviewFrameMapId() const;
641 
645  Q_DECL_DEPRECATED void setOverviewFrameMapSymbol( QgsFillSymbolV2* symbol );
646 
650  Q_DECL_DEPRECATED QgsFillSymbolV2* overviewFrameMapSymbol();
651 
655  Q_DECL_DEPRECATED QPainter::CompositionMode overviewBlendMode() const;
656 
660  Q_DECL_DEPRECATED void setOverviewBlendMode( QPainter::CompositionMode blendMode );
661 
665  Q_DECL_DEPRECATED bool overviewInverted() const;
666 
670  Q_DECL_DEPRECATED void setOverviewInverted( bool inverted );
671 
675  Q_DECL_DEPRECATED bool overviewCentered() const;
676 
680  Q_DECL_DEPRECATED void setOverviewCentered( bool centered );
681 
684  void assignFreeId();
685 
690  Q_DECL_DEPRECATED bool imageSizeConsideringRotation( double& width, double& height ) const;
695  Q_DECL_DEPRECATED bool cornerPointOnRotatedAndScaledRect( double& x, double& y, double width, double height ) const;
700  Q_DECL_DEPRECATED void sizeChangedByRotation( double& width, double& height );
701 
707  bool atlasDriven() const { return mAtlasDriven; }
708 
714  void setAtlasDriven( bool enabled );
715 
719  Q_DECL_DEPRECATED bool atlasFixedScale() const;
720 
724  Q_DECL_DEPRECATED void setAtlasFixedScale( bool fixed );
725 
734  AtlasScalingMode atlasScalingMode() const { return mAtlasScalingMode; }
735 
744  void setAtlasScalingMode( AtlasScalingMode mode ) { mAtlasScalingMode = mode; }
745 
755  double atlasMargin( const QgsComposerObject::PropertyValueType valueType = QgsComposerObject::EvaluatedValue );
756 
763  void setAtlasMargin( double margin ) { mAtlasMargin = margin; }
764 
766  void setUpdatesEnabled( bool enabled ) { mUpdatesEnabled = enabled; }
767 
769  bool updatesEnabled() const { return mUpdatesEnabled; }
770 
776  int numberExportLayers() const;
777 
784  QPolygonF visibleExtentPolygon() const;
785 
786  //overriden to show "Map 1" type names
787  virtual QString displayName() const;
788 
790  QPolygonF transformedMapPolygon() const;
791 
793  QPointF mapToItemCoords( const QPointF& mapCoords ) const;
794 
795  Q_DECL_DEPRECATED void connectMapOverviewSignals();
796 
799  void requestedExtent( QgsRectangle& extent ) const;
800 
801  signals:
802  void extentChanged();
803 
805  void mapRotationChanged( double newRotation );
806 
808  void preparedForAtlas();
809 
810  public slots:
811 
813  void updateCachedImage();
815  void renderModeUpdateCachedImage();
816 
819  void updateBoundingRect();
820 
823 
825 
826  private:
827 
829  int mId;
830 
831  QgsComposerMapGridStack* mGridStack;
832 
833  QgsComposerMapOverviewStack* mOverviewStack;
834 
835  // Map region in map units realy used for rendering
836  // It can be the same as mUserExtent, but it can be bigger in on dimension if mCalculate==Scale,
837  // so that full rectangle in paper is used.
838  QgsRectangle mExtent;
839 
840  // Current temporary map region in map units. This is overwritten when atlas feature changes. It's also
841  // used when the user changes the map extent and an atlas preview is enabled. This allows the user
842  // to manually tweak each atlas preview page without affecting the actual original map extent.
843  QgsRectangle mAtlasFeatureExtent;
844 
845  // Cache used in composer preview
846  QImage mCacheImage;
847 
848  // Is cache up to date
849  bool mCacheUpdated;
850 
852  PreviewMode mPreviewMode;
853 
855  int mNumCachedLayers;
856 
858  bool mDrawing;
859 
861  double mXOffset;
863  double mYOffset;
864 
866  double mMapRotation;
869  double mEvaluatedMapRotation;
870 
872  bool mKeepLayerSet;
873 
875  QStringList mLayerSet;
876 
878  bool mUpdatesEnabled;
879 
881  void connectUpdateSlot();
882 
884  void syncLayerSet();
885 
887  const QgsComposerMapGrid* constFirstMapGrid() const;
888 
890  const QgsComposerMapOverview* constFirstMapOverview() const;
891 
893  QRectF mCurrentRectangle;
894  QGraphicsView* mMapCanvas;
896  bool mDrawCanvasItems;
897 
900  void adjustExtentToItemShape( double itemWidth, double itemHeight, QgsRectangle& extent ) const;
901 
903  bool mAtlasDriven;
905  AtlasScalingMode mAtlasScalingMode;
907  double mAtlasMargin;
908 
909  void init();
910 
912  void updateToolTip();
913 
915  QStringList layersToRender() const;
916 
918  QgsRectangle transformedExtent() const;
919 
921  void mapPolygon( const QgsRectangle& extent, QPolygonF& poly ) const;
922 
926  void transformShift( double& xShift, double& yShift ) const;
927 
928  void drawCanvasItems( QPainter* painter, const QStyleOptionGraphicsItem* itemStyle );
929  void drawCanvasItem( QGraphicsItem* item, QPainter* painter, const QStyleOptionGraphicsItem* itemStyle );
930  QPointF composerMapPosForItem( const QGraphicsItem* item ) const;
931 
932  enum PartType
933  {
934  Background,
935  Layer,
936  Grid,
937  OverviewMapExtent,
938  Frame,
939  SelectionBoxes
940  };
941 
943  bool shouldDrawPart( PartType part ) const;
944 
948  void refreshMapExtents();
949 
950  friend class QgsComposerMapOverview; //to access mXOffset, mYOffset
951 };
953 
954 #endif
955 
GridStyle
Definition: qgscomposermap.h:71
AtlasScalingMode
Scaling modes used for the serial rendering (atlas)
Definition: qgscomposermap.h:127
Q_DECL_DEPRECATED bool imageSizeConsideringRotation(double &width, double &height, double rotation) const
Calculates width and hight of the picture (in mm) such that it fits into the item frame with the give...
Definition: qgscomposeritem.cpp:1119
double outlineWidth
Definition: qgssvgcache.cpp:78
A rectangle specified with double values.
Definition: qgsrectangle.h:35
virtual bool writeXML(QDomElement &elem, QDomDocument &doc) const
Stores item state in DOM element.
Definition: qgscomposerobject.cpp:61
bool updatesEnabled() const
Returns whether updates to the composer map are enabled.
Definition: qgscomposermap.h:769
Q_DECL_DEPRECATED void toggleAtlasPreview()
Called when atlas preview is toggled, to force map item to update its extent and redraw.
Definition: qgscomposermap.h:224
void overviewExtentChanged()
Definition: qgscomposermap.h:822
QgsComposerMapOverviewStack * overviews()
Returns the map item's overview stack, which is used to control how overviews are drawn over the map'...
Definition: qgscomposermap.h:579
virtual void setRotation(double r)
Sets the item rotation.
Definition: qgscomposeritem.cpp:1039
Definition: qgscomposermap.h:74
A collection of grids which is drawn above the map content in a QgsComposerMap.
Definition: qgscomposermapgrid.h:45
Definition: qgscomposermap.h:109
QStringList layerSet() const
Getter for stored layer set that is used if mKeepLayerSet is true.
Definition: qgscomposermap.h:247
Definition: qgscomposermap.h:121
A item that forms part of a map composition.
Definition: qgscomposeritem.h:38
GridAnnotationFormat
Definition: qgscomposermap.h:94
#define Q_NOWARN_DEPRECATED_PUSH
Definition: qgis.h:439
Border
Enum for different frame borders.
Definition: qgscomposermap.h:117
Definition: qgscomposermap.h:100
Definition: qgscomposermap.h:119
void setMapCanvas(QGraphicsView *canvas)
Sets canvas pointer (necessary to query and draw map canvas items)
Definition: qgscomposermap.h:622
Definition: qgscomposermap.h:129
DataDefinedProperty
Data defined properties for different item types.
Definition: qgscomposerobject.h:40
A non GUI class for rendering a map layer set onto a QPainter.
Definition: qgsmaprenderer.h:133
Definition: qgssymbolv2.h:277
Definition: qgscomposerobject.h:43
Definition: qgscomposerobject.h:81
bool isDrawing() const
True if a draw is already in progress.
Definition: qgscomposermap.h:163
The QgsMapSettings class contains configuration for rendering of the map.
Definition: qgsmapsettings.h:52
void setAtlasMargin(double margin)
Sets the margin size (percentage) used when the map is in atlas mode.
Definition: qgscomposermap.h:763
virtual int type() const
return correct graphics item type.
Definition: qgscomposermap.h:59
Definition: qgscomposermap.h:102
Definition: qgscomposermap.h:89
Perform transforms between map coordinates and device coordinates.
Definition: qgsmaptopixel.h:33
virtual void moveContent(double dx, double dy)
Move Content of item.
Definition: qgscomposeritem.h:151
void setAtlasScalingMode(AtlasScalingMode mode)
Sets the current atlas scaling mode.
Definition: qgscomposermap.h:744
Definition: qgscomposermap.h:99
An individual overview which is drawn above the map content in a QgsComposerMap, and shows the extent...
Definition: qgscomposermapoverview.h:135
Definition: qgscomposermap.h:111
virtual void refreshDataDefinedProperty(const QgsComposerObject::DataDefinedProperty property=QgsComposerObject::AllProperties)
Refreshes a data defined property for the item by reevaluating the property's value and redrawing the...
Definition: qgscomposeritem.cpp:1340
virtual void updateItem()
Updates item, with the possibility to do custom update for subclasses.
Definition: qgscomposeritem.h:505
Definition: qgssymbolv2.h:256
bool drawCanvasItems() const
Definition: qgscomposermap.h:625
Definition: qgscomposermap.h:97
PropertyValueType
Specifies whether the value returned by a function should be the original, user set value...
Definition: qgscomposerobject.h:79
virtual int numberExportLayers() const
Get the number of layers that this item requires for exporting as layers.
Definition: qgscomposeritem.h:584
An individual grid which is drawn above the map content in a QgsComposerMap.
Definition: qgscomposermapgrid.h:151
PreviewMode
Preview style.
Definition: qgscomposermap.h:62
GridAnnotationPosition
Definition: qgscomposermap.h:79
Graphics scene for map printing.
Definition: qgscomposition.h:73
Object representing map window.
Definition: qgscomposermap.h:47
Definition: qgscomposermap.h:90
void setUpdatesEnabled(bool enabled)
Sets whether updates to the composer map are enabled.
Definition: qgscomposermap.h:766
PreviewMode previewMode() const
Definition: qgscomposermap.h:235
Definition: qgscomposermap.h:110
GridAnnotationDirection
Definition: qgscomposermap.h:86
virtual QString displayName() const
Get item display name.
Definition: qgscomposeritem.cpp:1406
Definition: qgscomposermap.h:112
GridFrameStyle
Definition: qgscomposermap.h:106
virtual void setFrameOutlineWidth(const double outlineWidth)
Sets frame outline width.
Definition: qgscomposeritem.cpp:438
#define Q_NOWARN_DEPRECATED_POP
Definition: qgis.h:440
int id() const
Get identification number.
Definition: qgscomposermap.h:160
Definition: qgscomposermap.h:120
Definition: qgscomposeritem.h:53
Definition: qgscomposermap.h:65
Definition: qgscomposermap.h:101
Q_DECL_DEPRECATED bool cornerPointOnRotatedAndScaledRect(double &x, double &y, double width, double height, double rotation) const
Calculates corner point after rotation and scaling.
Definition: qgscomposeritem.cpp:1198
virtual Q_DECL_DEPRECATED void zoomContent(int delta, double x, double y)
Zoom content of item.
Definition: qgscomposeritem.h:159
Q_DECL_DEPRECATED double rotation() const
Returns the rotation used for drawing the map within the composer item.
Definition: qgscomposermap.h:604
QgsRectangle extent() const
Definition: qgscomposermap.h:257
Definition: qgscomposermap.h:130
virtual bool readXML(const QDomElement &itemElem, const QDomDocument &doc)
Sets item state from DOM element.
Definition: qgscomposerobject.cpp:74
void setLayerSet(const QStringList &layerSet)
Setter for stored layer set that is used if mKeepLayerSet is true.
Definition: qgscomposermap.h:250
QgsComposerMapGridStack * grids()
Returns the map item's grid stack, which is used to control how grids are drawn over the map's conten...
Definition: qgscomposermap.h:564
Definition: qgscomposermap.h:98
AtlasScalingMode atlasScalingMode() const
Returns the current atlas scaling mode.
Definition: qgscomposermap.h:734
void setDrawCanvasItems(bool b)
Definition: qgscomposermap.h:624
virtual void setSceneRect(const QRectF &rectangle)
Sets this items bound in scene coordinates such that 1 item size units corresponds to 1 scene size un...
Definition: qgscomposeritem.cpp:684
Definition: qgscomposermap.h:82
void setKeepLayerSet(bool enabled)
Setter for flag that determines if the stored layer set should be used or the current layer set of th...
Definition: qgscomposermap.h:243
bool atlasDriven() const
Returns whether the map extent is set to follow the current atlas feature.
Definition: qgscomposermap.h:707
Definition: qgscomposeritem.h:98
bool keepLayerSet() const
Getter for flag that determines if the stored layer set should be used or the current layer set of th...
Definition: qgscomposermap.h:240
Represents a vector layer which manages a vector based data sets.
Definition: qgsvectorlayer.h:470
double size
Definition: qgssvgcache.cpp:77
Definition: qgscomposermap.h:75
Q_DECL_DEPRECATED void sizeChangedByRotation(double &width, double &height, double rotation)
Calculates width / height of the bounding box of a rotated rectangle.
Definition: qgscomposeritem.cpp:1243
A collection of overviews which are drawn above the map content in a QgsComposerMap.
Definition: qgscomposermapoverview.h:39