17#ifndef QGSLAYOUTITEMPOLYGON_H
18#define QGSLAYOUTITEMPOLYGON_H
55 int type()
const override;
56 QIcon
icon()
const override;
77 bool _addNode(
int indexPoint, QPointF newPoint,
double radius )
override;
86 std::unique_ptr<QgsFillSymbol> mPolygonStyleSymbol;
88 void createDefaultPolygonStyleSymbol();
A fill symbol type, for rendering Polygon and MultiPolygon geometries.
A geometry is the spatial representation of a feature.
Layout item for node based polygon shapes.
~QgsLayoutItemPolygon() override
Contains settings and helpers relating to a render of a QgsLayoutItem.
virtual QgsGeometry clipPath() const
Returns the clipping path generated by this item, in layout coordinates.
virtual bool accept(QgsStyleEntityVisitorInterface *visitor) const
Accepts the specified style entity visitor, causing it to visit all style entities associated with th...
virtual QIcon icon() const
Returns the item's icon.
int type() const override
Returns a unique graphics item type identifier.
virtual QString displayName() const
Gets item display name.
An abstract layout item that provides generic methods for node based shapes such as polygon or polyli...
QgsLayoutItem::Flags itemFlags() const override
Returns the item's flags, which indicate how the item behaves.
virtual bool _removeNode(int nodeIndex)=0
Method called in removeNode.
virtual void _writeXmlStyle(QDomDocument &doc, QDomElement &elmt, const QgsReadWriteContext &context) const =0
Method called in writeXml.
virtual void _readXmlStyle(const QDomElement &elmt, const QgsReadWriteContext &context)=0
Method called in readXml.
virtual bool isValid() const =0
Must be reimplemented in subclasses.
virtual void _draw(QgsLayoutItemRenderContext &context, const QStyleOptionGraphicsItem *itemStyle=nullptr)=0
Method called in paint.
virtual bool _addNode(int nodeIndex, QPointF newNode, double radius)=0
Method called in addNode.
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
The class is used as a container of context for various read/write operations on other objects.
An interface for classes which can visit style entity (e.g.