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.
static QgsLayoutItemPolygon * create(QgsLayout *layout)
Returns a new polygon item for the specified layout.
QgsLayoutItemPolygon(QgsLayout *layout)
Constructor for QgsLayoutItemPolygon for the specified layout.
void setSymbol(QgsFillSymbol *symbol)
Sets the symbol used to draw the shape.
QgsFillSymbol * symbol()
Returns the fill symbol used to draw the shape.
~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.
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.
QgsLayoutNodesItem(QgsLayout *layout)
Constructor for QgsLayoutNodesItem, attached to the specified layout.
virtual bool _addNode(int nodeIndex, QPointF newNode, double radius)=0
Method called in addNode.
const QgsLayout * layout() const
Returns the layout the object is attached to.
A container for the context for various read/write operations on objects.
An interface for classes which can visit style entity (e.g.