22 const QString strId = layerId + ruleId;
24 const int maskId = mLabelLayers.indexOf( maskedSymbolLayers );
28 mMaskIds[
maskId].insert( strId );
32 mLabelLayers.push_back( maskedSymbolLayers );
33 mMaskIds.push_back( QSet<QString>() << strId );
34 return mMaskIds.size() - 1;
39 if ( labelLayerId.isEmpty() )
42 const QString
id = labelLayerId + labelRuleId;
43 for (
int i = 0; i < mMaskIds.size(); i++ )
45 if ( mMaskIds[i].contains(
id ) )
53 return mMaskIds.size();
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.
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.