17 #ifndef QGSLAYOUTITEMPOLYGON_H 18 #define QGSLAYOUTITEMPOLYGON_H 20 #include "qgis_core.h" 54 int type()
const override;
55 QIcon
icon()
const override;
72 bool _addNode(
const int indexPoint, QPointF newPoint,
const double radius )
override;
81 std::unique_ptr<QgsFillSymbol> mPolygonStyleSymbol;
83 void createDefaultPolygonStyleSymbol();
92 #endif // QGSLAYOUTITEMPOLYGON_H virtual void _writeXmlStyle(QDomDocument &doc, QDomElement &elmt, const QgsReadWriteContext &context) const =0
Method called in writeXml.
The class is used as a container of context for various read/write operations on other objects...
virtual QIcon icon() const
Returns the item's icon.
int type() const override
Returns a unique graphics item type identifier.
virtual bool _removeNode(const int nodeIndex)=0
Method called in removeNode.
virtual void _draw(QgsLayoutItemRenderContext &context, const QStyleOptionGraphicsItem *itemStyle=nullptr)=0
Method called in paint.
QgsFillSymbol * symbol()
Returns the fill symbol used to draw the shape.
An abstract layout item that provides generic methods for node based shapes such as polygon or polyli...
Layout item for node based polygon shapes.
virtual bool _addNode(const int nodeIndex, QPointF newNode, const double radius)=0
Method called in addNode.
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
Contains settings and helpers relating to a render of a QgsLayoutItem.
virtual QString displayName() const
Get item display name.
virtual void _readXmlStyle(const QDomElement &elmt, const QgsReadWriteContext &context)=0
Method called in readXml.