2017-06-06 11:03:05 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
2017-08-06 13:39:03 +02:00
|
|
|
* src/core/symbology/qgsellipsesymbollayer.h *
|
2017-06-06 11:03:05 +02:00
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsEllipseSymbolLayer: QgsMarkerSymbolLayer
|
2012-09-24 02:28:15 +02:00
|
|
|
{
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
2020-08-20 11:49:12 +10:00
|
|
|
A symbol layer for rendering objects with major and minor axis (e.g. ellipse, rectangle, etc).
|
2012-09-24 02:28:15 +02:00
|
|
|
%End
|
|
|
|
|
2017-06-06 11:03:05 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsellipsesymbollayer.h"
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
public:
|
2016-08-06 11:01:42 +02:00
|
|
|
QgsEllipseSymbolLayer();
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
static QgsSymbolLayer *create( const QgsStringMap &properties = QgsStringMap() ) /Factory/;
|
|
|
|
static QgsSymbolLayer *createFromSld( QDomElement &element ) /Factory/;
|
2017-06-06 11:03:05 +02:00
|
|
|
|
|
|
|
virtual void renderPoint( QPointF point, QgsSymbolRenderContext &context );
|
|
|
|
|
|
|
|
virtual QString layerType() const;
|
|
|
|
|
|
|
|
virtual void startRender( QgsSymbolRenderContext &context );
|
|
|
|
|
|
|
|
virtual void stopRender( QgsSymbolRenderContext &context );
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
virtual QgsEllipseSymbolLayer *clone() const /Factory/;
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-06-06 11:03:05 +02:00
|
|
|
virtual QgsStringMap properties() const;
|
|
|
|
|
|
|
|
|
|
|
|
virtual void toSld( QDomDocument &doc, QDomElement &element, const QgsStringMap &props ) const;
|
|
|
|
|
|
|
|
virtual void writeSldMarker( QDomDocument &doc, QDomElement &element, const QgsStringMap &props ) const;
|
|
|
|
|
|
|
|
|
|
|
|
virtual bool writeDxf( QgsDxfExport &e, double mmMapUnitScaleFactor, const QString &layerName, QgsSymbolRenderContext &context, QPointF shift = QPointF( 0.0, 0.0 ) ) const;
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2014-01-26 18:35:21 +01:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
void setSymbolName( const QString &name );
|
2012-09-24 02:28:15 +02:00
|
|
|
QString symbolName() const;
|
|
|
|
|
2019-05-08 10:40:38 +07:00
|
|
|
virtual void setSize( double size );
|
|
|
|
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
void setSymbolWidth( double w );
|
|
|
|
double symbolWidth() const;
|
|
|
|
|
|
|
|
void setSymbolHeight( double h );
|
|
|
|
double symbolHeight() const;
|
|
|
|
|
2017-02-22 17:13:57 +10:00
|
|
|
Qt::PenStyle strokeStyle() const;
|
|
|
|
void setStrokeStyle( Qt::PenStyle strokeStyle );
|
2014-01-26 18:35:21 +01:00
|
|
|
|
2016-04-04 11:38:52 +07:00
|
|
|
Qt::PenJoinStyle penJoinStyle() const;
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
2018-05-26 18:44:30 +10:00
|
|
|
Gets stroke join style.
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2017-06-06 11:03:05 +02:00
|
|
|
.. versionadded:: 2.16
|
|
|
|
%End
|
|
|
|
|
2016-04-04 11:38:52 +07:00
|
|
|
void setPenJoinStyle( Qt::PenJoinStyle style );
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Set stroke join style.
|
|
|
|
|
2017-06-06 11:03:05 +02:00
|
|
|
.. versionadded:: 2.16
|
|
|
|
%End
|
2016-04-04 11:38:52 +07:00
|
|
|
|
2017-02-22 17:13:57 +10:00
|
|
|
void setStrokeWidth( double w );
|
|
|
|
double strokeWidth() const;
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-06-06 11:03:05 +02:00
|
|
|
virtual void setFillColor( const QColor &c );
|
|
|
|
virtual QColor fillColor() const;
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-06-06 11:03:05 +02:00
|
|
|
virtual void setStrokeColor( const QColor &c );
|
|
|
|
virtual QColor strokeColor() const;
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2016-07-17 22:11:17 +10:00
|
|
|
void setSymbolWidthUnit( QgsUnitTypes::RenderUnit unit );
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Sets the units for the symbol's width.
|
2017-12-15 21:36:08 -04:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param unit: symbol units
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`symbolWidthUnit`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`setSymbolHeightUnit`
|
2017-06-06 11:03:05 +02:00
|
|
|
%End
|
2016-07-26 09:24:14 +10:00
|
|
|
|
2016-07-17 22:11:17 +10:00
|
|
|
QgsUnitTypes::RenderUnit symbolWidthUnit() const;
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the units for the symbol's width.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`setSymbolWidthUnit`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`symbolHeightUnit`
|
2017-06-06 11:03:05 +02:00
|
|
|
%End
|
2014-05-07 19:02:11 +02:00
|
|
|
|
2017-06-06 11:03:05 +02:00
|
|
|
void setSymbolWidthMapUnitScale( const QgsMapUnitScale &scale );
|
2017-05-01 18:13:15 +02:00
|
|
|
const QgsMapUnitScale &symbolWidthMapUnitScale() const;
|
2013-04-19 15:20:44 +02:00
|
|
|
|
2016-07-17 22:11:17 +10:00
|
|
|
void setSymbolHeightUnit( QgsUnitTypes::RenderUnit unit );
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Sets the units for the symbol's height.
|
2017-12-15 21:36:08 -04:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param unit: symbol units
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`symbolHeightUnit`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`setSymbolWidthUnit`
|
2017-06-06 11:03:05 +02:00
|
|
|
%End
|
2016-07-18 09:42:45 +10:00
|
|
|
|
2016-07-17 22:11:17 +10:00
|
|
|
QgsUnitTypes::RenderUnit symbolHeightUnit() const;
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the units for the symbol's height.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`setSymbolHeightUnit`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`symbolWidthUnit`
|
2017-06-06 11:03:05 +02:00
|
|
|
%End
|
2014-05-07 19:02:11 +02:00
|
|
|
|
2017-06-06 11:03:05 +02:00
|
|
|
void setSymbolHeightMapUnitScale( const QgsMapUnitScale &scale );
|
2017-05-01 18:13:15 +02:00
|
|
|
const QgsMapUnitScale &symbolHeightMapUnitScale() const;
|
2013-04-19 15:20:44 +02:00
|
|
|
|
2017-02-22 17:13:57 +10:00
|
|
|
void setStrokeWidthUnit( QgsUnitTypes::RenderUnit unit );
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Sets the units for the symbol's stroke width.
|
2017-12-15 21:36:08 -04:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param unit: symbol units
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`strokeWidthUnit`
|
2017-06-06 11:03:05 +02:00
|
|
|
%End
|
2016-07-18 09:42:45 +10:00
|
|
|
|
2017-02-22 17:13:57 +10:00
|
|
|
QgsUnitTypes::RenderUnit strokeWidthUnit() const;
|
2017-06-06 11:03:05 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the units for the symbol's stroke width.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`setStrokeWidthUnit`
|
2017-06-06 11:03:05 +02:00
|
|
|
%End
|
2014-05-07 19:02:11 +02:00
|
|
|
|
2017-06-06 11:03:05 +02:00
|
|
|
void setStrokeWidthMapUnitScale( const QgsMapUnitScale &scale );
|
2017-05-01 18:13:15 +02:00
|
|
|
const QgsMapUnitScale &strokeWidthMapUnitScale() const;
|
2017-06-06 11:03:05 +02:00
|
|
|
|
|
|
|
virtual void setOutputUnit( QgsUnitTypes::RenderUnit unit );
|
|
|
|
|
|
|
|
virtual QgsUnitTypes::RenderUnit outputUnit() const;
|
|
|
|
|
|
|
|
|
|
|
|
virtual void setMapUnitScale( const QgsMapUnitScale &scale );
|
2013-04-19 15:20:44 +02:00
|
|
|
|
2017-06-06 11:03:05 +02:00
|
|
|
virtual QgsMapUnitScale mapUnitScale() const;
|
|
|
|
|
|
|
|
|
|
|
|
virtual QRectF bounds( QPointF point, QgsSymbolRenderContext &context );
|
2014-05-07 19:02:11 +02:00
|
|
|
|
2015-11-20 19:16:15 +11:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
};
|
2017-06-06 11:03:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2017-09-25 14:20:39 +10:00
|
|
|
|
2017-06-06 11:03:05 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
2017-08-06 13:39:03 +02:00
|
|
|
* src/core/symbology/qgsellipsesymbollayer.h *
|
2017-06-06 11:03:05 +02:00
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|