2017-10-17 16:17:49 +10:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/layout/qgslayoutitempolygon.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsLayoutItemPolygon: QgsLayoutNodesItem
|
|
|
|
{
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Layout item for node based polygon shapes.
|
|
|
|
|
2017-10-17 16:17:49 +10:00
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgslayoutitempolygon.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
|
|
|
QgsLayoutItemPolygon( QgsLayout *layout );
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Constructor for QgsLayoutItemPolygon for the specified ``layout``.
|
2017-10-17 16:17:49 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
QgsLayoutItemPolygon( const QPolygonF &polygon, QgsLayout *layout );
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Constructor for QgsLayoutItemPolygon for the specified ``polygon``
|
|
|
|
and ``layout``.
|
2017-10-17 16:17:49 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
static QgsLayoutItemPolygon *create( QgsLayout *layout ) /Factory/;
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns a new polygon item for the specified ``layout``.
|
|
|
|
|
|
|
|
The caller takes responsibility for deleting the returned object.
|
2017-10-17 16:17:49 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
virtual int type() const;
|
|
|
|
|
2017-12-20 16:39:33 +07:00
|
|
|
virtual QIcon icon() const;
|
|
|
|
|
2017-10-17 16:17:49 +10:00
|
|
|
virtual QString displayName() const;
|
|
|
|
|
|
|
|
|
|
|
|
QgsFillSymbol *symbol();
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the fill symbol used to draw the shape.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`setSymbol`
|
2017-10-17 16:17:49 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
void setSymbol( QgsFillSymbol *symbol );
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Sets the ``symbol`` used to draw the shape.
|
|
|
|
Ownership of ``symbol`` is not transferred.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`symbol`
|
2017-10-17 16:17:49 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
protected:
|
2018-06-04 21:56:07 +10:00
|
|
|
virtual bool _addNode( int indexPoint, QPointF newPoint, double radius );
|
2017-10-17 16:17:49 +10:00
|
|
|
|
2018-06-04 21:56:07 +10:00
|
|
|
virtual bool _removeNode( int nodeIndex );
|
2017-10-17 16:17:49 +10:00
|
|
|
|
2018-02-19 16:04:46 +10:00
|
|
|
virtual void _draw( QgsLayoutItemRenderContext &context, const QStyleOptionGraphicsItem *itemStyle = 0 );
|
2017-10-17 16:17:49 +10:00
|
|
|
|
|
|
|
virtual void _readXmlStyle( const QDomElement &elmt, const QgsReadWriteContext &context );
|
|
|
|
|
|
|
|
virtual void _writeXmlStyle( QDomDocument &doc, QDomElement &elmt, const QgsReadWriteContext &context ) const;
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/layout/qgslayoutitempolygon.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|