QGIS API Documentation  3.16.0-Hannover (43b64b13f3)
Classes | Functions
qgsmaskingwidget.cpp File Reference
#include <QSet>
#include <QCheckBox>
#include "qgsmaskingwidget.h"
#include "qgsmasksourceselectionwidget.h"
#include "qgssymbollayerselectionwidget.h"
#include "qgssymbollayerreference.h"
#include "qgsvectorlayer.h"
#include "qgssymbol.h"
#include "qgsstyleentityvisitor.h"
#include "symbology/qgsrenderer.h"
#include "qgsproject.h"
#include "qgsvectorlayerutils.h"
#include "qgsmasksymbollayer.h"
#include "qgsvectorlayerlabeling.h"
#include "qgsmessagebaritem.h"
Include dependency graph for qgsmaskingwidget.cpp:

Go to the source code of this file.

Classes

class  SymbolLayerVisitor
 Generic visitor that collects symbol layers of a vector layer's renderer and call a callback function on them with their corresponding QgsSymbolLayerId. More...
 

Functions

QList< QPair< QgsSymbolLayerId, QList< QgsSymbolLayerReference > > > symbolLayerMasks (const QgsVectorLayer *layer)
 Symbol layer masks collector. More...
 

Function Documentation

◆ symbolLayerMasks()

QList<QPair<QgsSymbolLayerId, QList<QgsSymbolLayerReference> > > symbolLayerMasks ( const QgsVectorLayer layer)

Symbol layer masks collector.

It is an enhanced version of QgsVectorLayerUtils::symbolLayerMasks. Indeed, we need here to know both mask sources and targets for all masks

Returns a list of pairs of:

  • mask source symbol layer id
  • list of target mask symbol layer references

Definition at line 150 of file qgsmaskingwidget.cpp.