QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
17 #ifndef QGSLAYOUTITEMPOLYGON_H
18 #define QGSLAYOUTITEMPOLYGON_H
20 #include "qgis_core.h"
56 int type()
const override;
57 QIcon
icon()
const override;
60 QgsLayoutItem::Flags
itemFlags()
const override;
77 bool _addNode(
int indexPoint, QPointF newPoint,
double radius )
override;
86 std::unique_ptr<QgsFillSymbol> mPolygonStyleSymbol;
88 void createDefaultPolygonStyleSymbol();
97 #endif // QGSLAYOUTITEMPOLYGON_H
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.
Contains settings and helpers relating to a render of a QgsLayoutItem.
virtual bool _removeNode(int nodeIndex)=0
Method called in removeNode.
An interface for classes which can visit style entity (e.g. symbol) nodes (using the visitor pattern)...
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.
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 void _readXmlStyle(const QDomElement &elmt, const QgsReadWriteContext &context)=0
Method called in readXml.
virtual Flags itemFlags() const
Returns the item's flags, which indicate how the item behaves.
A geometry is the spatial representation of a feature.
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
An abstract layout item that provides generic methods for node based shapes such as polygon or polyli...
virtual QString displayName() const
Gets item display name.
A fill symbol type, for rendering Polygon and MultiPolygon geometries.
Layout item for node based polygon shapes.
virtual void _writeXmlStyle(QDomDocument &doc, QDomElement &elmt, const QgsReadWriteContext &context) const =0
Method called in writeXml.
virtual bool _addNode(int nodeIndex, QPointF newNode, double radius)=0
Method called in addNode.