16#ifndef QGSLABELPLACEMENTSETTINGS_H
17#define QGSLABELPLACEMENTSETTINGS_H
137 bool mAllowDegradedPlacement =
false;
MultiPartLabelingBehavior
Behavior modifier for labeling features with multi-part geometries.
@ LabelLargestPartOnly
Place a label only on the largest part from the geometry.
LabelPrioritization
Label prioritization.
@ PreferCloser
Prefer closer labels, falling back to alternate positions before larger distances.
LabelWhitespaceCollisionHandling
Label whitespace collision handling.
@ TreatWhitespaceAsCollision
Treat overlapping whitespace text in labels and whitespace overlapping obstacles as collisions.
LabelOverlapHandling
Label overlap handling.
@ PreventOverlap
Do not allow labels to overlap other labels.
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
Contains general settings related to how labels are placed.
void setOverlapHandling(Qgis::LabelOverlapHandling handling)
Sets the technique used to handle overlapping labels.
Qgis::LabelOverlapHandling overlapHandling() const
Returns the technique used to handle overlapping labels.
void setMultiPartBehavior(Qgis::MultiPartLabelingBehavior behavior)
Sets the multipart labeling behavior.
void setPrioritization(Qgis::LabelPrioritization prioritization)
Sets the technique used to prioritize labels.
Qgis::MultiPartLabelingBehavior multiPartBehavior() const
Returns the multipart labeling behavior.
bool allowDegradedPlacement() const
Returns true if labels can be placed in inferior fallback positions if they cannot otherwise be place...
void setAllowDegradedPlacement(bool allow)
Sets whether labels can be placed in inferior fallback positions if they cannot otherwise be placed.
Qgis::LabelPrioritization prioritization() const
Returns the label prioritization technique.
Qgis::LabelWhitespaceCollisionHandling whitespaceCollisionHandling() const
Returns the whitespace collision handling.
void setWhitespaceCollisionHandling(Qgis::LabelWhitespaceCollisionHandling handling)
Sets the whitespace collision handling.
A grouped map of multiple QgsProperty objects, each referenced by an integer key value.