Class: QgsCentroidFillSymbolLayer¶
A fill symbol layer which renders a marker symbol at the centroid of a polygon geometry.
Class Hierarchy¶
Base classes¶
Abstract base class for fill symbol layers. |
|
Abstract base class for symbol layers. |
Methods
Returns |
|
Returns |
|
Returns whether a point is drawn for all parts or only on the biggest part of multi-part features. |
|
Sets whether point markers should be clipped to the current part boundary only. |
|
Sets whether point markers should be clipped to the polygon boundary. |
|
Sets whether a point is drawn for all parts or only on the biggest part of multi-part features. |
|
Static Methods
Creates a new |
|
- class qgis.core.QgsCentroidFillSymbolLayer[source]¶
Bases:
QgsFillSymbolLayer
- clipOnCurrentPartOnly(self) bool [source]¶
Returns
True
if point markers should be clipped to the current part boundary only.See also
Added in version 3.14.
- Return type:
bool
- clipPoints(self) bool [source]¶
Returns
True
if point markers should be clipped to the polygon boundary.See also
Added in version 3.14.
- Return type:
bool
- static create(properties: Dict[str, Any] = {}) QgsSymbolLayer | None [source]¶
Creates a new
QgsCentroidFillSymbolLayer
using the specifiedproperties
map containing symbol properties (seeproperties()
).Caller takes ownership of the returned symbol layer.
- Parameters:
properties (Dict[str, Any] = {})
- Return type:
Optional[QgsSymbolLayer]
- static createFromSld(element: QDomElement) QgsSymbolLayer | None [source]¶
- Parameters:
element (QDomElement)
- Return type:
Optional[QgsSymbolLayer]
- pointOnAllParts(self) bool [source]¶
Returns whether a point is drawn for all parts or only on the biggest part of multi-part features.
See also
- Return type:
bool
- setClipOnCurrentPartOnly(self, clipOnCurrentPartOnly: bool)[source]¶
Sets whether point markers should be
clipped
to the current part boundary only.See also
Added in version 3.14.
- Parameters:
clipOnCurrentPartOnly (bool)
- setClipPoints(self, clipPoints: bool)[source]¶
Sets whether point markers should be
clipped
to the polygon boundary.See also
Added in version 3.14.
- Parameters:
clipPoints (bool)