QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
17 #ifndef QGSLAYOUTITEMMARKER_H
18 #define QGSLAYOUTITEMMARKER_H
20 #include "qgis_core.h"
53 int type()
const override;
54 QIcon
icon()
const override;
114 double northOffset()
const;
121 void setNorthOffset(
double offset );
124 QRectF boundingRect()
const override;
144 void refreshSymbol();
147 void updateBoundingRect();
149 void northArrowRotationChanged(
double rotation );
153 std::unique_ptr< QgsMarkerSymbol > mShapeStyleSymbol;
156 QRectF mCurrentRectangle;
159 QString mRotationMapUuid;
161 double mNorthArrowRotation = 0;
168 #endif //QGSLAYOUTITEMMARKER_H
A layout item for showing marker symbols.
virtual bool writePropertiesToElement(QDomElement &element, QDomDocument &document, const QgsReadWriteContext &context) const
Stores item state within an XML DOM element.
The class is used as a container of context for various read/write operations on other objects.
double northArrowRotation() const
When the marker is linked to a map in north arrow rotation mode, returns the current north arrow rota...
virtual QIcon icon() const
Returns the item's icon.
virtual void finalizeRestoreFromXml()
Called after all pending items have been restored from XML.
Contains settings and helpers relating to a render of a QgsLayoutItem.
An interface for classes which can visit style entity (e.g. symbol) nodes (using the visitor pattern)...
virtual bool readPropertiesFromElement(const QDomElement &element, const QDomDocument &document, const QgsReadWriteContext &context)
Sets item state from a DOM element.
virtual void draw(QgsLayoutItemRenderContext &context)=0
Draws the item's contents using the specified item render context.
int type() const override
Returns a unique graphics item type identifier.
virtual bool accept(QgsStyleEntityVisitorInterface *visitor) const
Accepts the specified style entity visitor, causing it to visit all style entities associated with th...
A marker symbol type, for rendering Point and MultiPoint geometries.
Base class for graphical items within a QgsLayout.
An object which handles north-arrow type behavior for layout items.
NorthMode
Method for syncing rotation to a map's North direction.
Layout graphical items for displaying a map.
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
This class provides a method of storing sizes, consisting of a width and height, for use in QGIS layo...
virtual QgsLayoutSize fixedSize() const
Returns the fixed size of the item, if applicable, or an empty size if item can be freely resized.