QGIS API Documentation  2.14.0-Essen
qgssymbollayerv2.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgssymbollayerv2.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 #ifndef QGSSYMBOLLAYERV2_H
16 #define QGSSYMBOLLAYERV2_H
17 
18 // MSVC compiler doesn't have defined M_PI in math.h
19 #ifndef M_PI
20 #define M_PI 3.14159265358979323846
21 #endif
22 
23 #define DEG2RAD(x) ((x)*M_PI/180)
24 #define DEFAULT_SCALE_METHOD QgsSymbolV2::ScaleDiameter
25 
26 #include <QColor>
27 #include <QMap>
28 #include <QPointF>
29 #include <QSet>
30 #include <QDomDocument>
31 #include <QDomElement>
32 
33 #include "qgssymbolv2.h"
34 #include "qgssymbollayerv2utils.h" // QgsStringMap
35 #include "qgsfield.h"
36 
37 class QPainter;
38 class QSize;
39 class QPolygonF;
40 
41 class QgsDxfExport;
42 class QgsExpression;
43 class QgsDataDefined;
44 class QgsRenderContext;
45 class QgsPaintEffect;
46 
47 class CORE_EXPORT QgsSymbolLayerV2
48 {
49  public:
50 
51  virtual ~QgsSymbolLayerV2();
52 
56  virtual QColor color() const { return mColor; }
60  virtual void setColor( const QColor& color ) { mColor = color; }
61 
64  virtual void setOutlineColor( const QColor& color ) { Q_UNUSED( color ); }
65 
68  virtual QColor outlineColor() const { return QColor(); }
69 
72  virtual void setFillColor( const QColor& color ) { Q_UNUSED( color ); }
73 
76  virtual QColor fillColor() const { return QColor(); }
77 
82  virtual QString layerType() const = 0;
83 
84  virtual void startRender( QgsSymbolV2RenderContext& context ) = 0;
85  virtual void stopRender( QgsSymbolV2RenderContext& context ) = 0;
86 
90  virtual QgsSymbolLayerV2* clone() const = 0;
91 
92  virtual void toSld( QDomDocument &doc, QDomElement &element, const QgsStringMap& props ) const
93  { Q_UNUSED( props ); element.appendChild( doc.createComment( QString( "SymbolLayerV2 %1 not implemented yet" ).arg( layerType() ) ) ); }
94 
95  virtual QString ogrFeatureStyle( double mmScaleFactor, double mapUnitScaleFactor ) const { Q_UNUSED( mmScaleFactor ); Q_UNUSED( mapUnitScaleFactor ); return QString(); }
96 
102  virtual QgsStringMap properties() const = 0;
103 
104  virtual void drawPreviewIcon( QgsSymbolV2RenderContext& context, QSize size ) = 0;
105 
106  virtual QgsSymbolV2* subSymbol() { return nullptr; }
108  virtual bool setSubSymbol( QgsSymbolV2* symbol ) { delete symbol; return false; }
109 
110  QgsSymbolV2::SymbolType type() const { return mType; }
111 
113  virtual bool isCompatibleWithSymbol( QgsSymbolV2* symbol ) const;
114 
115  void setLocked( bool locked ) { mLocked = locked; }
116  bool isLocked() const { return mLocked; }
117 
122  virtual double estimateMaxBleed() const { return 0; }
123 
124  virtual void setOutputUnit( QgsSymbolV2::OutputUnit unit ) { Q_UNUSED( unit ); }
126 
127  virtual void setMapUnitScale( const QgsMapUnitScale& scale ) { Q_UNUSED( scale ); }
128  virtual QgsMapUnitScale mapUnitScale() const { return QgsMapUnitScale(); }
129 
130  // used only with rending with symbol levels is turned on (0 = first pass, 1 = second, ...)
131  void setRenderingPass( int renderingPass ) { mRenderingPass = renderingPass; }
132  int renderingPass() const { return mRenderingPass; }
133 
137  virtual QSet<QString> usedAttributes() const;
138 
142  Q_DECL_DEPRECATED virtual const QgsExpression* dataDefinedProperty( const QString& property ) const;
143 
147  Q_DECL_DEPRECATED virtual QString dataDefinedPropertyString( const QString& property ) const;
148 
152  Q_DECL_DEPRECATED virtual void setDataDefinedProperty( const QString& property, const QString& expressionString );
153 
162  virtual QgsDataDefined* getDataDefinedProperty( const QString& property ) const;
163 
171  virtual void setDataDefinedProperty( const QString& property, QgsDataDefined* dataDefined );
172 
180  virtual void removeDataDefinedProperty( const QString& property );
181 
187  virtual void removeDataDefinedProperties();
188 
193  virtual bool hasDataDefinedProperties() const;
194 
204  virtual bool hasDataDefinedProperty( const QString& property ) const;
205 
221  Q_DECL_DEPRECATED virtual QVariant evaluateDataDefinedProperty( const QString& property, const QgsFeature* feature, const QVariant& defaultVal = QVariant(), bool *ok = nullptr ) const;
222 
236  virtual QVariant evaluateDataDefinedProperty( const QString& property, const QgsSymbolV2RenderContext& context, const QVariant& defaultVal = QVariant(), bool *ok = nullptr ) const;
237 
238  virtual bool writeDxf( QgsDxfExport& e,
239  double mmMapUnitScaleFactor,
240  const QString& layerName,
241  QgsSymbolV2RenderContext* context,
242  const QgsFeature* f,
243  QPointF shift = QPointF( 0.0, 0.0 ) ) const;
244 
245  virtual double dxfWidth( const QgsDxfExport& e, QgsSymbolV2RenderContext& context ) const;
246  virtual double dxfOffset( const QgsDxfExport& e, QgsSymbolV2RenderContext& context ) const;
247 
248  virtual QColor dxfColor( QgsSymbolV2RenderContext& context ) const;
249 
250  virtual QVector<qreal> dxfCustomDashPattern( QgsSymbolV2::OutputUnit& unit ) const;
251  virtual Qt::PenStyle dxfPenStyle() const;
252  virtual QColor dxfBrushColor( QgsSymbolV2RenderContext& context ) const;
253  virtual Qt::BrushStyle dxfBrushStyle() const;
254 
260  QgsPaintEffect* paintEffect() const;
261 
267  void setPaintEffect( QgsPaintEffect* effect );
268 
269  protected:
270  QgsSymbolLayerV2( QgsSymbolV2::SymbolType type, bool locked = false );
271 
273  bool mLocked;
276 
280 
281  // Configuration of selected symbology implementation
282  static const bool selectionIsOpaque = true; // Selection ignores symbol alpha
283  static const bool selectFillBorder = false; // Fill symbol layer also selects border symbology
284  static const bool selectFillStyle = false; // Fill symbol uses symbol layer style..
285 
292  Q_DECL_DEPRECATED virtual void prepareExpressions( const QgsFields* fields, double scale = -1.0 );
293 
299  virtual void prepareExpressions( const QgsSymbolV2RenderContext& context );
300 
304  Q_DECL_DEPRECATED virtual QgsExpression* expression( const QString& property ) const;
305 
310  void saveDataDefinedProperties( QgsStringMap& stringMap ) const;
311 
317  void restoreDataDefinedProperties( const QgsStringMap& stringMap );
318 
322  void copyDataDefinedProperties( QgsSymbolLayerV2* destLayer ) const;
323 
328  void copyPaintEffect( QgsSymbolLayerV2* destLayer ) const;
329 
330  static const QString EXPR_SIZE;
331  static const QString EXPR_ANGLE;
332  static const QString EXPR_NAME;
333  static const QString EXPR_COLOR;
337  static const QString EXPR_FILL;
338  static const QString EXPR_OUTLINE;
339  static const QString EXPR_OFFSET;
340  static const QString EXPR_CHAR;
341  static const QString EXPR_FILL_COLOR;
343  static const QString EXPR_WIDTH;
344  static const QString EXPR_HEIGHT;
345  static const QString EXPR_SYMBOL_NAME;
346  static const QString EXPR_ROTATION;
347  static const QString EXPR_FILL_STYLE;
350  static const QString EXPR_JOIN_STYLE;
352  static const QString EXPR_COLOR2;
353  static const QString EXPR_LINEANGLE;
356  static const QString EXPR_SPREAD;
363  static const QString EXPR_BLUR_RADIUS;
364  static const QString EXPR_DISTANCE;
368  static const QString EXPR_SVG_FILE;
372  static const QString EXPR_LINEWIDTH;
373  static const QString EXPR_DISTANCE_X;
374  static const QString EXPR_DISTANCE_Y;
377  static const QString EXPR_FILE;
378  static const QString EXPR_ALPHA;
379  static const QString EXPR_CUSTOMDASH;
380  static const QString EXPR_LINE_STYLE;
381  static const QString EXPR_JOINSTYLE; //near duplicate is required to maintain project compatibility
382  static const QString EXPR_CAPSTYLE;
383  static const QString EXPR_PLACEMENT;
384  static const QString EXPR_INTERVAL;
388 };
389 
391 
392 class CORE_EXPORT QgsMarkerSymbolLayerV2 : public QgsSymbolLayerV2
393 {
394  public:
395 
397  {
400  Right
401  };
402 
404  {
407  Bottom
408  };
409 
410  void startRender( QgsSymbolV2RenderContext& context ) override;
411 
412  virtual void renderPoint( QPointF point, QgsSymbolV2RenderContext& context ) = 0;
413 
414  void drawPreviewIcon( QgsSymbolV2RenderContext& context, QSize size ) override;
415 
416  void setAngle( double angle ) { mAngle = angle; }
417  double angle() const { return mAngle; }
418 
425  void setLineAngle( double lineAngle ) { mLineAngle = lineAngle; }
426 
427  void setSize( double size ) { mSize = size; }
428  double size() const { return mSize; }
429 
430  void setScaleMethod( QgsSymbolV2::ScaleMethod scaleMethod ) { mScaleMethod = scaleMethod; }
431  QgsSymbolV2::ScaleMethod scaleMethod() const { return mScaleMethod; }
432 
433  void setOffset( QPointF offset ) { mOffset = offset; }
434  QPointF offset() const { return mOffset; }
435 
436  virtual void toSld( QDomDocument &doc, QDomElement &element, const QgsStringMap& props ) const override;
437 
438  virtual void writeSldMarker( QDomDocument &doc, QDomElement &element, const QgsStringMap& props ) const
439  { Q_UNUSED( props ); element.appendChild( doc.createComment( QString( "QgsMarkerSymbolLayerV2 %1 not implemented yet" ).arg( layerType() ) ) ); }
440 
441  void setOffsetUnit( QgsSymbolV2::OutputUnit unit ) { mOffsetUnit = unit; }
442  QgsSymbolV2::OutputUnit offsetUnit() const { return mOffsetUnit; }
443 
444  void setOffsetMapUnitScale( const QgsMapUnitScale& scale ) { mOffsetMapUnitScale = scale; }
445  const QgsMapUnitScale& offsetMapUnitScale() const { return mOffsetMapUnitScale; }
446 
447  void setSizeUnit( QgsSymbolV2::OutputUnit unit ) { mSizeUnit = unit; }
448  QgsSymbolV2::OutputUnit sizeUnit() const { return mSizeUnit; }
449 
450  void setSizeMapUnitScale( const QgsMapUnitScale& scale ) { mSizeMapUnitScale = scale; }
451  const QgsMapUnitScale& sizeMapUnitScale() const { return mSizeMapUnitScale; }
452 
453  void setOutputUnit( QgsSymbolV2::OutputUnit unit ) override;
454  QgsSymbolV2::OutputUnit outputUnit() const override;
455 
456  void setMapUnitScale( const QgsMapUnitScale& scale ) override;
457  QgsMapUnitScale mapUnitScale() const override;
458 
459  void setHorizontalAnchorPoint( HorizontalAnchorPoint h ) { mHorizontalAnchorPoint = h; }
460  HorizontalAnchorPoint horizontalAnchorPoint() const { return mHorizontalAnchorPoint; }
461 
462  void setVerticalAnchorPoint( VerticalAnchorPoint v ) { mVerticalAnchorPoint = v; }
463  VerticalAnchorPoint verticalAnchorPoint() const { return mVerticalAnchorPoint; }
464 
471  //TODO QGIS 3.0 - make pure virtual
472  virtual QRectF bounds( QPointF point, QgsSymbolV2RenderContext& context ) { Q_UNUSED( context ); Q_UNUSED( point ); return QRectF(); }
473 
474  protected:
475  QgsMarkerSymbolLayerV2( bool locked = false );
476 
477  //handles marker offset and anchor point shift together
478  void markerOffset( QgsSymbolV2RenderContext& context, double& offsetX, double& offsetY ) const;
479 
481  void markerOffset( QgsSymbolV2RenderContext& context, double width, double height, double& offsetX, double& offsetY ) const;
482 
484  void markerOffset( QgsSymbolV2RenderContext& context, double width, double height,
485  QgsSymbolV2::OutputUnit widthUnit, QgsSymbolV2::OutputUnit heightUnit,
486  double& offsetX, double& offsetY,
487  const QgsMapUnitScale &widthMapUnitScale, const QgsMapUnitScale &heightMapUnitScale ) const;
488 
489  static QPointF _rotatedOffset( QPointF offset, double angle );
490 
491  double mAngle;
492  double mLineAngle;
493  double mSize;
502 
503  private:
504  static QgsMarkerSymbolLayerV2::HorizontalAnchorPoint decodeHorizontalAnchorPoint( const QString& str );
505  static QgsMarkerSymbolLayerV2::VerticalAnchorPoint decodeVerticalAnchorPoint( const QString& str );
506 };
507 
508 class CORE_EXPORT QgsLineSymbolLayerV2 : public QgsSymbolLayerV2
509 {
510  public:
511  virtual void renderPolyline( const QPolygonF& points, QgsSymbolV2RenderContext& context ) = 0;
512 
513  virtual void renderPolygonOutline( const QPolygonF& points, QList<QPolygonF>* rings, QgsSymbolV2RenderContext& context );
514 
515  virtual void setWidth( double width ) { mWidth = width; }
516  virtual double width() const { return mWidth; }
517 
518  double offset() const { return mOffset; }
519  void setOffset( double offset ) { mOffset = offset; }
520 
521  void setWidthUnit( QgsSymbolV2::OutputUnit unit ) { mWidthUnit = unit; }
522  QgsSymbolV2::OutputUnit widthUnit() const { return mWidthUnit; }
523 
524  void setWidthMapUnitScale( const QgsMapUnitScale& scale ) { mWidthMapUnitScale = scale; }
525  const QgsMapUnitScale& widthMapUnitScale() const { return mWidthMapUnitScale; }
526 
527  void setOffsetUnit( QgsSymbolV2::OutputUnit unit ) { mOffsetUnit = unit; }
528  QgsSymbolV2::OutputUnit offsetUnit() const { return mOffsetUnit; }
529 
530  void setOffsetMapUnitScale( const QgsMapUnitScale& scale ) { mOffsetMapUnitScale = scale; }
531  const QgsMapUnitScale& offsetMapUnitScale() const { return mOffsetMapUnitScale; }
532 
533  void setOutputUnit( QgsSymbolV2::OutputUnit unit ) override;
534  QgsSymbolV2::OutputUnit outputUnit() const override;
535 
536  void setMapUnitScale( const QgsMapUnitScale& scale ) override;
537  QgsMapUnitScale mapUnitScale() const override;
538 
539  void drawPreviewIcon( QgsSymbolV2RenderContext& context, QSize size ) override;
540 
541  virtual double dxfWidth( const QgsDxfExport& e, QgsSymbolV2RenderContext& context ) const override;
542 
543  protected:
544  QgsLineSymbolLayerV2( bool locked = false );
545 
546  double mWidth;
549  double mOffset;
552 };
553 
554 class CORE_EXPORT QgsFillSymbolLayerV2 : public QgsSymbolLayerV2
555 {
556  public:
557  virtual void renderPolygon( const QPolygonF& points, QList<QPolygonF>* rings, QgsSymbolV2RenderContext& context ) = 0;
558 
559  void drawPreviewIcon( QgsSymbolV2RenderContext& context, QSize size ) override;
560 
561  void setAngle( double angle ) { mAngle = angle; }
562  double angle() const { return mAngle; }
563 
564  protected:
565  QgsFillSymbolLayerV2( bool locked = false );
567  void _renderPolygon( QPainter* p, const QPolygonF& points, const QList<QPolygonF>* rings, QgsSymbolV2RenderContext& context );
568 
569  double mAngle;
570 };
571 
572 class QgsSymbolLayerV2Widget; // why does SIP fail, when this isn't here
573 
574 #endif
575 
576 
QgsSymbolV2::SymbolType mType
static const QString EXPR_DISTANCE_Y
Class for parsing and evaluation of expressions (formerly called "search strings").
VerticalAnchorPoint verticalAnchorPoint() const
static const QString EXPR_CHAR
static const QString EXPR_OUTLINE_COLOR
virtual void setMapUnitScale(const QgsMapUnitScale &scale)
void setLocked(bool locked)
static const QString EXPR_DISPLACEMENT_Y
static const QString EXPR_JOINSTYLE
virtual QgsSymbolV2::OutputUnit outputUnit() const
OutputUnit
The unit of the output.
Definition: qgssymbolv2.h:62
virtual void setOutputUnit(QgsSymbolV2::OutputUnit unit)
QgsMapUnitScale mSizeMapUnitScale
A container class for data source field mapping or expression.
static const QString EXPR_BORDER_COLOR
virtual double width() const
HorizontalAnchorPoint horizontalAnchorPoint() const
virtual void setOutlineColor(const QColor &color)
Set outline color.
QDomNode appendChild(const QDomNode &newChild)
static const QString EXPR_USE_WHOLE_SHAPE
static const QString EXPR_REFERENCE2_Y
virtual QRectF bounds(QPointF point, QgsSymbolV2RenderContext &context)
Returns the approximate bounding box of the marker symbol layer, taking into account any data defined...
static const QString EXPR_DISPLACEMENT_X
void setScaleMethod(QgsSymbolV2::ScaleMethod scaleMethod)
QMap< QString, QgsDataDefined * > mDataDefinedProperties
static const QString EXPR_WIDTH
static const QString EXPR_CUSTOMDASH
virtual void writeSldMarker(QDomDocument &doc, QDomElement &element, const QgsStringMap &props) const
void setOffset(QPointF offset)
void setHorizontalAnchorPoint(HorizontalAnchorPoint h)
Base class for visual effects which can be applied to QPicture drawings.
QgsPaintEffect * mPaintEffect
Container of fields for a vector layer.
Definition: qgsfield.h:187
static const QString EXPR_BLUR_RADIUS
void setVerticalAnchorPoint(VerticalAnchorPoint v)
static const QString EXPR_COORDINATE_MODE
static const QString EXPR_COLOR2
QgsSymbolV2::OutputUnit sizeUnit() const
static const QString EXPR_VERTICAL_ANCHOR_POINT
static const QString EXPR_OFFSET_ALONG_LINE
QgsMapUnitScale mWidthMapUnitScale
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Definition: qgsfeature.h:187
virtual double dxfWidth(const QgsDxfExport &e, QgsSymbolV2RenderContext &context) const
void setOffsetMapUnitScale(const QgsMapUnitScale &scale)
QgsMapUnitScale mOffsetMapUnitScale
virtual QColor fillColor() const
Get fill color.
static const QString EXPR_OFFSET
QgsSymbolV2::OutputUnit mOffsetUnit
void setWidthUnit(QgsSymbolV2::OutputUnit unit)
static const QString EXPR_SIZE
void setOffsetUnit(QgsSymbolV2::OutputUnit unit)
virtual double estimateMaxBleed() const
Returns the estimated maximum distance which the layer style will bleed outside the drawn shape...
virtual void startRender(QgsSymbolV2RenderContext &context)=0
static const QString EXPR_JOIN_STYLE
static const QString EXPR_FILL_STYLE
static const QString EXPR_REFERENCE1_Y
static const QString EXPR_BORDER_STYLE
static const QString EXPR_REFERENCE2_X
static const QString EXPR_REFERENCE2_ISCENTROID
QgsSymbolV2::OutputUnit offsetUnit() const
Mixed units in symbol layers.
Definition: qgssymbolv2.h:66
static const QString EXPR_LINEWIDTH
static const QString EXPR_PLACEMENT
static const QString EXPR_FILL_COLOR
static const QString EXPR_SPREAD
void setOffset(double offset)
static const QString EXPR_LINEANGLE
static const QString EXPR_ALPHA
QgsSymbolV2::OutputUnit mWidthUnit
void setRenderingPass(int renderingPass)
void setWidthMapUnitScale(const QgsMapUnitScale &scale)
virtual void setWidth(double width)
void setAngle(double angle)
QgsSymbolV2::ScaleMethod mScaleMethod
void setSizeUnit(QgsSymbolV2::OutputUnit unit)
const QgsMapUnitScale & sizeMapUnitScale() const
static const QString EXPR_FILL
virtual QColor color() const
The fill color.
HorizontalAnchorPoint mHorizontalAnchorPoint
static const QString EXPR_FILE
static const QString EXPR_CAPSTYLE
void setLineAngle(double lineAngle)
Sets the line angle modification for the symbol&#39;s angle.
QgsSymbolV2::ScaleMethod scaleMethod() const
static const QString EXPR_OUTLINE_STYLE
QgsSymbolV2::SymbolType type() const
virtual void setFillColor(const QColor &color)
Set fill color.
static const QString EXPR_DISTANCE
double ANALYSIS_EXPORT angle(Point3D *p1, Point3D *p2, Point3D *p3, Point3D *p4)
Calculates the angle between two segments (in 2 dimension, z-values are ignored)
void setOffsetUnit(QgsSymbolV2::OutputUnit unit)
static const QString EXPR_COLOR
static const QString EXPR_WIDTH_BORDER
static const QString EXPR_SVG_FILE
static const QString EXPR_ANGLE
int renderingPass() const
virtual QString layerType() const =0
Returns a string that represents this layer type.
static const QString EXPR_DISTANCE_X
static const QString EXPR_REFERENCE1_X
virtual QgsSymbolV2 * subSymbol()
SymbolType
Type of the symbol.
Definition: qgssymbolv2.h:76
static const QString EXPR_GRADIENT_TYPE
static const QString EXPR_OUTLINE_WIDTH
virtual QColor outlineColor() const
Get outline color.
Contains information about the context of a rendering operation.
static const QString EXPR_SVG_FILL_COLOR
const QgsMapUnitScale & offsetMapUnitScale() const
QgsSymbolV2::OutputUnit offsetUnit() const
ScaleMethod
Scale method.
Definition: qgssymbolv2.h:87
Struct for storing maximum and minimum scales for measurements in map units.
bool isLocked() const
const QgsMapUnitScale & offsetMapUnitScale() const
const QgsMapUnitScale & widthMapUnitScale() const
static const QString EXPR_SVG_OUTLINE_COLOR
static const QString EXPR_NAME
double offset() const
static const QString EXPR_IGNORE_RINGS
virtual void toSld(QDomDocument &doc, QDomElement &element, const QgsStringMap &props) const
static const QString EXPR_COLOR_BORDER
virtual QgsMapUnitScale mapUnitScale() const
QDomComment createComment(const QString &value)
static const QString EXPR_REFERENCE1_ISCENTROID
static const QString EXPR_ROTATION
QgsSymbolV2::OutputUnit mOffsetUnit
virtual void setColor(const QColor &color)
The fill color.
VerticalAnchorPoint mVerticalAnchorPoint
QgsSymbolV2::OutputUnit mSizeUnit
QgsMapUnitScale mOffsetMapUnitScale
static const QString EXPR_OUTLINE
static const QString EXPR_SVG_OUTLINE_WIDTH
virtual void drawPreviewIcon(QgsSymbolV2RenderContext &context, QSize size)=0
static const QString EXPR_SYMBOL_NAME
void setOffsetMapUnitScale(const QgsMapUnitScale &scale)
void setSize(double size)
void setAngle(double angle)
QPointF offset() const
static const QString EXPR_MAX_DISTANCE
static const QString EXPR_LINE_STYLE
virtual bool setSubSymbol(QgsSymbolV2 *symbol)
set layer&#39;s subsymbol. takes ownership of the passed symbol
void setSizeMapUnitScale(const QgsMapUnitScale &scale)
double angle() const
static const QString EXPR_INTERVAL
virtual QString ogrFeatureStyle(double mmScaleFactor, double mapUnitScaleFactor) const
QgsSymbolV2::OutputUnit widthUnit() const
static const QString EXPR_HEIGHT
static const QString EXPR_HORIZONTAL_ANCHOR_POINT