16#ifndef QGSLABELTHINNINGSETTINGS_H
17#define QGSLABELTHINNINGSETTINGS_H
149 static constexpr double DEFAULT_MINIMUM_DISTANCE_TO_DUPLICATE = 20;
254 bool mLimitNumLabels =
false;
255 int mMaxNumLabels = 2000;
256 double mMinFeatureSize = 0;
258 double mLabelMarginDistance = 0;
262 bool mAllowDuplicateRemoval =
false;
313 double mLabelMarginDistance = 0;
314 double mNoRepeatDistance = 0;
RenderUnit
Rendering size units.
@ Millimeters
Millimeters.
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
Contains settings related to how the label engine removes candidate label positions and reduces the n...
double labelMarginDistance() const
Returns the minimum distance (in label units) between labels for this feature and other labels.
void setNoRepeatDistance(double distance)
Sets the minimum distance (in label units) between labels for this feature and other labels with the ...
void setLabelMarginDistance(double distance)
Sets the minimum distance (in label units) between labels for this feature and other labels.
double noRepeatDistance() const
Returns the minimum distance (in label units) between labels for this feature and other labels with t...
Contains settings related to how the label engine removes candidate label positions and reduces the n...
void setMinimumDistanceToDuplicate(double distance)
Sets the minimum distance to labels with duplicate text.
void setMinimumDistanceToDuplicateMapUnitScale(const QgsMapUnitScale &scale)
Sets the map unit scale for the minimum distance to labels with duplicate text.
void setMaximumNumberLabels(int number)
Sets the maximum number of labels which should be drawn for this layer.
double minimumFeatureSize() const
Returns the minimum feature size (in millimeters) for a feature to be labelled.
const QgsMapUnitScale & minimumDistanceToDuplicateMapUnitScale() const
Returns the map unit scale for the minimum distance to labels with duplicate text.
void setAllowDuplicateRemoval(bool allow)
Sets whether duplicate label removal is permitted for this layer.
int maximumNumberLabels() const
Returns the maximum number of labels which should be drawn for this layer.
bool allowDuplicateRemoval() const
Returns whether duplicate label removal is permitted for this layer.
const QgsMapUnitScale & labelMarginDistanceMapUnitScale() const
Returns the map unit scale for the minimum distance to other labels.
double labelMarginDistance() const
Returns the minimum distance to other labels (i.e.
void setLabelMarginDistanceUnit(Qgis::RenderUnit unit)
Sets the unit for the minimum distance to other labels.
Qgis::RenderUnit labelMarginDistanceUnit() const
Returns the units for the minimum distance to other labels.
void setMinimumDistanceToDuplicateUnit(Qgis::RenderUnit unit)
Sets the unit for the minimum distance to labels with duplicate text.
double minimumDistanceToDuplicate() const
Returns the minimum distance to labels with duplicate text.
Qgis::RenderUnit minimumDistanceToDuplicateUnit() const
Returns the units for the minimum distance to labels with duplicate text.
void setLimitNumberLabelsEnabled(bool enabled)
Sets whether the the number of labels drawn for the layer should be limited.
bool limitNumberOfLabelsEnabled() const
Returns true if the number of labels drawn for the layer should be limited.
void setMinimumFeatureSize(double size)
Sets the minimum feature size (in millimeters) for a feature to be labelled.
void setLabelMarginDistanceMapUnitScale(const QgsMapUnitScale &scale)
Sets the map unit scale for the minimum distance to other labels.
static constexpr double DEFAULT_MINIMUM_DISTANCE_TO_DUPLICATE
Default minimum distance to duplicate labels.
void setLabelMarginDistance(double distance)
Sets the minimum distance to other labels (i.e.
Struct for storing maximum and minimum scales for measurements in map units.
A grouped map of multiple QgsProperty objects, each referenced by an integer key value.