18#ifndef QgsLayoutItemMapOVERVIEW_H 
   19#define QgsLayoutItemMapOVERVIEW_H 
   67    void removeOverview( 
const QString &overviewId );
 
   75    void moveOverviewUp( 
const QString &overviewId );
 
   83    void moveOverviewDown( 
const QString &overviewId );
 
  104    QList< QgsLayoutItemMapOverview * > 
asList() 
const; 
 
  113    QList< QgsMapLayer * > modifyMapLayerList( 
const QList< QgsMapLayer * > &layers );
 
 
  138    void draw( QPainter *painter ) 
override;
 
  142    bool usesAdvancedEffects() 
const override;
 
  180    QPainter::CompositionMode 
blendMode()
 const { 
return mBlendMode; }
 
  186    void setBlendMode( QPainter::CompositionMode mode );
 
  200    void setInverted( 
bool inverted );
 
  212    void setCentered( 
bool centered );
 
  218    void connectSignals();
 
  240    void overviewExtentChanged();
 
  246    QString mFrameMapUuid;
 
  247    QPointer< QgsLayoutItemMap > mFrameMap;
 
  250    std::unique_ptr< QgsFillSymbol > mFrameSymbol;
 
  253    QPainter::CompositionMode mBlendMode = QPainter::CompositionMode_SourceOver;
 
  256    bool mInverted = 
false;
 
  259    bool mCentered = 
false;
 
  261    std::unique_ptr< QgsVectorLayer > mExtentLayer;
 
  264    void createDefaultFrameSymbol();
 
 
A fill symbol type, for rendering Polygon and MultiPolygon geometries.
 
A collection of map items which are drawn above the map content in a QgsLayoutItemMap.
 
virtual bool writeXml(QDomElement &element, QDomDocument &doc, const QgsReadWriteContext &context) const
Stores the state of the item stack in a DOM node, where element is the DOM element corresponding to a...
 
virtual void finalizeRestoreFromXml()
Called after all pending items have been restored from XML.
 
virtual bool readXml(const QDomElement &element, const QDomDocument &doc, const QgsReadWriteContext &context)=0
Sets the item stack's state from a DOM document, where element is a DOM node corresponding to a 'Layo...
 
QList< QgsLayoutItemMapItem * > asList() const
Returns a list of QgsLayoutItemMapItems contained by the stack.
 
QgsLayoutItemMapItem & operator[](int index)
Returns a reference to an item at the specified index within the stack.
 
An item which is drawn inside a QgsLayoutItemMap, e.g., a grid or map overview.
 
A collection of overviews which are drawn above the map content in a QgsLayoutItemMap.
 
An individual overview which is drawn above the map content in a QgsLayoutItemMap,...
 
QPainter::CompositionMode blendMode() const
Retrieves the blending mode used for drawing the overview.
 
bool centered() const
Returns whether the extent of the map is forced to center on the overview.
 
~QgsLayoutItemMapOverview() override
 
bool inverted() const
Returns whether the overview frame is inverted, ie, whether the shaded area is drawn outside the exte...
 
Layout graphical items for displaying a map.
 
Base class for all map layer types.
 
A container for the context for various read/write operations on objects.
 
An interface for classes which can visit style entity (e.g.
 
Represents a vector layer which manages a vector based dataset.