2012-09-24 02:28:15 +02:00
|
|
|
class QgsEllipseSymbolLayerV2 : QgsMarkerSymbolLayerV2
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsellipsesymbollayerv2.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
public:
|
|
|
|
QgsEllipseSymbolLayerV2();
|
|
|
|
~QgsEllipseSymbolLayerV2();
|
|
|
|
|
|
|
|
static QgsSymbolLayerV2* create( const QgsStringMap& properties = QgsStringMap() ) /Factory/;
|
|
|
|
static QgsSymbolLayerV2* createFromSld( QDomElement &element ) /Factory/;
|
|
|
|
|
|
|
|
void renderPoint( const QPointF& point, QgsSymbolV2RenderContext& context );
|
|
|
|
QString layerType() const;
|
|
|
|
void startRender( QgsSymbolV2RenderContext& context );
|
|
|
|
void stopRender( QgsSymbolV2RenderContext& context );
|
|
|
|
QgsSymbolLayerV2* clone() const /Factory/;
|
|
|
|
QgsStringMap properties() const;
|
|
|
|
|
|
|
|
void toSld( QDomDocument& doc, QDomElement &element, QgsStringMap props ) const;
|
|
|
|
void writeSldMarker( QDomDocument& doc, QDomElement &element, QgsStringMap props ) const;
|
|
|
|
|
2014-01-26 18:35:21 +01:00
|
|
|
bool writeDxf( QgsDxfExport& e, double mmMapUnitScaleFactor, const QString& layerName, const QgsSymbolV2RenderContext* context, const QgsFeature* f, const QPointF& shift = QPointF( 0.0, 0.0 ) ) const;
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
void setSymbolName( const QString& name );
|
|
|
|
QString symbolName() const;
|
|
|
|
|
|
|
|
void setSymbolWidth( double w );
|
|
|
|
double symbolWidth() const;
|
|
|
|
|
|
|
|
void setSymbolHeight( double h );
|
|
|
|
double symbolHeight() const;
|
|
|
|
|
2014-01-26 18:35:21 +01:00
|
|
|
Qt::PenStyle outlineStyle() const;
|
|
|
|
void setOutlineStyle( Qt::PenStyle outlineStyle );
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
void setOutlineWidth( double w );
|
|
|
|
double outlineWidth() const;
|
|
|
|
|
|
|
|
void setFillColor( const QColor& c );
|
|
|
|
QColor fillColor() const;
|
|
|
|
|
|
|
|
void setOutlineColor( const QColor& c );
|
|
|
|
QColor outlineColor() const;
|
|
|
|
|
2013-04-19 15:20:44 +02:00
|
|
|
void setSymbolWidthUnit( QgsSymbolV2::OutputUnit unit );
|
|
|
|
QgsSymbolV2::OutputUnit symbolWidthUnit() const;
|
2014-05-07 19:02:11 +02:00
|
|
|
|
2014-04-06 21:14:02 +02:00
|
|
|
void setSymbolWidthMapUnitScale( const QgsMapUnitScale& scale);
|
|
|
|
const QgsMapUnitScale& symbolWidthMapUnitScale() const;
|
2013-04-19 15:20:44 +02:00
|
|
|
|
|
|
|
void setSymbolHeightUnit( QgsSymbolV2::OutputUnit unit );
|
|
|
|
QgsSymbolV2::OutputUnit symbolHeightUnit() const;
|
2014-05-07 19:02:11 +02:00
|
|
|
|
2014-04-06 21:14:02 +02:00
|
|
|
void setSymbolHeightMapUnitScale( const QgsMapUnitScale& scale);
|
|
|
|
const QgsMapUnitScale& symbolHeightMapUnitScale() const;
|
2013-04-19 15:20:44 +02:00
|
|
|
|
|
|
|
void setOutlineWidthUnit( QgsSymbolV2::OutputUnit unit );
|
|
|
|
QgsSymbolV2::OutputUnit outlineWidthUnit() const;
|
2014-05-07 19:02:11 +02:00
|
|
|
|
2014-04-06 21:14:02 +02:00
|
|
|
void setOutlineWidthMapUnitScale( const QgsMapUnitScale& scale);
|
|
|
|
const QgsMapUnitScale& outlineWidthMapUnitScale() const;
|
2013-04-19 15:20:44 +02:00
|
|
|
|
|
|
|
void setOutputUnit( QgsSymbolV2::OutputUnit unit );
|
|
|
|
QgsSymbolV2::OutputUnit outputUnit() const;
|
2014-05-07 19:02:11 +02:00
|
|
|
|
|
|
|
void setMapUnitScale( const QgsMapUnitScale& scale );
|
2014-04-06 21:14:02 +02:00
|
|
|
QgsMapUnitScale mapUnitScale() const;
|
2012-09-24 02:28:15 +02:00
|
|
|
};
|