20 QString strId = layerId + ruleId;
22 int maskId = mLabelLayers.indexOf( maskedSymbolLayers );
26 mMaskIds[
maskId].insert( strId );
30 mLabelLayers.push_back( maskedSymbolLayers );
31 mMaskIds.push_back( QSet<QString>() << strId );
32 return mMaskIds.size() - 1;
37 if ( labelLayerId.isEmpty() )
40 QString
id = labelLayerId + labelRuleId;
41 for (
int i = 0; i < mMaskIds.size(); i++ )
43 if ( mMaskIds[i].contains(
id ) )
51 return mMaskIds.size();
int insertLabelLayer(const QString &layerId, const QString &ruleId, const QSet< QgsSymbolLayerReference > &maskedSymbolLayers)
Inserts a label layer to the provider and returns its associated mask id.
int size() const
Returns the number of identifiers allocated.
int maskId(const QString &labelLayerId=QString(), const QString &labelRuleId=QString()) const
Returns the mask id associated with a label layer and its optional label rule.