QGIS API Documentation 3.43.0-Master (2366440f66a)
Public Member Functions | List of all members
QgsLabelFeatureThinningSettings Class Reference

Contains settings related to how the label engine removes candidate label positions and reduces the number of displayed labels for one particular label feature. More...

#include <qgslabelthinningsettings.h>

Public Member Functions

double labelMarginDistance () const
 Returns 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 the same label text.
 
void setLabelMarginDistance (double distance)
 Sets 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 same label text.
 

Detailed Description

Contains settings related to how the label engine removes candidate label positions and reduces the number of displayed labels for one particular label feature.

Since
QGIS 3.44

Definition at line 279 of file qgslabelthinningsettings.h.

Member Function Documentation

◆ labelMarginDistance()

double QgsLabelFeatureThinningSettings::labelMarginDistance ( ) const
inline

Returns the minimum distance (in label units) between labels for this feature and other labels.

See also
setLabelMarginDistance()

Definition at line 288 of file qgslabelthinningsettings.h.

◆ noRepeatDistance()

double QgsLabelFeatureThinningSettings::noRepeatDistance ( ) const
inline

Returns the minimum distance (in label units) between labels for this feature and other labels with the same label text.

See also
setNoRepeatDistance()

Definition at line 302 of file qgslabelthinningsettings.h.

◆ setLabelMarginDistance()

void QgsLabelFeatureThinningSettings::setLabelMarginDistance ( double  distance)
inline

Sets the minimum distance (in label units) between labels for this feature and other labels.

See also
labelMarginDistance()

Definition at line 295 of file qgslabelthinningsettings.h.

◆ setNoRepeatDistance()

void QgsLabelFeatureThinningSettings::setNoRepeatDistance ( double  distance)
inline

Sets the minimum distance (in label units) between labels for this feature and other labels with the same label text.

See also
noRepeatDistance()

Definition at line 309 of file qgslabelthinningsettings.h.


The documentation for this class was generated from the following file: