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(
int indexPoint, QPointF newPoint,
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 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...
virtual bool _removeNode(int nodeIndex)=0
Method called in removeNode.
Layout item for node based polygon shapes.
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
Gets item display name.
virtual void _readXmlStyle(const QDomElement &elmt, const QgsReadWriteContext &context)=0
Method called in readXml.
virtual bool _addNode(int nodeIndex, QPointF newNode, double radius)=0
Method called in addNode.