|
| 1 | +/*************************************************************************** |
| 2 | + qgspolygongeneratorsymbollayerv2.sip |
| 3 | + --------------------- |
| 4 | + begin : November 2015 |
| 5 | + copyright : (C) 2015 by Matthias Kuhn |
| 6 | + email : matthias at opengis dot ch |
| 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 | +class QgsPolygonGeneratorSymbolLayerV2 : QgsFillSymbolLayerV2 |
| 16 | +{ |
| 17 | +%TypeHeaderCode |
| 18 | +#include "qgspolygongeneratorsymbollayerv2.h" |
| 19 | +%End |
| 20 | + public: |
| 21 | + static QgsSymbolLayerV2* create( const QgsStringMap& properties = QgsStringMap() ); |
| 22 | + |
| 23 | + QgsPolygonGeneratorSymbolLayerV2( QgsFillSymbolV2* symbol, const QgsStringMap& properties = QgsStringMap() ); |
| 24 | + |
| 25 | + QString layerType() const; |
| 26 | + |
| 27 | + void startRender( QgsSymbolV2RenderContext& context ); |
| 28 | + |
| 29 | + void stopRender( QgsSymbolV2RenderContext& context ); |
| 30 | + |
| 31 | + QgsSymbolLayerV2* clone() const; |
| 32 | + |
| 33 | + QgsStringMap properties() const; |
| 34 | + |
| 35 | + void drawPreviewIcon( QgsSymbolV2RenderContext& context, QSize size ); |
| 36 | + |
| 37 | + void setGeometryExpression( const QString& exp ); |
| 38 | + |
| 39 | + QString geometryExpression() const; |
| 40 | + |
| 41 | + virtual QgsSymbolV2* subSymbol(); |
| 42 | + |
| 43 | + virtual bool setSubSymbol( QgsSymbolV2* symbol ); |
| 44 | + |
| 45 | + virtual QSet<QString> usedAttributes() const; |
| 46 | + |
| 47 | + //! Will always return true. |
| 48 | + //! This is a hybrid layer, it constructs its own geometry so it does not |
| 49 | + //! care about the geometry of its parents. |
| 50 | + bool isCompatibleWithSymbol( QgsSymbolV2* symbol ); |
| 51 | + |
| 52 | + void renderPolygon( const QPolygonF& points, QList<QPolygonF>* rings, QgsSymbolV2RenderContext& context ); |
| 53 | + |
| 54 | + private: |
| 55 | + QgsPolygonGeneratorSymbolLayerV2( const QgsPolygonGeneratorSymbolLayerV2& copy ); |
| 56 | +}; |
0 commit comments