QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Contains settings related to how the label engine removes candidate label positions and reduces the number of displayed labels. More...
#include <qgslabelthinningsettings.h>
Public Member Functions | |
bool | limitNumberOfLabelsEnabled () const |
Returns true if the number of labels drawn for the layer should be limited. More... | |
int | maximumNumberLabels () const |
Returns the maximum number of labels which should be drawn for this layer. More... | |
double | minimumFeatureSize () const |
Returns the minimum feature size (in millimeters) for a feature to be labelled. More... | |
void | setLimitNumberLabelsEnabled (bool enabled) |
Sets whether the the number of labels drawn for the layer should be limited. More... | |
void | setMaximumNumberLabels (int number) |
Sets the maximum number of labels which should be drawn for this layer. More... | |
void | setMinimumFeatureSize (double size) |
Sets the minimum feature size (in millimeters) for a feature to be labelled. More... | |
void | updateDataDefinedProperties (const QgsPropertyCollection &properties, QgsExpressionContext &context) |
Updates the thinning settings to respect any data defined properties set within the specified properties collection. More... | |
Contains settings related to how the label engine removes candidate label positions and reduces the number of displayed labels.
Definition at line 34 of file qgslabelthinningsettings.h.
|
inline |
Returns true
if the number of labels drawn for the layer should be limited.
Definition at line 43 of file qgslabelthinningsettings.h.
|
inline |
Returns the maximum number of labels which should be drawn for this layer.
This only has an effect if limitNumberOfLabelsEnabled() is true
.
Definition at line 58 of file qgslabelthinningsettings.h.
|
inline |
Returns the minimum feature size (in millimeters) for a feature to be labelled.
Definition at line 72 of file qgslabelthinningsettings.h.
|
inline |
Sets whether the the number of labels drawn for the layer should be limited.
Definition at line 50 of file qgslabelthinningsettings.h.
|
inline |
Sets the maximum number of labels which should be drawn for this layer.
This only has an effect if limitNumberOfLabelsEnabled() is true
.
Definition at line 66 of file qgslabelthinningsettings.h.
|
inline |
Sets the minimum feature size (in millimeters) for a feature to be labelled.
Definition at line 78 of file qgslabelthinningsettings.h.
void QgsLabelThinningSettings::updateDataDefinedProperties | ( | const QgsPropertyCollection & | properties, |
QgsExpressionContext & | context | ||
) |
Updates the thinning settings to respect any data defined properties set within the specified properties collection.
Definition at line 22 of file qgslabelthinningsettings.cpp.