Class: QgsSelectiveMaskingSourceSet¶
Represents a named set of selective masking sources
(QgsSelectiveMaskSource).
Added in version 4.0.
Methods
Appends a source to the set. |
|
Returns a unique identifier for the set. |
|
Returns |
|
Returns |
|
Returns the set's unique name. |
|
Sets the set's state from a DOM element. |
|
Sets the unique identifier for the set. |
|
Sets the set's unique name. |
|
Sets the list of selective mask sources for this set. |
|
Returns the number of sources in the set. |
|
Returns the list of selective mask sources configured in this set. |
|
Writes the set's state to a DOM element. |
- class qgis.core.QgsSelectiveMaskingSourceSet[source]¶
Bases:
object- __init__()
Constructor for an empty (invalid) QgsSelectiveMaskingSourceSet.
- __init__(a0: QgsSelectiveMaskingSourceSet)
- Parameters:
- append(self, source: QgsSelectiveMaskSource)[source]¶
Appends a
sourceto the set.- Parameters:
source (QgsSelectiveMaskSource)
- id(self) str[source]¶
Returns a unique identifier for the set.
This id must be unique in the whole project. It is automatically generated when a new
QgsSelectiveMaskingSourceSetis constructed.See also
- Return type:
str
- isValid(self) bool[source]¶
Returns
Trueif the source set is valid, orFalseif it is invalid (default constructed).- Return type:
bool
- readXml(self, element: QDomElement, document: QDomDocument, context: QgsReadWriteContext) bool[source]¶
Sets the set’s state from a DOM
element.See also
- Parameters:
element (QDomElement)
document (QDomDocument)
context (QgsReadWriteContext)
- Return type:
bool
- setId(self, id: str | None)[source]¶
Sets the unique identifier for the set.
This id must be unique in the whole project. A default random one is automatically generated when a new
QgsSelectiveMaskingSourceSetis constructed.See also
- Parameters:
id (Optional[str])
- setName(self, name: str | None)[source]¶
Sets the set’s unique
name.See also
- Parameters:
name (Optional[str])
- setSources(self, sources: Iterable[QgsSelectiveMaskSource])[source]¶
Sets the list of selective mask
sourcesfor this set.See also
- Parameters:
sources (Iterable[QgsSelectiveMaskSource])
- sources(self) list[QgsSelectiveMaskSource]¶
Returns the list of selective mask sources configured in this set.
See also
- Return type:
list[QgsSelectiveMaskSource]
- writeXml(self, document: QDomDocument, context: QgsReadWriteContext) QDomElement[source]¶
Writes the set’s state to a DOM element.
See also
- Parameters:
document (QDomDocument)
context (QgsReadWriteContext)
- Return type:
QDomElement