QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
17 #ifndef QGSLAYOUTITEMPOLYGON_H
18 #define QGSLAYOUTITEMPOLYGON_H
20 #include "qgis_core.h"
53 int type()
const override;
54 QIcon
icon()
const override;
57 QgsLayoutItem::Flags
itemFlags()
const override;
74 bool _addNode(
int indexPoint, QPointF newPoint,
double radius )
override;
83 std::unique_ptr<QgsFillSymbol> mPolygonStyleSymbol;
85 void createDefaultPolygonStyleSymbol();
94 #endif // QGSLAYOUTITEMPOLYGON_H
The class is used as a container of context for various read/write operations on other objects.
QgsFillSymbol * symbol()
Returns the fill symbol used to draw the shape.
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.
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.