QGIS API Documentation 3.41.0-Master (45a0abf3bec)
|
Class that stores computed placement from labeling engine. More...
#include <qgslabelingresults.h>
Public Member Functions | |
QgsLabelingResults () | |
QgsLabelingResults (const QgsLabelingResults &)=delete | |
~QgsLabelingResults () | |
QList< QgsLabelPosition > | allLabels () const |
Returns a list of all labels generated by the labeling run. | |
QList< QgsCalloutPosition > | calloutsWithinRectangle (const QgsRectangle &rectangle) const |
Returns a list of callouts with origins or destinations inside the given rectangle. | |
QList< QgsLabelPosition > | groupedLabelPositions (long long groupId) const |
Returns a list of all label positions sharing the same group ID (i.e. | |
QList< QgsLabelPosition > | labelsAtPosition (const QgsPointXY &p) const |
Returns the details of any labels placed at the specified point (in map coordinates). | |
QList< QgsLabelPosition > | labelsWithinRect (const QgsRectangle &r) const |
Returns the details of any labels placed within the specified rectangle (in map coordinates). | |
QgsLabelingResults & | operator= (const QgsLabelingResults &rh)=delete |
void | setMapSettings (const QgsMapSettings &settings) |
Sets the map settings associated with the labeling run. | |
Friends | |
class | QgsPalLabeling |
class | QgsVectorLayerDiagramProvider |
class | QgsVectorLayerLabelProvider |
Class that stores computed placement from labeling engine.
Definition at line 33 of file qgslabelingresults.h.
QgsLabelingResults::QgsLabelingResults | ( | ) |
Definition at line 21 of file qgslabelingresults.cpp.
|
default |
|
delete |
QList< QgsLabelPosition > QgsLabelingResults::allLabels | ( | ) | const |
Returns a list of all labels generated by the labeling run.
Definition at line 29 of file qgslabelingresults.cpp.
QList< QgsCalloutPosition > QgsLabelingResults::calloutsWithinRectangle | ( | const QgsRectangle & | rectangle | ) | const |
Returns a list of callouts with origins or destinations inside the given rectangle.
The rectangle is specified in map coordinates.
Definition at line 83 of file qgslabelingresults.cpp.
QList< QgsLabelPosition > QgsLabelingResults::groupedLabelPositions | ( | long long | groupId | ) | const |
Returns a list of all label positions sharing the same group ID (i.e.
positions for individual characters in a curved label).
Definition at line 70 of file qgslabelingresults.cpp.
QList< QgsLabelPosition > QgsLabelingResults::labelsAtPosition | ( | const QgsPointXY & | p | ) | const |
Returns the details of any labels placed at the specified point (in map coordinates).
Definition at line 34 of file qgslabelingresults.cpp.
QList< QgsLabelPosition > QgsLabelingResults::labelsWithinRect | ( | const QgsRectangle & | r | ) | const |
Returns the details of any labels placed within the specified rectangle (in map coordinates).
Definition at line 52 of file qgslabelingresults.cpp.
|
delete |
void QgsLabelingResults::setMapSettings | ( | const QgsMapSettings & | settings | ) |
Sets the map settings associated with the labeling run.
Definition at line 99 of file qgslabelingresults.cpp.
|
friend |
Definition at line 88 of file qgslabelingresults.h.
|
friend |
Definition at line 90 of file qgslabelingresults.h.
|
friend |
Definition at line 89 of file qgslabelingresults.h.