mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
57 lines
2.2 KiB
Plaintext
57 lines
2.2 KiB
Plaintext
/***************************************************************************
|
|
qgspolygongeneratorsymbollayerv2.sip
|
|
---------------------
|
|
begin : November 2015
|
|
copyright : (C) 2015 by Matthias Kuhn
|
|
email : matthias at opengis dot ch
|
|
***************************************************************************
|
|
* *
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
* it under the terms of the GNU General Public License as published by *
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
* (at your option) any later version. *
|
|
* *
|
|
***************************************************************************/
|
|
class QgsPolygonGeneratorSymbolLayerV2 : QgsFillSymbolLayerV2
|
|
{
|
|
%TypeHeaderCode
|
|
#include "qgspolygongeneratorsymbollayerv2.h"
|
|
%End
|
|
public:
|
|
static QgsSymbolLayerV2* create( const QgsStringMap& properties = QgsStringMap() );
|
|
|
|
QgsPolygonGeneratorSymbolLayerV2( QgsFillSymbolV2* symbol, const QgsStringMap& properties = QgsStringMap() );
|
|
|
|
QString layerType() const;
|
|
|
|
void startRender( QgsSymbolV2RenderContext& context );
|
|
|
|
void stopRender( QgsSymbolV2RenderContext& context );
|
|
|
|
QgsSymbolLayerV2* clone() const;
|
|
|
|
QgsStringMap properties() const;
|
|
|
|
void drawPreviewIcon( QgsSymbolV2RenderContext& context, QSize size );
|
|
|
|
void setGeometryExpression( const QString& exp );
|
|
|
|
QString geometryExpression() const;
|
|
|
|
virtual QgsSymbolV2* subSymbol();
|
|
|
|
virtual bool setSubSymbol( QgsSymbolV2* symbol );
|
|
|
|
virtual QSet<QString> usedAttributes() const;
|
|
|
|
//! Will always return true.
|
|
//! This is a hybrid layer, it constructs its own geometry so it does not
|
|
//! care about the geometry of its parents.
|
|
bool isCompatibleWithSymbol( QgsSymbolV2* symbol );
|
|
|
|
void renderPolygon( const QPolygonF& points, QList<QPolygonF>* rings, QgsSymbolV2RenderContext& context );
|
|
|
|
private:
|
|
QgsPolygonGeneratorSymbolLayerV2( const QgsPolygonGeneratorSymbolLayerV2& copy );
|
|
};
|