Class: QgsLabelPosition¶
-
class
qgis.core.
QgsLabelPosition
(id: int, r: float, corners: Iterable[QgsPointXY], rect: QgsRectangle, w: float, h: float, layer: str, labeltext: str, labelfont: QFont, upside_down: bool, diagram: bool = False, pinned: bool = False, providerId: str = '', labelGeometry: QgsGeometry = QgsGeometry())¶ Bases:
sip.wrapper
Constructor for QgsLabelPosition.
- Parameters
id – associated feature ID
r – label rotation in degrees clockwise
corners – corner points of label bounding box, in map units
rect – label bounding box, in map units
w – width of label, in map units
h – height of label, in map units
layer – ID of associated map layer
labeltext – text rendered for label
labelfont – font used to render label
upside_down –
True
if label is upside downdiagram –
True
if label is a diagrampinned –
True
if label has pinned placementproviderId – ID of associated label provider
labelGeometry – polygon geometry of label boundary
QgsLabelPosition() Constructor for QgsLabelPosition
QgsLabelPosition(QgsLabelPosition)
Enums
Methods
Signals
Attributes
-
cornerPoints
¶
-
featureId
¶
-
height
¶
-
isDiagram
¶
-
isPinned
¶
-
labelFont
¶
-
labelGeometry
¶
-
labelRect
¶
-
labelText
¶
-
layerID
¶
-
providerID
¶
-
rotation
¶
-
upsideDown
¶
-
width
¶