QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
qgscomposermapgrid.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgscomposermapgrid.h
3  --------------------
4  begin : December 2013
5  copyright : (C) 2013 by Marco Hugentobler
6  email : marco dot hugentobler at sourcepole dot ch
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 
18 #ifndef QGSCOMPOSERMAPGRID_H
19 #define QGSCOMPOSERMAPGRID_H
20 
22 #include "qgsrectangle.h"
23 #include "qgsrendercontext.h"
24 #include <QString>
25 #include <QPainter>
26 
28 class QgsLineSymbolV2;
29 class QgsMarkerSymbolV2;
30 class QgsComposerMapGrid;
31 class QgsComposerMap;
32 class QDomDocument;
33 class QDomElement;
34 class QPainter;
35 
44 class CORE_EXPORT QgsComposerMapGridStack
45 {
46  public:
47 
52 
53  virtual ~QgsComposerMapGridStack();
54 
63  void addGrid( QgsComposerMapGrid* grid );
64 
71  void removeGrid( const QString& gridId );
72 
79  void moveGridUp( const QString& gridId );
80 
87  void moveGridDown( const QString& gridId );
88 
94  const QgsComposerMapGrid* constGrid( const QString& gridId ) const;
95 
101  QgsComposerMapGrid* grid( const QString& gridId ) const;
102 
108  QgsComposerMapGrid* grid( const int index ) const;
109 
116  QgsComposerMapGrid &operator[]( int idx );
117 
121  QList< QgsComposerMapGrid* > asList() const;
122 
123 
127  int size() const { return mGrids.size(); }
128 
135  bool writeXML( QDomElement& elem, QDomDocument & doc ) const;
136 
143  bool readXML( const QDomElement& elem, const QDomDocument& doc );
144 
148  void drawGrids( QPainter* painter );
149 
154  double maxGridExtension() const;
155 
160  bool containsAdvancedEffects() const;
161 
162  private:
163 
164  QList< QgsComposerMapGrid* > mGrids;
165 
166  QgsComposerMap* mComposerMap;
167 
171  void removeGrids();
172 };
173 
174 //
175 // QgsComposerMapGrid
176 //
177 
185 class CORE_EXPORT QgsComposerMapGrid
186 {
187  public:
188 
191  enum GridUnit
192  {
193  MapUnit, /*< grid units follow map units */
194  MM, /*< grid units in millimetres */
195  CM /*< grid units in centimetres */
196  };
197 
201  {
202  Solid = 0,
203  Cross, /*< draw line crosses at intersections of grid lines */
204  Markers, /*< draw markers at intersections of grid lines */
205  FrameAnnotationsOnly /*< no grid lines over the map, only draw frame and annotations */
206  };
207 
211  {
212  InsideMapFrame = 0,
213  OutsideMapFrame, /*< draw annotations outside the map frame */
214  Disabled /*< disable annotation */
215  };
216 
220  {
221  Horizontal = 0, /*< draw annotations horizontally */
222  Vertical, /*< draw annotations vertically */
223  BoundaryDirection /*< annotations follow the boundary direction */
224  };
225 
229  {
230  Decimal = 0, /*< decimal degrees, use - for S/W coordinates */
231  DegreeMinute, /*< degree/minutes, use NSEW suffix */
232  DegreeMinuteSecond, /*< degree/minutes/seconds, use NSEW suffix */
233  DecimalWithSuffix, /*< decimal degrees, use NSEW suffix */
234  DegreeMinuteNoSuffix, /*< degree/minutes, use - for S/W coordinates */
235  DegreeMinutePadded, /*< degree/minutes, with minutes using leading zeros were required */
236  DegreeMinuteSecondNoSuffix, /*< degree/minutes/seconds, use - for S/W coordinates */
237  DegreeMinuteSecondPadded /*< degree/minutes/seconds, with minutes using leading zeros were required */
238  };
239 
243  {
245  Right, /*< right border */
246  Bottom, /*< bottom border */
247  Top /*< top border */
248  };
249 
253  {
254  NoFrame = 0, /*< disable grid frame */
255  Zebra, /*< black/white pattern */
256  InteriorTicks, /*< tick markers drawn inside map frame */
257  ExteriorTicks, /*< tick markers drawn outside map frame */
258  InteriorExteriorTicks, /*< tick markers drawn both inside and outside the map frame */
259  LineBorder /*< simple solid line frame */
260  };
261 
265  {
266  FrameLeft = 0x01, /*< left side of map */
267  FrameRight = 0x02, /*< right side of map */
268  FrameTop = 0x04, /*< top side of map */
269  FrameBottom = 0x08 /*< bottom side of map */
270  };
271  Q_DECLARE_FLAGS( FrameSideFlags, FrameSideFlag )
272 
273 
276  {
277  Longitude = 0, /*< coordinate is a longitude value */
278  Latitude /*< coordinate is a latitude value */
279  };
280 
285  QgsComposerMapGrid( const QString& name, QgsComposerMap* map );
286 
287  virtual ~QgsComposerMapGrid();
288 
292  void drawGrid( QPainter* painter ) const;
293 
299  bool writeXML( QDomElement& elem, QDomDocument & doc ) const;
300 
306  bool readXML( const QDomElement& itemElem, const QDomDocument& doc );
307 
312  void setComposerMap( QgsComposerMap* map );
313 
318  const QgsComposerMap* composerMap() const { return mComposerMap; }
319 
324  void setName( const QString& name ) { mName = name; }
325 
330  QString name() const { return mName; }
331 
336  QString id() const { return mUuid; }
337 
342  void setEnabled( const bool enabled ) { mGridEnabled = enabled; }
343 
348  bool enabled() const { return mGridEnabled; }
349 
354  void setCrs( const QgsCoordinateReferenceSystem& crs ) { mCRS = crs; }
355 
360  QgsCoordinateReferenceSystem crs() const { return mCRS; }
361 
366  void setBlendMode( const QPainter::CompositionMode mode ) { mBlendMode = mode; }
367 
372  QPainter::CompositionMode blendMode() const { return mBlendMode; }
373 
378  double maxExtension() const;
379 
380  //
381  // GRID UNITS
382  //
383 
389  void setUnits( const GridUnit unit ) { mGridUnit = unit; }
390 
396  GridUnit units() const { return mGridUnit; }
397 
404  void setIntervalX( const double interval ) { mGridIntervalX = interval; }
405 
412  double intervalX() const { return mGridIntervalX; }
413 
420  void setIntervalY( const double interval ) { mGridIntervalY = interval; }
421 
428  double intervalY() const { return mGridIntervalY; }
429 
436  void setOffsetX( const double offset ) { mGridOffsetX = offset; }
437 
444  double offsetX() const { return mGridOffsetX; }
445 
452  void setOffsetY( const double offset ) { mGridOffsetY = offset; }
453 
460  double offsetY() const { return mGridOffsetY; }
461 
462  //
463  // GRID APPEARANCE
464  //
465 
471  void setStyle( const GridStyle style ) { mGridStyle = style; }
472 
478  GridStyle style() const { return mGridStyle; }
479 
485  void setCrossLength( const double length ) { mCrossLength = length; }
486 
492  double crossLength() const { return mCrossLength; }
493 
501  void setGridLineWidth( const double width );
502 
510  void setGridLineColor( const QColor& color );
511 
519  void setLineSymbol( QgsLineSymbolV2* symbol );
520 
528  const QgsLineSymbolV2* lineSymbol() const { return mGridLineSymbol; }
529 
537  QgsLineSymbolV2* lineSymbol() { return mGridLineSymbol; }
538 
546  void setMarkerSymbol( QgsMarkerSymbolV2* symbol );
547 
555  const QgsMarkerSymbolV2* markerSymbol() const { return mGridMarkerSymbol; }
556 
564  QgsMarkerSymbolV2* markerSymbol() { return mGridMarkerSymbol; }
565 
566  //
567  // ANNOTATIONS
568  //
569 
574  void setAnnotationEnabled( const bool enabled ) { mShowGridAnnotation = enabled; }
575 
580  bool annotationEnabled() const { return mShowGridAnnotation; }
581 
586  void setAnnotationFont( const QFont& font ) { mGridAnnotationFont = font; }
587 
592  QFont annotationFont() const { return mGridAnnotationFont; }
593 
598  void setAnnotationFontColor( const QColor& color ) { mGridAnnotationFontColor = color; }
599 
604  QColor annotationFontColor() const { return mGridAnnotationFontColor; }
605 
610  void setAnnotationPrecision( const int precision ) { mGridAnnotationPrecision = precision; }
611 
616  int annotationPrecision() const { return mGridAnnotationPrecision; }
617 
624  void setAnnotationPosition( const AnnotationPosition position, const BorderSide border );
625 
632  AnnotationPosition annotationPosition( const BorderSide border ) const;
633 
638  void setAnnotationFrameDistance( const double distance ) { mAnnotationFrameDistance = distance; }
639 
644  double annotationFrameDistance() const { return mAnnotationFrameDistance; }
645 
651  void setAnnotationDirection( const AnnotationDirection direction, const BorderSide border );
652 
657  void setAnnotationDirection( const AnnotationDirection direction );
658 
664  AnnotationDirection annotationDirection( const BorderSide border ) const;
665 
670  void setAnnotationFormat( const AnnotationFormat format ) { mGridAnnotationFormat = format; }
671 
676  AnnotationFormat annotationFormat() const { return mGridAnnotationFormat; }
677 
678  //
679  // GRID FRAME
680  //
681 
686  void setFrameStyle( const FrameStyle style ) { mGridFrameStyle = style; }
687 
692  FrameStyle frameStyle() const { return mGridFrameStyle; }
693 
701  void setFrameSideFlags( const FrameSideFlags flags );
702 
710  void setFrameSideFlag( const FrameSideFlag flag, bool on = true );
711 
719  FrameSideFlags frameSideFlags() const;
720 
729  bool testFrameSideFlag( const FrameSideFlag flag ) const;
730 
737  void setFrameWidth( const double width ) { mGridFrameWidth = width; }
738 
745  double frameWidth() const { return mGridFrameWidth; }
746 
752  void setFramePenSize( const double width ) { mGridFramePenThickness = width; }
753 
759  double framePenSize() const { return mGridFramePenThickness; }
760 
768  void setFramePenColor( const QColor& color ) { mGridFramePenColor = color; }
769 
777  QColor framePenColor() const {return mGridFramePenColor;}
778 
785  void setFrameFillColor1( const QColor& color ) { mGridFrameFillColor1 = color; }
786 
793  QColor frameFillColor1() const { return mGridFrameFillColor1; }
794 
801  void setFrameFillColor2( const QColor& color ) { mGridFrameFillColor2 = color; }
802 
809  QColor frameFillColor2() const { return mGridFrameFillColor2; }
810 
811  private:
812 
813  QgsComposerMapGrid(); //forbidden
814 
815  QgsComposerMap* mComposerMap;
816  QString mName;
817  QString mUuid;
818 
820  bool mGridEnabled;
822  GridStyle mGridStyle;
824  double mGridIntervalX;
826  double mGridIntervalY;
828  double mGridOffsetX;
830  double mGridOffsetY;
832  QFont mGridAnnotationFont;
834  QColor mGridAnnotationFontColor;
836  int mGridAnnotationPrecision;
838  bool mShowGridAnnotation;
839 
841  AnnotationPosition mLeftGridAnnotationPosition;
843  AnnotationPosition mRightGridAnnotationPosition;
845  AnnotationPosition mTopGridAnnotationPosition;
847  AnnotationPosition mBottomGridAnnotationPosition;
848 
850  double mAnnotationFrameDistance;
851 
853  AnnotationDirection mLeftGridAnnotationDirection;
855  AnnotationDirection mRightGridAnnotationDirection;
857  AnnotationDirection mTopGridAnnotationDirection;
859  AnnotationDirection mBottomGridAnnotationDirection;
860  AnnotationFormat mGridAnnotationFormat;
861  FrameStyle mGridFrameStyle;
862  FrameSideFlags mGridFrameSides;
863  double mGridFrameWidth;
864  double mGridFramePenThickness;
865  QColor mGridFramePenColor;
866  QColor mGridFrameFillColor1;
867  QColor mGridFrameFillColor2;
868  double mCrossLength;
869 
870  QgsLineSymbolV2* mGridLineSymbol;
871  QgsMarkerSymbolV2* mGridMarkerSymbol;
872 
874 
875  GridUnit mGridUnit;
876 
877  QPainter::CompositionMode mBlendMode;
878 
880  void drawGridFrame( QPainter* p, const QList< QPair< double, QLineF > >& hLines, const QList< QPair< double, QLineF > >& vLines ) const;
881 
886  void drawCoordinateAnnotations( QPainter* p, const QList< QPair< double, QLineF > >& hLines, const QList< QPair< double, QLineF > >& vLines ) const;
887 
888  void drawCoordinateAnnotation( QPainter* p, const QPointF& pos, QString annotationString ) const;
889 
895  void drawAnnotation( QPainter* p, const QPointF& pos, int rotation, const QString& annotationText ) const;
896 
897  QString gridAnnotationString( double value, AnnotationCoordinate coord ) const;
898 
901  int xGridLines( QList< QPair< double, QLineF > >& lines ) const;
902 
905  int yGridLines( QList< QPair< double, QLineF > >& lines ) const;
906 
907  int xGridLinesCRSTransform( const QgsRectangle& bbox, const QgsCoordinateTransform& t, QList< QPair< double, QPolygonF > >& lines ) const;
908 
909  int yGridLinesCRSTransform( const QgsRectangle& bbox, const QgsCoordinateTransform& t, QList< QPair< double, QPolygonF > >& lines ) const;
910 
911  void drawGridLine( const QLineF& line, QgsRenderContext &context ) const;
912 
913  void drawGridLine( const QPolygonF& line, QgsRenderContext &context ) const;
914 
915  void sortGridLinesOnBorders( const QList< QPair< double, QLineF > >& hLines, const QList< QPair< double, QLineF > >& vLines, QMap< double, double >& leftFrameEntries,
916  QMap< double, double >& rightFrameEntries, QMap< double, double >& topFrameEntries, QMap< double, double >& bottomFrameEntries ) const;
917 
918  void drawGridFrameBorder( QPainter* p, const QMap< double, double >& borderPos, BorderSide border ) const;
919 
921  BorderSide borderForLineCoord( const QPointF& p ) const;
922 
924  int crsGridParams( QgsRectangle& crsRect, QgsCoordinateTransform& inverseTransform ) const;
925 
926  static QPolygonF trimLineToMap( const QPolygonF& line, const QgsRectangle& rect );
927 
928  QPolygonF scalePolygon( const QPolygonF &polygon, const double scale ) const;
929 
931  void drawGridCRSTransform( QgsRenderContext &context , double dotsPerMM, QList< QPair< double, QLineF > > &horizontalLines,
932  QList< QPair< double, QLineF > > &verticalLines ) const;
933 
934  void drawGridNoTransform( QgsRenderContext &context, double dotsPerMM, QList<QPair<double, QLineF> > &horizontalLines, QList<QPair<double, QLineF> > &verticalLines ) const;
935 
936  void createDefaultGridLineSymbol();
937 
938  void createDefaultGridMarkerSymbol();
939 
940  void drawGridMarker( const QPointF &point, QgsRenderContext &context ) const;
941 
942  void drawGridFrameZebraBorder( QPainter *p, const QMap<double, double> &borderPos, BorderSide border ) const;
943 
944  void drawGridFrameTicks( QPainter *p, const QMap<double, double> &borderPos, BorderSide border ) const;
945 
946  void drawGridFrameLineBorder( QPainter *p, BorderSide border ) const;
947 
948 };
949 
950 #endif // QGSCOMPOSERMAPGRID_H
void setStyle(const GridStyle style)
Sets the grid style, which controls how the grid is drawn over the map's contents.
Definition: qgscomposermapgrid.h:471
QColor frameFillColor1() const
Retrieves the first fill color for the grid frame.
Definition: qgscomposermapgrid.h:793
static unsigned index
Definition: mersenne-twister.cpp:36
A rectangle specified with double values.
Definition: qgsrectangle.h:35
const QgsMarkerSymbolV2 * markerSymbol() const
Gets the marker symbol used for drawing grid points.
Definition: qgscomposermapgrid.h:555
double intervalX() const
Gets the interval between grid lines in the x-direction.
Definition: qgscomposermapgrid.h:412
void setBlendMode(const QPainter::CompositionMode mode)
Sets the blending mode used for drawing the grid.
Definition: qgscomposermapgrid.h:366
GridStyle
Grid drawing style.
Definition: qgscomposermapgrid.h:200
void setOffsetY(const double offset)
Sets the offset for grid lines in the y-direction.
Definition: qgscomposermapgrid.h:452
Definition: qgscomposermapgrid.h:203
const QgsLineSymbolV2 * lineSymbol() const
Gets the line symbol used for drawing grid lines.
Definition: qgscomposermapgrid.h:528
void setFramePenSize(const double width)
Sets the width of the outline drawn in the grid frame.
Definition: qgscomposermapgrid.h:752
Definition: qgscomposermapgrid.h:235
A collection of grids which is drawn above the map content in a QgsComposerMap.
Definition: qgscomposermapgrid.h:44
FrameStyle
Style for grid frame.
Definition: qgscomposermapgrid.h:252
void setName(const QString &name)
Sets the friendly display name for the grid.
Definition: qgscomposermapgrid.h:324
double annotationFrameDistance() const
Gets the distance between the map frame and annotations.
Definition: qgscomposermapgrid.h:644
QColor frameFillColor2() const
Retrieves the second fill color for the grid frame.
Definition: qgscomposermapgrid.h:809
Definition: qgscomposermapgrid.h:213
FrameStyle frameStyle() const
Gets the grid frame style.
Definition: qgscomposermapgrid.h:692
Definition: qgscomposermapgrid.h:257
void setAnnotationFont(const QFont &font)
Sets the font used for drawing grid annotations.
Definition: qgscomposermapgrid.h:586
Definition: qgscomposermapgrid.h:231
QColor framePenColor() const
Retrieves the color of the outline drawn in the grid frame.
Definition: qgscomposermapgrid.h:777
AnnotationDirection
Direction of grid annotations.
Definition: qgscomposermapgrid.h:219
const QgsComposerMap * composerMap() const
Get composer map for the grid.
Definition: qgscomposermapgrid.h:318
QgsMarkerSymbolV2 * markerSymbol()
Gets the marker symbol used for drawing grid points.
Definition: qgscomposermapgrid.h:564
AnnotationFormat annotationFormat() const
Gets the format for drawing grid annotations.
Definition: qgscomposermapgrid.h:676
AnnotationFormat
Format for displaying grid annotations.
Definition: qgscomposermapgrid.h:228
double intervalY() const
Gets the interval between grid lines in the y-direction.
Definition: qgscomposermapgrid.h:428
void setCrossLength(const double length)
Sets the length of the cross segments drawn for the grid.
Definition: qgscomposermapgrid.h:485
QFont annotationFont() const
Gets the font used for drawing grid annotations.
Definition: qgscomposermapgrid.h:592
Definition: qgscomposermapgrid.h:255
Definition: qgscomposermapgrid.h:245
int size() const
Returns the number of grids in the stack.
Definition: qgscomposermapgrid.h:127
Definition: qgssymbolv2.h:254
Definition: qgscomposermapgrid.h:246
void setAnnotationFormat(const AnnotationFormat format)
Sets the format for drawing grid annotations.
Definition: qgscomposermapgrid.h:670
AnnotationPosition
Position for grid annotations.
Definition: qgscomposermapgrid.h:210
void setUnits(const GridUnit unit)
Sets the units to use for grid measurements such as the interval and offset for grid lines...
Definition: qgscomposermapgrid.h:389
double offsetX() const
Gets the offset for grid lines in the x-direction.
Definition: qgscomposermapgrid.h:444
Definition: qgscomposermapgrid.h:194
void setAnnotationEnabled(const bool enabled)
Sets whether annotations should be shown for the grid.
Definition: qgscomposermapgrid.h:574
bool enabled() const
Returns whether the grid will be drawn.
Definition: qgscomposermapgrid.h:348
GridStyle style() const
Gets the grid's style, which controls how the grid is drawn over the map's contents.
Definition: qgscomposermapgrid.h:478
FrameSideFlag
Flags for controlling which side of the map a frame is drawn on.
Definition: qgscomposermapgrid.h:264
Definition: qgscomposermapgrid.h:233
An individual grid which is drawn above the map content in a QgsComposerMap.
Definition: qgscomposermapgrid.h:185
QgsLineSymbolV2 * lineSymbol()
Gets the line symbol used for drawing grid lines.
Definition: qgscomposermapgrid.h:537
void setCrs(const QgsCoordinateReferenceSystem &crs)
Sets the CRS for the grid.
Definition: qgscomposermapgrid.h:354
double offsetY() const
Gets the offset for grid lines in the y-direction.
Definition: qgscomposermapgrid.h:460
double framePenSize() const
Retrieves the width of the outline drawn in the grid frame.
Definition: qgscomposermapgrid.h:759
GridUnit units() const
Gets the units used for grid measurements such as the interval and offset for grid lines...
Definition: qgscomposermapgrid.h:396
void setFrameWidth(const double width)
Sets the grid frame width.
Definition: qgscomposermapgrid.h:737
void setAnnotationFontColor(const QColor &color)
Sets the font color used for drawing grid annotations.
Definition: qgscomposermapgrid.h:598
Object representing map window.
Definition: qgscomposermap.h:45
BorderSide
Border sides for annotations.
Definition: qgscomposermapgrid.h:242
void setFrameFillColor1(const QColor &color)
Sets the first fill color used for the grid frame.
Definition: qgscomposermapgrid.h:785
QString name() const
Get friendly display name for the grid.
Definition: qgscomposermapgrid.h:330
void setFramePenColor(const QColor &color)
Sets the color of the outline drawn in the grid frame.
Definition: qgscomposermapgrid.h:768
Definition: qgscomposermapgrid.h:232
int annotationPrecision() const
Returns the coordinate precision for grid annotations.
Definition: qgscomposermapgrid.h:616
Definition: qgssymbolv2.h:227
QPainter::CompositionMode blendMode() const
Retrieves the blending mode used for drawing the grid.
Definition: qgscomposermapgrid.h:372
Definition: qgscomposermapgrid.h:244
void setEnabled(const bool enabled)
Controls whether the grid will be drawn.
Definition: qgscomposermapgrid.h:342
QColor annotationFontColor() const
Gets the font color used for drawing grid annotations.
Definition: qgscomposermapgrid.h:604
Contains information about the context of a rendering operation.
Definition: qgsrendercontext.h:39
QString id() const
Get the unique id for the grid.
Definition: qgscomposermapgrid.h:336
Class for storing a coordinate reference system (CRS)
Definition: qgscoordinatereferencesystem.h:50
void setAnnotationPrecision(const int precision)
Sets the coordinate precision for grid annotations.
Definition: qgscomposermapgrid.h:610
void setIntervalY(const double interval)
Sets the interval between grid lines in the y-direction.
Definition: qgscomposermapgrid.h:420
Class for doing transforms between two map coordinate systems.
Definition: qgscoordinatetransform.h:52
bool annotationEnabled() const
Gets whether annotations are shown for the grid.
Definition: qgscomposermapgrid.h:580
Definition: qgscomposermapgrid.h:258
Definition: qgscomposermapgrid.h:234
double crossLength() const
Retrieves the length of the cross segments drawn for the grid.
Definition: qgscomposermapgrid.h:492
Definition: qgscomposermapgrid.h:204
void setFrameFillColor2(const QColor &color)
Sets the second fill color used for the grid frame.
Definition: qgscomposermapgrid.h:801
void setFrameStyle(const FrameStyle style)
Sets the grid frame style.
Definition: qgscomposermapgrid.h:686
Definition: qgscomposermapgrid.h:222
Definition: qgscomposermapgrid.h:236
QgsCoordinateReferenceSystem crs() const
Retrieves the CRS for the grid.
Definition: qgscomposermapgrid.h:360
GridUnit
Unit for grid values.
Definition: qgscomposermapgrid.h:191
void setIntervalX(const double interval)
Sets the interval between grid lines in the x-direction.
Definition: qgscomposermapgrid.h:404
Definition: qgscomposermapgrid.h:193
void setOffsetX(const double offset)
Sets the offset for grid lines in the x-direction.
Definition: qgscomposermapgrid.h:436
AnnotationCoordinate
Annotation coordinate type.
Definition: qgscomposermapgrid.h:275
void setAnnotationFrameDistance(const double distance)
Sets the distance between the map frame and annotations.
Definition: qgscomposermapgrid.h:638
Definition: qgscomposermapgrid.h:256
double frameWidth() const
Gets the grid frame width.
Definition: qgscomposermapgrid.h:745