QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
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. | |
int | maximumNumberLabels () const |
Returns 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. | |
void | setLimitNumberLabelsEnabled (bool enabled) |
Sets whether the the number of labels drawn for the layer should be limited. | |
void | setMaximumNumberLabels (int number) |
Sets the maximum number of labels which should be drawn for this layer. | |
void | setMinimumFeatureSize (double size) |
Sets the minimum feature size (in millimeters) for a feature to be labelled. | |
void | updateDataDefinedProperties (const QgsPropertyCollection &properties, QgsExpressionContext &context) |
Updates the thinning settings to respect any data defined properties set within the specified properties collection. | |
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.