QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
qgsmarkersymbollayer.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsmarkersymbollayer.h
3  ---------------------
4  begin : November 2009
5  copyright : (C) 2009 by Martin Dobias
6  email : wonder dot sk at gmail dot com
7  ***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 
16 #ifndef QGSMARKERSYMBOLLAYER_H
17 #define QGSMARKERSYMBOLLAYER_H
18 
19 #include "qgis_core.h"
20 #include "qgis_sip.h"
21 #include "qgssymbollayer.h"
22 
23 #define DEFAULT_SIMPLEMARKER_NAME "circle"
24 #define DEFAULT_SIMPLEMARKER_COLOR QColor(255,0,0)
25 #define DEFAULT_SIMPLEMARKER_BORDERCOLOR QColor( 35, 35, 35 )
26 #define DEFAULT_SIMPLEMARKER_JOINSTYLE Qt::BevelJoin
27 #define DEFAULT_SIMPLEMARKER_SIZE DEFAULT_POINT_SIZE
28 #define DEFAULT_SIMPLEMARKER_ANGLE 0
29 
30 #include <QPen>
31 #include <QBrush>
32 #include <QPicture>
33 #include <QPolygonF>
34 #include <QFont>
35 
36 class QgsFillSymbol;
37 class QgsPathResolver;
38 
47 {
48 
49  public:
50 
52  static QList< Qgis::MarkerShape > availableShapes();
53 
59  static bool shapeIsFilled( Qgis::MarkerShape shape );
60 
69  double size = DEFAULT_SIMPLEMARKER_SIZE,
72 
74 
79  Qgis::MarkerShape shape() const { return mShape; }
80 
86  void setShape( Qgis::MarkerShape shape ) { mShape = shape; }
87 
96  static Qgis::MarkerShape decodeShape( const QString &name, bool *ok = nullptr );
97 
104  static QString encodeShape( Qgis::MarkerShape shape );
105 
106  void startRender( QgsSymbolRenderContext &context ) override;
107  void stopRender( QgsSymbolRenderContext &context ) override;
108  void renderPoint( QPointF point, QgsSymbolRenderContext &context ) override;
109  QRectF bounds( QPointF point, QgsSymbolRenderContext &context ) override;
110 
111  protected:
112 
116  bool prepareMarkerShape( Qgis::MarkerShape shape );
117 
121  bool prepareMarkerPath( Qgis::MarkerShape symbol );
122 
129  bool shapeToPolygon( Qgis::MarkerShape shape, QPolygonF &polygon ) const;
130 
137  double calculateSize( QgsSymbolRenderContext &context, bool &hasDataDefinedSize ) const;
138 
147  void calculateOffsetAndRotation( QgsSymbolRenderContext &context, double scaledSize, bool &hasDataDefinedRotation, QPointF &offset, double &angle ) const;
148 
150  QPolygonF mPolygon;
151 
153  QPainterPath mPath;
154 
157 
158  private:
159 
168  virtual void draw( QgsSymbolRenderContext &context, Qgis::MarkerShape shape, const QPolygonF &polygon, const QPainterPath &path ) = 0 SIP_FORCE;
169 };
170 
177 {
178  public:
179 
191  double size = DEFAULT_SIMPLEMARKER_SIZE,
194  const QColor &color = DEFAULT_SIMPLEMARKER_COLOR,
195  const QColor &strokeColor = DEFAULT_SIMPLEMARKER_BORDERCOLOR,
196  Qt::PenJoinStyle penJoinStyle = DEFAULT_SIMPLEMARKER_JOINSTYLE );
197 
198  ~QgsSimpleMarkerSymbolLayer() override;
199 
200  // static methods
201 
207  static QgsSymbolLayer *create( const QVariantMap &properties = QVariantMap() ) SIP_FACTORY;
208 
214  static QgsSymbolLayer *createFromSld( QDomElement &element ) SIP_FACTORY;
215 
216  // reimplemented from base classes
217 
218  QString layerType() const override;
219  void startRender( QgsSymbolRenderContext &context ) override;
220  void renderPoint( QPointF point, QgsSymbolRenderContext &context ) override;
221  QVariantMap properties() const override;
222  QgsSimpleMarkerSymbolLayer *clone() const override SIP_FACTORY;
223  void writeSldMarker( QDomDocument &doc, QDomElement &element, const QVariantMap &props ) const override;
224  QString ogrFeatureStyle( double mmScaleFactor, double mapUnitScaleFactor ) const override;
225  bool writeDxf( QgsDxfExport &e, double mmMapUnitScaleFactor, const QString &layerName, QgsSymbolRenderContext &context, QPointF shift = QPointF( 0.0, 0.0 ) ) const override;
226  void setOutputUnit( QgsUnitTypes::RenderUnit unit ) override;
227  QgsUnitTypes::RenderUnit outputUnit() const override;
228  void setMapUnitScale( const QgsMapUnitScale &scale ) override;
229  QgsMapUnitScale mapUnitScale() const override;
230  bool usesMapUnits() const override;
231  QRectF bounds( QPointF point, QgsSymbolRenderContext &context ) override;
232  QColor fillColor() const override { return mColor; }
233  void setFillColor( const QColor &color ) override { mColor = color; }
234  void setColor( const QColor &color ) override;
235  QColor color() const override;
236 
237  // new methods
238 
245  QColor strokeColor() const override { return mStrokeColor; }
246 
254  void setStrokeColor( const QColor &color ) override { mStrokeColor = color; }
255 
263  Qt::PenStyle strokeStyle() const { return mStrokeStyle; }
264 
273  void setStrokeStyle( Qt::PenStyle strokeStyle ) { mStrokeStyle = strokeStyle; }
274 
283  Qt::PenJoinStyle penJoinStyle() const { return mPenJoinStyle; }
284 
294  void setPenJoinStyle( Qt::PenJoinStyle style ) { mPenJoinStyle = style; }
295 
304  Qt::PenCapStyle penCapStyle() const { return mPenCapStyle; }
305 
314  void setPenCapStyle( Qt::PenCapStyle style ) { mPenCapStyle = style; }
315 
322  double strokeWidth() const { return mStrokeWidth; }
323 
331  void setStrokeWidth( double w ) { mStrokeWidth = w; }
332 
340  void setStrokeWidthUnit( QgsUnitTypes::RenderUnit u ) { mStrokeWidthUnit = u; }
341 
348  QgsUnitTypes::RenderUnit strokeWidthUnit() const { return mStrokeWidthUnit; }
349 
357  void setStrokeWidthMapUnitScale( const QgsMapUnitScale &scale ) { mStrokeWidthMapUnitScale = scale; }
358 
365  const QgsMapUnitScale &strokeWidthMapUnitScale() const { return mStrokeWidthMapUnitScale; }
366 
367  protected:
368 
375  void drawMarker( QPainter *p, QgsSymbolRenderContext &context );
376 
381  bool prepareCache( QgsSymbolRenderContext &context );
382 
384  QColor mStrokeColor;
386  Qt::PenStyle mStrokeStyle = Qt::SolidLine;
388  double mStrokeWidth = 0;
394  Qt::PenJoinStyle mPenJoinStyle;
396  Qt::PenCapStyle mPenCapStyle = Qt::SquareCap;
398  QPen mPen;
400  QBrush mBrush;
401 
403  QImage mCache;
405  QPen mSelPen;
407  QBrush mSelBrush;
409  QImage mSelCache;
410 
415  bool mUsingCache = false;
416 
418  static const int MAXIMUM_CACHE_WIDTH = 3000;
419 
420  private:
421  // cppcheck-suppress unusedPrivateFunction
422  void draw( QgsSymbolRenderContext &context, Qgis::MarkerShape shape, const QPolygonF &polygon, const QPainterPath &path ) override SIP_FORCE;
423 
424  double mCachedOpacity = 1.0;
425 
426 };
427 
436 {
437  public:
438 
447  double size = DEFAULT_SIMPLEMARKER_SIZE,
449  Qgis::ScaleMethod scaleMethod = DEFAULT_SCALE_METHOD );
450 
451  ~QgsFilledMarkerSymbolLayer() override;
452 
458  static QgsSymbolLayer *create( const QVariantMap &properties = QVariantMap() ) SIP_FACTORY;
459 
460  QString layerType() const override;
461  void startRender( QgsSymbolRenderContext &context ) override;
462  void stopRender( QgsSymbolRenderContext &context ) override;
463  QVariantMap properties() const override;
464  QgsFilledMarkerSymbolLayer *clone() const override SIP_FACTORY;
465  QgsSymbol *subSymbol() override;
466  bool setSubSymbol( QgsSymbol *symbol SIP_TRANSFER ) override;
467  double estimateMaxBleed( const QgsRenderContext &context ) const override;
468  QSet<QString> usedAttributes( const QgsRenderContext &context ) const override;
469  bool hasDataDefinedProperties() const override;
470  void setColor( const QColor &c ) override;
471  QColor color() const override;
472  bool usesMapUnits() const override;
473  void setOutputUnit( QgsUnitTypes::RenderUnit unit ) override;
474 
475  private:
476 #ifdef SIP_RUN
478 #endif
479 
480  // cppcheck-suppress unusedPrivateFunction
481  void draw( QgsSymbolRenderContext &context, Qgis::MarkerShape shape, const QPolygonF &polygon, const QPainterPath &path ) override SIP_FORCE;
482 
484  std::unique_ptr< QgsFillSymbol > mFill;
485 };
486 
488 
489 #define DEFAULT_SVGMARKER_SIZE 2*DEFAULT_POINT_SIZE
490 #define DEFAULT_SVGMARKER_ANGLE 0
491 
497 {
498  public:
500  QgsSvgMarkerSymbolLayer( const QString &path,
501  double size = DEFAULT_SVGMARKER_SIZE,
503  Qgis::ScaleMethod scaleMethod = DEFAULT_SCALE_METHOD );
504 
505  ~QgsSvgMarkerSymbolLayer() override;
506 
507  // static stuff
508 
510  static QgsSymbolLayer *create( const QVariantMap &properties = QVariantMap() ) SIP_FACTORY;
511  static QgsSymbolLayer *createFromSld( QDomElement &element ) SIP_FACTORY;
512 
518  static void resolvePaths( QVariantMap &properties, const QgsPathResolver &pathResolver, bool saving );
519 
520  // implemented from base classes
521 
522  QString layerType() const override;
523 
524  void startRender( QgsSymbolRenderContext &context ) override;
525 
526  void stopRender( QgsSymbolRenderContext &context ) override;
527 
528  void renderPoint( QPointF point, QgsSymbolRenderContext &context ) override;
529 
530  QVariantMap properties() const override;
531  bool usesMapUnits() const override;
532 
533  QgsSvgMarkerSymbolLayer *clone() const override SIP_FACTORY;
534 
535  void writeSldMarker( QDomDocument &doc, QDomElement &element, const QVariantMap &props ) const override;
536 
541  QString path() const { return mPath; }
542 
548  void setPath( const QString &path );
549 
554  double defaultAspectRatio() const { return mDefaultAspectRatio; }
555 
561  double updateDefaultAspectRatio();
562 
567  bool preservedAspectRatio() const { return mFixedAspectRatio <= 0.0; }
568 
575  bool setPreservedAspectRatio( bool par );
576 
582  double fixedAspectRatio() const { return mFixedAspectRatio; }
583 
590  void setFixedAspectRatio( double ratio ) { mFixedAspectRatio = ratio; }
591 
592  QColor fillColor() const override { return color(); }
593  void setFillColor( const QColor &color ) override { setColor( color ); }
594 
595  QColor strokeColor() const override { return mStrokeColor; }
596  void setStrokeColor( const QColor &c ) override { mStrokeColor = c; }
597 
598  double strokeWidth() const { return mStrokeWidth; }
599  void setStrokeWidth( double w ) { mStrokeWidth = w; }
600 
605  QMap<QString, QgsProperty> parameters() const { return mParameters; }
606 
611  void setParameters( const QMap<QString, QgsProperty> &parameters );
612 
618  void setStrokeWidthUnit( QgsUnitTypes::RenderUnit unit ) { mStrokeWidthUnit = unit; }
619 
624  QgsUnitTypes::RenderUnit strokeWidthUnit() const { return mStrokeWidthUnit; }
625 
626  void setStrokeWidthMapUnitScale( const QgsMapUnitScale &scale ) { mStrokeWidthMapUnitScale = scale; }
627  const QgsMapUnitScale &strokeWidthMapUnitScale() const { return mStrokeWidthMapUnitScale; }
628 
629  void setOutputUnit( QgsUnitTypes::RenderUnit unit ) override;
630  QgsUnitTypes::RenderUnit outputUnit() const override;
631 
632  void setMapUnitScale( const QgsMapUnitScale &scale ) override;
633  QgsMapUnitScale mapUnitScale() const override;
634 
635  bool writeDxf( QgsDxfExport &e, double mmMapUnitScaleFactor, const QString &layerName, QgsSymbolRenderContext &context, QPointF shift = QPointF( 0.0, 0.0 ) ) const override;
636 
637  QRectF bounds( QPointF point, QgsSymbolRenderContext &context ) override;
638 
639  void prepareExpressions( const QgsSymbolRenderContext &context ) override;
640 
641  QSet<QString> usedAttributes( const QgsRenderContext &context ) const override;
642 
643  protected:
644 
651  double calculateAspectRatio( QgsSymbolRenderContext &context, double scaledSize, bool &hasDataDefinedAspectRatio ) const;
652 
653  QString mPath;
654 
656  double mDefaultAspectRatio = 0.0;
658  double mFixedAspectRatio = 0.0;
659  //param(fill), param(stroke), param(stroke-width) are going
660  //to be replaced in memory
661  bool mHasFillParam = false;
662  QColor mStrokeColor;
663  double mStrokeWidth;
664  QMap<QString, QgsProperty> mParameters;
665 
668 
669  private:
670  double calculateSize( QgsSymbolRenderContext &context, bool &hasDataDefinedSize ) const;
671  void calculateOffsetAndRotation( QgsSymbolRenderContext &context, double scaledWidth, double scaledHeight, QPointF &offset, double &angle ) const;
672 
673 };
674 
675 
677 
678 #define DEFAULT_RASTERMARKER_SIZE 2*DEFAULT_POINT_SIZE
679 #define DEFAULT_RASTERMARKER_ANGLE 0
680 
688 {
689  public:
691  QgsRasterMarkerSymbolLayer( const QString &path = QString(),
692  double size = DEFAULT_SVGMARKER_SIZE,
694  Qgis::ScaleMethod scaleMethod = DEFAULT_SCALE_METHOD );
695 
696  ~QgsRasterMarkerSymbolLayer() override;
697 
698  // static stuff
699 
704  static QgsSymbolLayer *create( const QVariantMap &properties = QVariantMap() ) SIP_FACTORY;
705 
711  static void resolvePaths( QVariantMap &properties, const QgsPathResolver &pathResolver, bool saving );
712 
713  // implemented from base classes
714 
715  QString layerType() const override;
716 
717  void renderPoint( QPointF point, QgsSymbolRenderContext &context ) override;
718  QVariantMap properties() const override;
719  QgsRasterMarkerSymbolLayer *clone() const override SIP_FACTORY;
720  bool usesMapUnits() const override;
721  QColor color() const override;
722 
729  double calculateAspectRatio( QgsSymbolRenderContext &context, double scaledSize, bool &hasDataDefinedAspectRatio ) const;
730 
735  QString path() const { return mPath; }
736 
742  void setPath( const QString &path );
743 
749  double opacity() const { return mOpacity; }
750 
756  void setOpacity( double opacity ) { mOpacity = opacity; }
757 
762  double defaultAspectRatio() const { return mDefaultAspectRatio; }
763 
769  double updateDefaultAspectRatio();
770 
775  bool preservedAspectRatio() const { return mFixedAspectRatio <= 0.0; }
776 
783  bool setPreservedAspectRatio( bool par );
784 
790  double fixedAspectRatio() const { return mFixedAspectRatio; }
791 
798  void setFixedAspectRatio( double ratio ) { mFixedAspectRatio = ratio; }
799 
800  void setMapUnitScale( const QgsMapUnitScale &scale ) override;
801  QgsMapUnitScale mapUnitScale() const override;
802 
803  QRectF bounds( QPointF point, QgsSymbolRenderContext &context ) override;
804 
805  protected:
806 
812  void setCommonProperties( const QVariantMap &properties );
813 
819  void copyCommonProperties( QgsRasterMarkerSymbolLayer *other ) const;
820 
826  virtual QImage fetchImage( QgsRenderContext &context, const QString &path, QSize size, bool preserveAspectRatio, double opacity ) const SIP_SKIP;
827 
828  QString mPath;
830  double mOpacity = 1.0;
832  double mDefaultAspectRatio = 0.0;
834  double mFixedAspectRatio = 0.0;
835 
836  private:
837  double calculateSize( QgsSymbolRenderContext &context, bool &hasDataDefinedSize ) const;
838  void calculateOffsetAndRotation( QgsSymbolRenderContext &context, double scaledWidth, double scaledHeight, QPointF &offset, double &angle ) const;
839 
840 };
841 
842 
844 
845 #define POINT2MM(x) ( (x) * 25.4 / 72 ) // point is 1/72 of inch
846 #define MM2POINT(x) ( (x) * 72 / 25.4 )
847 
848 #define DEFAULT_FONTMARKER_FONT "Dingbats"
849 #define DEFAULT_FONTMARKER_CHR QChar('A')
850 #define DEFAULT_FONTMARKER_SIZE POINT2MM(12)
851 #define DEFAULT_FONTMARKER_COLOR QColor( 35, 35, 35 )
852 #define DEFAULT_FONTMARKER_BORDERCOLOR QColor(Qt::white)
853 #define DEFAULT_FONTMARKER_JOINSTYLE Qt::MiterJoin
854 #define DEFAULT_FONTMARKER_ANGLE 0
855 
861 {
862  public:
863 
865  QgsFontMarkerSymbolLayer( const QString &fontFamily = DEFAULT_FONTMARKER_FONT,
866  QString chr = DEFAULT_FONTMARKER_CHR,
867  double pointSize = DEFAULT_FONTMARKER_SIZE,
868  const QColor &color = DEFAULT_FONTMARKER_COLOR,
869  double angle = DEFAULT_FONTMARKER_ANGLE );
870 
871  ~QgsFontMarkerSymbolLayer() override;
872 
873  // static stuff
874 
878  static QgsSymbolLayer *create( const QVariantMap &properties = QVariantMap() ) SIP_FACTORY;
879 
883  static QgsSymbolLayer *createFromSld( QDomElement &element ) SIP_FACTORY;
884 
891  static void resolveFonts( const QVariantMap &properties, const QgsReadWriteContext &context );
892 
893  // implemented from base classes
894 
895  QString layerType() const override;
896 
897  void startRender( QgsSymbolRenderContext &context ) override;
898 
899  void stopRender( QgsSymbolRenderContext &context ) override;
900 
901  void renderPoint( QPointF point, QgsSymbolRenderContext &context ) override;
902 
903  QVariantMap properties() const override;
904 
905  QgsFontMarkerSymbolLayer *clone() const override SIP_FACTORY;
906 
907  void writeSldMarker( QDomDocument &doc, QDomElement &element, const QVariantMap &props ) const override;
908  bool usesMapUnits() const override;
909  void setOutputUnit( QgsUnitTypes::RenderUnit unit ) override;
910 
911  // new methods
912 
918  QString fontFamily() const { return mFontFamily; }
919 
925  void setFontFamily( const QString &family ) { mFontFamily = family; }
926 
933  QString fontStyle() const { return mFontStyle; }
934 
941  void setFontStyle( const QString &style ) { mFontStyle = style; }
942 
948  QString character() const { return mString; }
949 
955  void setCharacter( QString chr ) { mString = chr; }
956 
957  QColor strokeColor() const override { return mStrokeColor; }
958  void setStrokeColor( const QColor &color ) override { mStrokeColor = color; }
959 
969  double strokeWidth() const { return mStrokeWidth; }
970 
980  void setStrokeWidth( double width ) { mStrokeWidth = width; }
981 
991  QgsUnitTypes::RenderUnit strokeWidthUnit() const { return mStrokeWidthUnit; }
992 
1001  void setStrokeWidthUnit( QgsUnitTypes::RenderUnit unit ) { mStrokeWidthUnit = unit; }
1002 
1012  const QgsMapUnitScale &strokeWidthMapUnitScale() const { return mStrokeWidthMapUnitScale; }
1013 
1023  void setStrokeWidthMapUnitScale( const QgsMapUnitScale &scale ) { mStrokeWidthMapUnitScale = scale; }
1024 
1032  Qt::PenJoinStyle penJoinStyle() const { return mPenJoinStyle; }
1033 
1041  void setPenJoinStyle( Qt::PenJoinStyle style ) { mPenJoinStyle = style; }
1042 
1043  QRectF bounds( QPointF point, QgsSymbolRenderContext &context ) override;
1044 
1045  private:
1046 
1047  QString mFontFamily;
1048  QString mFontStyle;
1049  QFont mFont;
1050  std::unique_ptr< QFontMetrics >mFontMetrics;
1051 
1052  QString mString;
1053 
1054  double mChrWidth = 0;
1055  QPointF mChrOffset;
1057  double mFontSizeScale = 1.0;
1058  double mOrigSize;
1059 
1060  QColor mStrokeColor;
1061  double mStrokeWidth;
1062  QgsUnitTypes::RenderUnit mStrokeWidthUnit;
1063  QgsMapUnitScale mStrokeWidthMapUnitScale;
1064  Qt::PenJoinStyle mPenJoinStyle;
1065 
1066  QPen mPen;
1067  QBrush mBrush;
1068 
1069  bool mUseCachedPath = false;
1070  QPainterPath mCachedPath;
1071 
1072  // If font has a zero (or nearly zero) size, we skip rendering altogether..
1073  bool mNonZeroFontSize = true;
1074 
1075  QString characterToRender( QgsSymbolRenderContext &context, QPointF &charOffset, double &charWidth );
1076  void calculateOffsetAndRotation( QgsSymbolRenderContext &context, double scaledSize, bool &hasDataDefinedRotation, QPointF &offset, double &angle ) const;
1077  double calculateSize( QgsSymbolRenderContext &context );
1078 };
1079 
1080 
1092 {
1093  public:
1094 
1098  QgsAnimatedMarkerSymbolLayer( const QString &path = QString(),
1099  double size = DEFAULT_RASTERMARKER_SIZE,
1100  double angle = DEFAULT_RASTERMARKER_ANGLE );
1101 
1102  ~QgsAnimatedMarkerSymbolLayer() override;
1103 
1104  // static stuff
1105 
1109  static QgsSymbolLayer *create( const QVariantMap &properties = QVariantMap() ) SIP_FACTORY;
1110 
1111  // implemented from base classes
1112 
1113  QString layerType() const override;
1114  QVariantMap properties() const override;
1116 
1122  void setFrameRate( double rate ) { mFrameRateFps = rate; }
1123 
1129  double frameRate() const { return mFrameRateFps; }
1130 
1131  void startRender( QgsSymbolRenderContext &context ) override;
1132 
1133  protected:
1134  QImage fetchImage( QgsRenderContext &context, const QString &path, QSize size, bool preserveAspectRatio, double opacity ) const override SIP_SKIP;
1135 
1136  private:
1137  double mFrameRateFps = 10;
1138  bool mStaticPath = false;
1139  mutable QSet< QString > mPreparedPaths;
1140 
1141 };
1142 
1143 // clazy:excludeall=qstring-allocations
1144 
1145 #endif
1146 
1147 
QgsRasterMarkerSymbolLayer::defaultAspectRatio
double defaultAspectRatio() const
Returns the default marker aspect ratio between width and height, 0 if not yet calculated.
Definition: qgsmarkersymbollayer.h:762
QgsSymbolLayer::mColor
QColor mColor
Definition: qgssymbollayer.h:648
QgsFilledMarkerSymbolLayer
Filled marker symbol layer, consisting of a shape which is rendered using a QgsFillSymbol....
Definition: qgsmarkersymbollayer.h:435
QgsSimpleMarkerSymbolLayer::setStrokeWidthMapUnitScale
void setStrokeWidthMapUnitScale(const QgsMapUnitScale &scale)
Sets the map scale for the width of the marker's stroke.
Definition: qgsmarkersymbollayer.h:357
QgsSymbolLayer::setColor
virtual void setColor(const QColor &color)
Sets the "representative" color for the symbol layer.
Definition: qgssymbollayer.cpp:252
DEFAULT_SIMPLEMARKER_ANGLE
#define DEFAULT_SIMPLEMARKER_ANGLE
Definition: qgsmarkersymbollayer.h:28
QgsFontMarkerSymbolLayer::strokeColor
QColor strokeColor() const override
Returns the stroke color for the symbol layer.
Definition: qgsmarkersymbollayer.h:957
QgsRasterMarkerSymbolLayer::opacity
double opacity() const
Returns the marker opacity.
Definition: qgsmarkersymbollayer.h:749
QgsUnitTypes::RenderUnit
RenderUnit
Rendering size units.
Definition: qgsunittypes.h:167
QgsSimpleMarkerSymbolLayer::strokeStyle
Qt::PenStyle strokeStyle() const
Returns the marker's stroke style (e.g., solid, dashed, etc)
Definition: qgsmarkersymbollayer.h:263
QgsDxfExport
Exports QGIS layers to the DXF format.
Definition: qgsdxfexport.h:64
QgsFontMarkerSymbolLayer::setStrokeWidth
void setStrokeWidth(double width)
Set's the marker's stroke width.
Definition: qgsmarkersymbollayer.h:980
QgsSimpleMarkerSymbolLayer::penJoinStyle
Qt::PenJoinStyle penJoinStyle() const
Returns the marker's stroke join style (e.g., miter, bevel, etc).
Definition: qgsmarkersymbollayer.h:283
QgsReadWriteContext
The class is used as a container of context for various read/write operations on other objects.
Definition: qgsreadwritecontext.h:34
QgsMarkerSymbolLayer::mapUnitScale
QgsMapUnitScale mapUnitScale() const override
Definition: qgssymbollayer.cpp:712
QgsSimpleMarkerSymbolLayer::strokeWidthMapUnitScale
const QgsMapUnitScale & strokeWidthMapUnitScale() const
Returns the map scale for the width of the marker's stroke.
Definition: qgsmarkersymbollayer.h:365
QgsFontMarkerSymbolLayer::character
QString character() const
Returns the character(s) used when rendering points.
Definition: qgsmarkersymbollayer.h:948
QgsSymbolLayer::prepareExpressions
virtual void prepareExpressions(const QgsSymbolRenderContext &context)
Prepares all data defined property expressions for evaluation.
Definition: qgssymbollayer.cpp:276
QgsSimpleMarkerSymbolLayer::mPenJoinStyle
Qt::PenJoinStyle mPenJoinStyle
Stroke pen join style.
Definition: qgsmarkersymbollayer.h:394
QgsSimpleMarkerSymbolLayerBase::mShape
Qgis::MarkerShape mShape
Symbol shape.
Definition: qgsmarkersymbollayer.h:156
QgsSymbolLayer::subSymbol
virtual QgsSymbol * subSymbol()
Returns the symbol's sub symbol, if present.
Definition: qgssymbollayer.cpp:154
QgsSimpleMarkerSymbolLayer::mSelCache
QImage mSelCache
Cached image of selected marker, if using cached version.
Definition: qgsmarkersymbollayer.h:409
QgsSimpleMarkerSymbolLayerBase::startRender
void startRender(QgsSymbolRenderContext &context) override
Called before a set of rendering operations commences on the supplied render context.
Definition: qgsmarkersymbollayer.cpp:153
DEFAULT_FONTMARKER_ANGLE
#define DEFAULT_FONTMARKER_ANGLE
Definition: qgsmarkersymbollayer.h:854
QgsSymbolLayer::hasDataDefinedProperties
virtual bool hasDataDefinedProperties() const
Returns true if the symbol layer (or any of its sub-symbols) contains data defined properties.
Definition: qgssymbollayer.cpp:287
QgsSvgMarkerSymbolLayer::fixedAspectRatio
double fixedAspectRatio() const
Returns the marker aspect ratio between width and height to be used in rendering, if the value set is...
Definition: qgsmarkersymbollayer.h:582
QgsMarkerSymbolLayer::startRender
void startRender(QgsSymbolRenderContext &context) override
Called before a set of rendering operations commences on the supplied render context.
Definition: qgssymbollayer.cpp:528
QgsRenderContext
Contains information about the context of a rendering operation.
Definition: qgsrendercontext.h:59
DEFAULT_RASTERMARKER_SIZE
#define DEFAULT_RASTERMARKER_SIZE
Definition: qgsmarkersymbollayer.h:678
QgsSimpleMarkerSymbolLayer::setStrokeStyle
void setStrokeStyle(Qt::PenStyle strokeStyle)
Sets the marker's stroke style (e.g., solid, dashed, etc)
Definition: qgsmarkersymbollayer.h:273
QgsUnitTypes::RenderMillimeters
@ RenderMillimeters
Millimeters.
Definition: qgsunittypes.h:169
QgsRasterMarkerSymbolLayer::properties
QVariantMap properties() const override
Should be reimplemented by subclasses to return a string map that contains the configuration informat...
Definition: qgsmarkersymbollayer.cpp:3113
DEFAULT_FONTMARKER_FONT
#define DEFAULT_FONTMARKER_FONT
Definition: qgsmarkersymbollayer.h:848
QgsMarkerSymbolLayer
Abstract base class for marker symbol layers.
Definition: qgssymbollayer.h:705
QgsSymbolLayer::estimateMaxBleed
virtual double estimateMaxBleed(const QgsRenderContext &context) const
Returns the estimated maximum distance which the layer style will bleed outside the drawn shape when ...
Definition: qgssymbollayer.h:475
QgsFontMarkerSymbolLayer::setCharacter
void setCharacter(QString chr)
Sets the character(s) used when rendering points.
Definition: qgsmarkersymbollayer.h:955
QgsRasterMarkerSymbolLayer::setOpacity
void setOpacity(double opacity)
Set the marker opacity.
Definition: qgsmarkersymbollayer.h:756
QgsFontMarkerSymbolLayer::setStrokeColor
void setStrokeColor(const QColor &color) override
Sets the stroke color for the symbol layer.
Definition: qgsmarkersymbollayer.h:958
DEFAULT_SIMPLEMARKER_JOINSTYLE
#define DEFAULT_SIMPLEMARKER_JOINSTYLE
Definition: qgsmarkersymbollayer.h:26
QgsSymbol
Abstract base class for all rendered symbols.
Definition: qgssymbol.h:92
QgsMarkerSymbolLayer::setMapUnitScale
void setMapUnitScale(const QgsMapUnitScale &scale) override
Definition: qgssymbollayer.cpp:706
QgsSymbolLayer::ogrFeatureStyle
virtual QString ogrFeatureStyle(double mmScaleFactor, double mapUnitScaleFactor) const
Definition: qgssymbollayer.h:418
QgsAnimatedMarkerSymbolLayer
Animated marker symbol layer class.
Definition: qgsmarkersymbollayer.h:1091
QgsRasterMarkerSymbolLayer::clone
QgsRasterMarkerSymbolLayer * clone() const override
Shall be reimplemented by subclasses to create a deep copy of the instance.
Definition: qgsmarkersymbollayer.cpp:3132
QgsFontMarkerSymbolLayer::setFontStyle
void setFontStyle(const QString &style)
Sets the font style for the font which will be used to render the point.
Definition: qgsmarkersymbollayer.h:941
QgsSimpleMarkerSymbolLayer::setStrokeWidthUnit
void setStrokeWidthUnit(QgsUnitTypes::RenderUnit u)
Sets the unit for the width of the marker's stroke.
Definition: qgsmarkersymbollayer.h:340
QgsSymbolLayer::usesMapUnits
virtual bool usesMapUnits() const
Returns true if the symbol layer has any components which use map unit based sizes.
Definition: qgssymbollayer.cpp:313
QgsSimpleMarkerSymbolLayer::mSelBrush
QBrush mSelBrush
QBrush to use as fill of selected symbols.
Definition: qgsmarkersymbollayer.h:407
QgsSvgMarkerSymbolLayer::mParameters
QMap< QString, QgsProperty > mParameters
Definition: qgsmarkersymbollayer.h:664
SIP_FACTORY
#define SIP_FACTORY
Definition: qgis_sip.h:76
QgsSvgMarkerSymbolLayer::setStrokeWidthUnit
void setStrokeWidthUnit(QgsUnitTypes::RenderUnit unit)
Sets the units for the stroke width.
Definition: qgsmarkersymbollayer.h:618
Qgis::ScaleMethod
ScaleMethod
Scale methods.
Definition: qgis.h:219
QgsSymbolRenderContext
Definition: qgssymbolrendercontext.h:35
QgsRasterMarkerSymbolLayer::setFixedAspectRatio
void setFixedAspectRatio(double ratio)
Set the marker aspect ratio between width and height to be used in rendering, if the value set is low...
Definition: qgsmarkersymbollayer.h:798
QgsSvgMarkerSymbolLayer::strokeWidth
double strokeWidth() const
Definition: qgsmarkersymbollayer.h:598
QgsMarkerSymbolLayer::setOutputUnit
void setOutputUnit(QgsUnitTypes::RenderUnit unit) override
Sets the units to use for sizes and widths within the symbol layer.
Definition: qgssymbollayer.cpp:691
QgsFontMarkerSymbolLayer::setStrokeWidthUnit
void setStrokeWidthUnit(QgsUnitTypes::RenderUnit unit)
Sets the stroke width unit.
Definition: qgsmarkersymbollayer.h:1001
QgsAnimatedMarkerSymbolLayer::frameRate
double frameRate() const
Returns the marker frame rate in frame per second.
Definition: qgsmarkersymbollayer.h:1129
QgsSymbolLayer::writeDxf
virtual bool writeDxf(QgsDxfExport &e, double mmMapUnitScaleFactor, const QString &layerName, QgsSymbolRenderContext &context, QPointF shift=QPointF(0.0, 0.0)) const
write as DXF
Definition: qgssymbollayer.cpp:165
QgsSvgMarkerSymbolLayer::setStrokeColor
void setStrokeColor(const QColor &c) override
Sets the stroke color for the symbol layer.
Definition: qgsmarkersymbollayer.h:596
QgsSymbolLayer::clone
virtual QgsSymbolLayer * clone() const =0
Shall be reimplemented by subclasses to create a deep copy of the instance.
QgsSimpleMarkerSymbolLayerBase
Abstract base class for simple marker symbol layers. Handles creation of the symbol shapes but leaves...
Definition: qgsmarkersymbollayer.h:46
QgsSvgMarkerSymbolLayer::strokeColor
QColor strokeColor() const override
Returns the stroke color for the symbol layer.
Definition: qgsmarkersymbollayer.h:595
QgsSimpleMarkerSymbolLayer::mBrush
QBrush mBrush
QBrush corresponding to marker's fill style.
Definition: qgsmarkersymbollayer.h:400
DEFAULT_SVGMARKER_ANGLE
#define DEFAULT_SVGMARKER_ANGLE
Definition: qgsmarkersymbollayer.h:490
QgsMarkerSymbolLayer::writeSldMarker
virtual void writeSldMarker(QDomDocument &doc, QDomElement &element, const QVariantMap &props) const
Writes the symbol layer definition as a SLD XML element.
Definition: qgssymbollayer.h:929
QgsSymbolLayer
Definition: qgssymbollayer.h:54
SIP_SKIP
#define SIP_SKIP
Definition: qgis_sip.h:126
QgsSimpleMarkerSymbolLayer::fillColor
QColor fillColor() const override
Returns the fill color for the symbol layer.
Definition: qgsmarkersymbollayer.h:232
QgsRasterMarkerSymbolLayer::preservedAspectRatio
bool preservedAspectRatio() const
Returns the preserved aspect ratio value, true if fixed aspect ratio has been lower or equal to 0.
Definition: qgsmarkersymbollayer.h:775
QgsSvgMarkerSymbolLayer::mStrokeWidthMapUnitScale
QgsMapUnitScale mStrokeWidthMapUnitScale
Definition: qgsmarkersymbollayer.h:667
QgsSymbolLayer::setSubSymbol
virtual bool setSubSymbol(QgsSymbol *symbol)
Sets layer's subsymbol. takes ownership of the passed symbol.
Definition: qgssymbollayer.cpp:159
QgsRasterMarkerSymbolLayer::layerType
QString layerType() const override
Returns a string that represents this layer type.
Definition: qgsmarkersymbollayer.cpp:2899
QgsSimpleMarkerSymbolLayer::setPenCapStyle
void setPenCapStyle(Qt::PenCapStyle style)
Sets the marker's stroke cap style (e.g., flat, round, etc).
Definition: qgsmarkersymbollayer.h:314
QgsSvgMarkerSymbolLayer::fillColor
QColor fillColor() const override
Returns the fill color for the symbol layer.
Definition: qgsmarkersymbollayer.h:592
QgsSvgMarkerSymbolLayer::setStrokeWidth
void setStrokeWidth(double w)
Definition: qgsmarkersymbollayer.h:599
QgsSvgMarkerSymbolLayer::path
QString path() const
Returns the marker SVG path.
Definition: qgsmarkersymbollayer.h:541
DEFAULT_FONTMARKER_SIZE
#define DEFAULT_FONTMARKER_SIZE
Definition: qgsmarkersymbollayer.h:850
QgsSimpleMarkerSymbolLayer
Simple marker symbol layer, consisting of a rendered shape with solid fill color and an stroke.
Definition: qgsmarkersymbollayer.h:176
QgsSimpleMarkerSymbolLayerBase::mPolygon
QPolygonF mPolygon
Polygon of points in shape. If polygon is empty then shape is using mPath.
Definition: qgsmarkersymbollayer.h:150
DEFAULT_FONTMARKER_CHR
#define DEFAULT_FONTMARKER_CHR
Definition: qgsmarkersymbollayer.h:849
QgsSvgMarkerSymbolLayer::mStrokeWidth
double mStrokeWidth
Definition: qgsmarkersymbollayer.h:663
QgsSvgMarkerSymbolLayer
Definition: qgsmarkersymbollayer.h:496
qgis_sip.h
QgsMarkerSymbolLayer::outputUnit
QgsUnitTypes::RenderUnit outputUnit() const override
Returns the units to use for sizes and widths within the symbol layer.
Definition: qgssymbollayer.cpp:697
SIP_TRANSFER
#define SIP_TRANSFER
Definition: qgis_sip.h:36
DEFAULT_SIMPLEMARKER_BORDERCOLOR
#define DEFAULT_SIMPLEMARKER_BORDERCOLOR
Definition: qgsmarkersymbollayer.h:25
QgsSymbolLayer::properties
virtual QVariantMap properties() const =0
Should be reimplemented by subclasses to return a string map that contains the configuration informat...
QgsSimpleMarkerSymbolLayer::strokeWidth
double strokeWidth() const
Returns the width of the marker's stroke.
Definition: qgsmarkersymbollayer.h:322
QgsFontMarkerSymbolLayer::setPenJoinStyle
void setPenJoinStyle(Qt::PenJoinStyle style)
Sets the stroke join style.
Definition: qgsmarkersymbollayer.h:1041
QgsRasterMarkerSymbolLayer
Raster marker symbol layer class.
Definition: qgsmarkersymbollayer.h:687
QgsSimpleMarkerSymbolLayer::mStrokeColor
QColor mStrokeColor
Stroke color.
Definition: qgsmarkersymbollayer.h:384
qgssymbollayer.h
QgsSvgMarkerSymbolLayer::mStrokeWidthUnit
QgsUnitTypes::RenderUnit mStrokeWidthUnit
Definition: qgsmarkersymbollayer.h:666
QgsRasterMarkerSymbolLayer::mPath
QString mPath
Definition: qgsmarkersymbollayer.h:828
QgsMapUnitScale
Struct for storing maximum and minimum scales for measurements in map units.
Definition: qgsmapunitscale.h:36
QgsSimpleMarkerSymbolLayer::strokeWidthUnit
QgsUnitTypes::RenderUnit strokeWidthUnit() const
Returns the unit for the width of the marker's stroke.
Definition: qgsmarkersymbollayer.h:348
QgsSimpleMarkerSymbolLayer::setStrokeWidth
void setStrokeWidth(double w)
Sets the width of the marker's stroke.
Definition: qgsmarkersymbollayer.h:331
QgsFontMarkerSymbolLayer::setFontFamily
void setFontFamily(const QString &family)
Sets the font family for the font which will be used to render the point.
Definition: qgsmarkersymbollayer.h:925
QgsSimpleMarkerSymbolLayerBase::bounds
QRectF bounds(QPointF point, QgsSymbolRenderContext &context) override
Returns the approximate bounding box of the marker symbol layer, taking into account any data defined...
Definition: qgsmarkersymbollayer.cpp:287
QgsRasterMarkerSymbolLayer::path
QString path() const
Returns the marker raster image path.
Definition: qgsmarkersymbollayer.h:735
QgsSvgMarkerSymbolLayer::defaultAspectRatio
double defaultAspectRatio() const
Returns the default marker aspect ratio between width and height, 0 if not yet calculated.
Definition: qgsmarkersymbollayer.h:554
QgsSymbolLayer::usedAttributes
virtual QSet< QString > usedAttributes(const QgsRenderContext &context) const
Returns the set of attributes referenced by the layer.
Definition: qgssymbollayer.cpp:328
QgsSvgMarkerSymbolLayer::setStrokeWidthMapUnitScale
void setStrokeWidthMapUnitScale(const QgsMapUnitScale &scale)
Definition: qgsmarkersymbollayer.h:626
QgsSimpleMarkerSymbolLayer::strokeColor
QColor strokeColor() const override
Returns the marker's stroke color.
Definition: qgsmarkersymbollayer.h:245
QgsSimpleMarkerSymbolLayerBase::shape
Qgis::MarkerShape shape() const
Returns the shape for the rendered marker symbol.
Definition: qgsmarkersymbollayer.h:79
QgsSimpleMarkerSymbolLayer::mSelPen
QPen mSelPen
QPen to use as stroke of selected symbols.
Definition: qgsmarkersymbollayer.h:405
QgsRasterMarkerSymbolLayer::fixedAspectRatio
double fixedAspectRatio() const
Returns the marker aspect ratio between width and height to be used in rendering, if the value set is...
Definition: qgsmarkersymbollayer.h:790
QgsFontMarkerSymbolLayer::fontStyle
QString fontStyle() const
Returns the font style for the associated font which will be used to render the point.
Definition: qgsmarkersymbollayer.h:933
QgsSimpleMarkerSymbolLayerBase::renderPoint
void renderPoint(QPointF point, QgsSymbolRenderContext &context) override
Renders a marker at the specified point.
Definition: qgsmarkersymbollayer.cpp:201
QgsSvgMarkerSymbolLayer::setFillColor
void setFillColor(const QColor &color) override
Sets the fill color for the symbol layer.
Definition: qgsmarkersymbollayer.h:593
QgsSvgMarkerSymbolLayer::strokeWidthMapUnitScale
const QgsMapUnitScale & strokeWidthMapUnitScale() const
Definition: qgsmarkersymbollayer.h:627
QgsSvgMarkerSymbolLayer::setFixedAspectRatio
void setFixedAspectRatio(double ratio)
Set the marker aspect ratio between width and height to be used in rendering, if the value set is low...
Definition: qgsmarkersymbollayer.h:590
SIP_FORCE
#define SIP_FORCE
Definition: qgis_sip.h:131
c
As part of the API refactoring and improvements which landed in the Processing API was substantially reworked from the x version This was done in order to allow much of the underlying Processing framework to be ported into c
Definition: porting_processing.dox:1
QgsSimpleMarkerSymbolLayerBase::mPath
QPainterPath mPath
Painter path representing shape. If mPolygon is empty then the shape is stored in mPath.
Definition: qgsmarkersymbollayer.h:153
DEFAULT_SVGMARKER_SIZE
#define DEFAULT_SVGMARKER_SIZE
Definition: qgsmarkersymbollayer.h:489
QgsSimpleMarkerSymbolLayer::setStrokeColor
void setStrokeColor(const QColor &color) override
Sets the marker's stroke color.
Definition: qgsmarkersymbollayer.h:254
QgsFontMarkerSymbolLayer
Definition: qgsmarkersymbollayer.h:860
DEFAULT_SCALE_METHOD
#define DEFAULT_SCALE_METHOD
Definition: qgssymbollayer.h:19
Qgis::MarkerShape::Circle
@ Circle
Circle.
QgsFillSymbol
A fill symbol type, for rendering Polygon and MultiPolygon geometries.
Definition: qgsfillsymbol.h:29
QgsMarkerSymbolLayer::renderPoint
virtual void renderPoint(QPointF point, QgsSymbolRenderContext &context)=0
Renders a marker at the specified point.
QgsSvgMarkerSymbolLayer::preservedAspectRatio
bool preservedAspectRatio() const
Returns the preserved aspect ratio value, true if fixed aspect ratio has been lower or equal to 0.
Definition: qgsmarkersymbollayer.h:567
QgsSvgMarkerSymbolLayer::parameters
QMap< QString, QgsProperty > parameters() const
Returns the dynamic SVG parameters.
Definition: qgsmarkersymbollayer.h:605
QgsMarkerSymbolLayer::bounds
virtual QRectF bounds(QPointF point, QgsSymbolRenderContext &context)=0
Returns the approximate bounding box of the marker symbol layer, taking into account any data defined...
QgsFontMarkerSymbolLayer::penJoinStyle
Qt::PenJoinStyle penJoinStyle() const
Returns the stroke join style.
Definition: qgsmarkersymbollayer.h:1032
QgsSimpleMarkerSymbolLayer::mCache
QImage mCache
Cached image of marker, if using cached version.
Definition: qgsmarkersymbollayer.h:403
QgsSymbolLayer::layerType
virtual QString layerType() const =0
Returns a string that represents this layer type.
QgsSymbolLayer::color
virtual QColor color() const
Returns the "representative" color of the symbol layer.
Definition: qgssymbollayer.cpp:247
QgsSvgMarkerSymbolLayer::mPath
QString mPath
Definition: qgsmarkersymbollayer.h:653
QgsRasterMarkerSymbolLayer::create
static QgsSymbolLayer * create(const QVariantMap &properties=QVariantMap())
Creates a raster marker symbol layer from a string map of properties.
Definition: qgsmarkersymbollayer.cpp:2802
QgsFontMarkerSymbolLayer::setStrokeWidthMapUnitScale
void setStrokeWidthMapUnitScale(const QgsMapUnitScale &scale)
Sets the stroke width map unit scale.
Definition: qgsmarkersymbollayer.h:1023
QgsSimpleMarkerSymbolLayer::setPenJoinStyle
void setPenJoinStyle(Qt::PenJoinStyle style)
Sets the marker's stroke join style (e.g., miter, bevel, etc).
Definition: qgsmarkersymbollayer.h:294
QgsSvgMarkerSymbolLayer::strokeWidthUnit
QgsUnitTypes::RenderUnit strokeWidthUnit() const
Returns the units for the stroke width.
Definition: qgsmarkersymbollayer.h:624
Qgis::MarkerShape
MarkerShape
Marker shapes.
Definition: qgis.h:1370
DEFAULT_FONTMARKER_COLOR
#define DEFAULT_FONTMARKER_COLOR
Definition: qgsmarkersymbollayer.h:851
DEFAULT_SIMPLEMARKER_COLOR
#define DEFAULT_SIMPLEMARKER_COLOR
Definition: qgsmarkersymbollayer.h:24
QgsRasterMarkerSymbolLayer::fetchImage
virtual QImage fetchImage(QgsRenderContext &context, const QString &path, QSize size, bool preserveAspectRatio, double opacity) const
Fetches the image to render.
Definition: qgsmarkersymbollayer.cpp:2996
MathUtils::angle
double ANALYSIS_EXPORT angle(QgsPoint *p1, QgsPoint *p2, QgsPoint *p3, QgsPoint *p4)
Calculates the angle between two segments (in 2 dimension, z-values are ignored)
Definition: MathUtils.cpp:786
QgsMarkerSymbolLayer::stopRender
void stopRender(QgsSymbolRenderContext &context) override
Called after a set of rendering operations has finished on the supplied render context.
Definition: qgssymbollayer.cpp:533
QgsFontMarkerSymbolLayer::strokeWidthMapUnitScale
const QgsMapUnitScale & strokeWidthMapUnitScale() const
Returns the stroke width map unit scale.
Definition: qgsmarkersymbollayer.h:1012
QgsPathResolver
Resolves relative paths into absolute paths and vice versa. Used for writing.
Definition: qgspathresolver.h:31
QgsFontMarkerSymbolLayer::strokeWidthUnit
QgsUnitTypes::RenderUnit strokeWidthUnit() const
Returns the stroke width unit.
Definition: qgsmarkersymbollayer.h:991
QgsFontMarkerSymbolLayer::fontFamily
QString fontFamily() const
Returns the font family name for the associated font which will be used to render the point.
Definition: qgsmarkersymbollayer.h:918
QgsSimpleMarkerSymbolLayerBase::setShape
void setShape(Qgis::MarkerShape shape)
Sets the rendered marker shape.
Definition: qgsmarkersymbollayer.h:86
QgsSimpleMarkerSymbolLayer::mPen
QPen mPen
QPen corresponding to marker's stroke style.
Definition: qgsmarkersymbollayer.h:398
QgsAnimatedMarkerSymbolLayer::setFrameRate
void setFrameRate(double rate)
Sets the marker frame rate in frame per second.
Definition: qgsmarkersymbollayer.h:1122
QgsSimpleMarkerSymbolLayer::setFillColor
void setFillColor(const QColor &color) override
Sets the fill color for the symbol layer.
Definition: qgsmarkersymbollayer.h:233
QgsFontMarkerSymbolLayer::strokeWidth
double strokeWidth() const
Returns the marker's stroke width.
Definition: qgsmarkersymbollayer.h:969
QgsSvgMarkerSymbolLayer::mStrokeColor
QColor mStrokeColor
Definition: qgsmarkersymbollayer.h:662
QgsSimpleMarkerSymbolLayerBase::stopRender
void stopRender(QgsSymbolRenderContext &context) override
Called after a set of rendering operations has finished on the supplied render context.
Definition: qgsmarkersymbollayer.cpp:196
DEFAULT_RASTERMARKER_ANGLE
#define DEFAULT_RASTERMARKER_ANGLE
Definition: qgsmarkersymbollayer.h:679
QgsSimpleMarkerSymbolLayer::mStrokeWidthMapUnitScale
QgsMapUnitScale mStrokeWidthMapUnitScale
Stroke width map unit scale.
Definition: qgsmarkersymbollayer.h:392
QgsSimpleMarkerSymbolLayer::penCapStyle
Qt::PenCapStyle penCapStyle() const
Returns the marker's stroke cap style (e.g., flat, round, etc).
Definition: qgsmarkersymbollayer.h:304
DEFAULT_SIMPLEMARKER_SIZE
#define DEFAULT_SIMPLEMARKER_SIZE
Definition: qgsmarkersymbollayer.h:27