QGIS API Documentation  2.13.0-Master
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 
173  virtual void setDataDefinedProperty( const QString& property, QgsDataDefined* dataDefined );
174 
182  virtual void removeDataDefinedProperty( const QString& property );
183 
189  virtual void removeDataDefinedProperties();
190 
195  virtual bool hasDataDefinedProperties() const;
196 
206  virtual bool hasDataDefinedProperty( const QString& property ) const;
207 
223  Q_DECL_DEPRECATED virtual QVariant evaluateDataDefinedProperty( const QString& property, const QgsFeature* feature, const QVariant& defaultVal = QVariant(), bool *ok = nullptr ) const;
224 
238  virtual QVariant evaluateDataDefinedProperty( const QString& property, const QgsSymbolV2RenderContext& context, const QVariant& defaultVal = QVariant(), bool *ok = nullptr ) const;
239 
240  virtual bool writeDxf( QgsDxfExport& e,
241  double mmMapUnitScaleFactor,
242  const QString& layerName,
243  QgsSymbolV2RenderContext* context,
244  const QgsFeature* f,
245  QPointF shift = QPointF( 0.0, 0.0 ) ) const;
246 
247  virtual double dxfWidth( const QgsDxfExport& e, QgsSymbolV2RenderContext& context ) const;
248  virtual double dxfOffset( const QgsDxfExport& e, QgsSymbolV2RenderContext& context ) const;
249 
250  virtual QColor dxfColor( QgsSymbolV2RenderContext& context ) const;
251 
252  virtual QVector<qreal> dxfCustomDashPattern( QgsSymbolV2::OutputUnit& unit ) const;
253  virtual Qt::PenStyle dxfPenStyle() const;
254  virtual QColor dxfBrushColor( QgsSymbolV2RenderContext& context ) const;
255  virtual Qt::BrushStyle dxfBrushStyle() const;
256 
262  QgsPaintEffect* paintEffect() const;
263 
269  void setPaintEffect( QgsPaintEffect* effect );
270 
271  protected:
272  QgsSymbolLayerV2( QgsSymbolV2::SymbolType type, bool locked = false );
273 
275  bool mLocked;
278 
282 
283  // Configuration of selected symbology implementation
284  static const bool selectionIsOpaque = true; // Selection ignores symbol alpha
285  static const bool selectFillBorder = false; // Fill symbol layer also selects border symbology
286  static const bool selectFillStyle = false; // Fill symbol uses symbol layer style..
287 
294  Q_DECL_DEPRECATED virtual void prepareExpressions( const QgsFields* fields, double scale = -1.0 );
295 
301  virtual void prepareExpressions( const QgsSymbolV2RenderContext& context );
302 
306  Q_DECL_DEPRECATED virtual QgsExpression* expression( const QString& property ) const;
307 
312  void saveDataDefinedProperties( QgsStringMap& stringMap ) const;
313 
319  void restoreDataDefinedProperties( const QgsStringMap& stringMap );
320 
324  void copyDataDefinedProperties( QgsSymbolLayerV2* destLayer ) const;
325 
330  void copyPaintEffect( QgsSymbolLayerV2* destLayer ) const;
331 
332  static const QString EXPR_SIZE;
333  static const QString EXPR_ANGLE;
334  static const QString EXPR_NAME;
335  static const QString EXPR_COLOR;
339  static const QString EXPR_FILL;
340  static const QString EXPR_OUTLINE;
341  static const QString EXPR_OFFSET;
342  static const QString EXPR_CHAR;
343  static const QString EXPR_FILL_COLOR;
345  static const QString EXPR_WIDTH;
346  static const QString EXPR_HEIGHT;
347  static const QString EXPR_SYMBOL_NAME;
348  static const QString EXPR_ROTATION;
349  static const QString EXPR_FILL_STYLE;
352  static const QString EXPR_JOIN_STYLE;
354  static const QString EXPR_COLOR2;
355  static const QString EXPR_LINEANGLE;
358  static const QString EXPR_SPREAD;
365  static const QString EXPR_BLUR_RADIUS;
366  static const QString EXPR_DISTANCE;
370  static const QString EXPR_SVG_FILE;
374  static const QString EXPR_LINEWIDTH;
375  static const QString EXPR_DISTANCE_X;
376  static const QString EXPR_DISTANCE_Y;
379  static const QString EXPR_FILE;
380  static const QString EXPR_ALPHA;
381  static const QString EXPR_CUSTOMDASH;
382  static const QString EXPR_LINE_STYLE;
383  static const QString EXPR_JOINSTYLE; //near duplicate is required to maintain project compatibility
384  static const QString EXPR_CAPSTYLE;
385  static const QString EXPR_PLACEMENT;
386  static const QString EXPR_INTERVAL;
390 };
391 
393 
394 class CORE_EXPORT QgsMarkerSymbolLayerV2 : public QgsSymbolLayerV2
395 {
396  public:
397 
399  {
402  Right
403  };
404 
406  {
409  Bottom
410  };
411 
412  void startRender( QgsSymbolV2RenderContext& context ) override;
413 
414  virtual void renderPoint( QPointF point, QgsSymbolV2RenderContext& context ) = 0;
415 
416  void drawPreviewIcon( QgsSymbolV2RenderContext& context, QSize size ) override;
417 
418  void setAngle( double angle ) { mAngle = angle; }
419  double angle() const { return mAngle; }
420 
427  void setLineAngle( double lineAngle ) { mLineAngle = lineAngle; }
428 
429  void setSize( double size ) { mSize = size; }
430  double size() const { return mSize; }
431 
432  void setScaleMethod( QgsSymbolV2::ScaleMethod scaleMethod ) { mScaleMethod = scaleMethod; }
433  QgsSymbolV2::ScaleMethod scaleMethod() const { return mScaleMethod; }
434 
435  void setOffset( QPointF offset ) { mOffset = offset; }
436  QPointF offset() const { return mOffset; }
437 
438  virtual void toSld( QDomDocument &doc, QDomElement &element, const QgsStringMap& props ) const override;
439 
440  virtual void writeSldMarker( QDomDocument &doc, QDomElement &element, const QgsStringMap& props ) const
441  { Q_UNUSED( props ); element.appendChild( doc.createComment( QString( "QgsMarkerSymbolLayerV2 %1 not implemented yet" ).arg( layerType() ) ) ); }
442 
443  void setOffsetUnit( QgsSymbolV2::OutputUnit unit ) { mOffsetUnit = unit; }
444  QgsSymbolV2::OutputUnit offsetUnit() const { return mOffsetUnit; }
445 
446  void setOffsetMapUnitScale( const QgsMapUnitScale& scale ) { mOffsetMapUnitScale = scale; }
447  const QgsMapUnitScale& offsetMapUnitScale() const { return mOffsetMapUnitScale; }
448 
449  void setSizeUnit( QgsSymbolV2::OutputUnit unit ) { mSizeUnit = unit; }
450  QgsSymbolV2::OutputUnit sizeUnit() const { return mSizeUnit; }
451 
452  void setSizeMapUnitScale( const QgsMapUnitScale& scale ) { mSizeMapUnitScale = scale; }
453  const QgsMapUnitScale& sizeMapUnitScale() const { return mSizeMapUnitScale; }
454 
455  void setOutputUnit( QgsSymbolV2::OutputUnit unit ) override;
456  QgsSymbolV2::OutputUnit outputUnit() const override;
457 
458  void setMapUnitScale( const QgsMapUnitScale& scale ) override;
459  QgsMapUnitScale mapUnitScale() const override;
460 
461  void setHorizontalAnchorPoint( HorizontalAnchorPoint h ) { mHorizontalAnchorPoint = h; }
462  HorizontalAnchorPoint horizontalAnchorPoint() const { return mHorizontalAnchorPoint; }
463 
464  void setVerticalAnchorPoint( VerticalAnchorPoint v ) { mVerticalAnchorPoint = v; }
465  VerticalAnchorPoint verticalAnchorPoint() const { return mVerticalAnchorPoint; }
466 
473  //TODO QGIS 3.0 - make pure virtual
474  virtual QRectF bounds( QPointF point, QgsSymbolV2RenderContext& context ) { Q_UNUSED( context ); Q_UNUSED( point ); return QRectF(); }
475 
476  protected:
477  QgsMarkerSymbolLayerV2( bool locked = false );
478 
479  //handles marker offset and anchor point shift together
480  void markerOffset( QgsSymbolV2RenderContext& context, double& offsetX, double& offsetY ) const;
481 
483  void markerOffset( QgsSymbolV2RenderContext& context, double width, double height, double& offsetX, double& offsetY ) const;
484 
486  void markerOffset( QgsSymbolV2RenderContext& context, double width, double height,
487  QgsSymbolV2::OutputUnit widthUnit, QgsSymbolV2::OutputUnit heightUnit,
488  double& offsetX, double& offsetY,
489  const QgsMapUnitScale &widthMapUnitScale, const QgsMapUnitScale &heightMapUnitScale ) const;
490 
491  static QPointF _rotatedOffset( QPointF offset, double angle );
492 
493  double mAngle;
494  double mLineAngle;
495  double mSize;
504 
505  private:
506  static QgsMarkerSymbolLayerV2::HorizontalAnchorPoint decodeHorizontalAnchorPoint( const QString& str );
507  static QgsMarkerSymbolLayerV2::VerticalAnchorPoint decodeVerticalAnchorPoint( const QString& str );
508 };
509 
510 class CORE_EXPORT QgsLineSymbolLayerV2 : public QgsSymbolLayerV2
511 {
512  public:
513  virtual void renderPolyline( const QPolygonF& points, QgsSymbolV2RenderContext& context ) = 0;
514 
515  virtual void renderPolygonOutline( const QPolygonF& points, QList<QPolygonF>* rings, QgsSymbolV2RenderContext& context );
516 
517  virtual void setWidth( double width ) { mWidth = width; }
518  virtual double width() const { return mWidth; }
519 
520  double offset() const { return mOffset; }
521  void setOffset( double offset ) { mOffset = offset; }
522 
523  void setWidthUnit( QgsSymbolV2::OutputUnit unit ) { mWidthUnit = unit; }
524  QgsSymbolV2::OutputUnit widthUnit() const { return mWidthUnit; }
525 
526  void setWidthMapUnitScale( const QgsMapUnitScale& scale ) { mWidthMapUnitScale = scale; }
527  const QgsMapUnitScale& widthMapUnitScale() const { return mWidthMapUnitScale; }
528 
529  void setOffsetUnit( QgsSymbolV2::OutputUnit unit ) { mOffsetUnit = unit; }
530  QgsSymbolV2::OutputUnit offsetUnit() const { return mOffsetUnit; }
531 
532  void setOffsetMapUnitScale( const QgsMapUnitScale& scale ) { mOffsetMapUnitScale = scale; }
533  const QgsMapUnitScale& offsetMapUnitScale() const { return mOffsetMapUnitScale; }
534 
535  void setOutputUnit( QgsSymbolV2::OutputUnit unit ) override;
536  QgsSymbolV2::OutputUnit outputUnit() const override;
537 
538  void setMapUnitScale( const QgsMapUnitScale& scale ) override;
539  QgsMapUnitScale mapUnitScale() const override;
540 
541  void drawPreviewIcon( QgsSymbolV2RenderContext& context, QSize size ) override;
542 
543  virtual double dxfWidth( const QgsDxfExport& e, QgsSymbolV2RenderContext& context ) const override;
544 
545  protected:
546  QgsLineSymbolLayerV2( bool locked = false );
547 
548  double mWidth;
551  double mOffset;
554 };
555 
556 class CORE_EXPORT QgsFillSymbolLayerV2 : public QgsSymbolLayerV2
557 {
558  public:
559  virtual void renderPolygon( const QPolygonF& points, QList<QPolygonF>* rings, QgsSymbolV2RenderContext& context ) = 0;
560 
561  void drawPreviewIcon( QgsSymbolV2RenderContext& context, QSize size ) override;
562 
563  void setAngle( double angle ) { mAngle = angle; }
564  double angle() const { return mAngle; }
565 
566  protected:
567  QgsFillSymbolLayerV2( bool locked = false );
569  void _renderPolygon( QPainter* p, const QPolygonF& points, const QList<QPolygonF>* rings, QgsSymbolV2RenderContext& context );
570 
571  double mAngle;
572 };
573 
574 class QgsSymbolLayerV2Widget; // why does SIP fail, when this isn't here
575 
576 #endif
577 
578 
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:59
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:189
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:63
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:73
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:84
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