Class: QgsCentroidFillSymbolLayer¶
-
class
qgis.core.
QgsCentroidFillSymbolLayer
¶ Bases:
QgsFillSymbolLayer
Methods
- rtype
QgsCentroidFillSymbolLayer
- rtype
QColor
- param properties
- param element
- rtype
bool
- rtype
str
- rtype
QgsMapUnitScale
- rtype
QgsUnitTypes.RenderUnit
Returns whether a point is drawn for all parts or only on the biggest part of multi-part features.
- rtype
bool
- rtype
Dict[str, str]
- param points
- param color
- param scale
- param unit
Sets whether a point is drawn for all parts or only on the biggest part of multi-part features.
- param pointOnSurface
- param symbol
- param context
- param context
- rtype
QgsSymbol
- param doc
- param context
-
clone
(self) → QgsCentroidFillSymbolLayer¶ - Return type
-
color
(self) → QColor¶ - Return type
QColor
-
copyDataDefinedProperties
()¶
-
copyPaintEffect
()¶
-
create
(properties: Dict[str, str] = {}) → QgsSymbolLayer¶ - Parameters
properties (Dict[str) –
- Return type
-
createFromSld
(element: QDomElement) → QgsSymbolLayer¶ - Parameters
element (QDomElement) –
- Return type
-
hasDataDefinedProperties
(self) → bool¶ - Return type
bool
-
layerType
(self) → str¶ - Return type
str
-
mapUnitScale
(self) → QgsMapUnitScale¶ - Return type
-
outputUnit
(self) → QgsUnitTypes.RenderUnit¶ - Return type
-
pointOnAllParts
(self) → bool¶ Returns whether a point is drawn for all parts or only on the biggest part of multi-part features.
New in version 2.16.
- Return type
bool
-
pointOnSurface
(self) → bool¶ - Return type
bool
-
properties
(self) → Dict[str, str]¶ - Return type
Dict[str, str]
-
renderPolygon
(self, points: QPolygonF, rings: Iterable[QPolygonF], context: QgsSymbolRenderContext)¶ - Parameters
points (QPolygonF) –
rings (Iterable[QPolygonF]) –
context (QgsSymbolRenderContext) –
-
restoreOldDataDefinedProperties
()¶
-
setColor
(self, color: Union[QColor, Qt.GlobalColor])¶ - Parameters
color (Union[QColor) –
-
setMapUnitScale
(self, scale: QgsMapUnitScale)¶ - Parameters
scale (QgsMapUnitScale) –
-
setOutputUnit
(self, unit: QgsUnitTypes.RenderUnit)¶ - Parameters
unit (QgsUnitTypes.RenderUnit) –
-
setPointOnAllParts
(self, pointOnAllParts: bool)¶ Sets whether a point is drawn for all parts or only on the biggest part of multi-part features.
New in version 2.16.
- Parameters
pointOnAllParts (bool) –
-
setPointOnSurface
(self, pointOnSurface: bool)¶ - Parameters
pointOnSurface (bool) –
-
startRender
(self, context: QgsSymbolRenderContext)¶ - Parameters
context (QgsSymbolRenderContext) –
-
stopRender
(self, context: QgsSymbolRenderContext)¶ - Parameters
context (QgsSymbolRenderContext) –
-
toSld
(self, doc: QDomDocument, element: QDomElement, props: Dict[str, str])¶ - Parameters
doc (QDomDocument) –
element (QDomElement) –
props (Dict[str) –
-
usedAttributes
(self, context: QgsRenderContext) → Set[str]¶ - Parameters
context (QgsRenderContext) –
- Return type
Set[str]