QGIS API Documentation
3.22.4-Białowieża (ce8e65e95e)
|
Class that stores computed placement from labeling engine. More...
#include <qgslabelingresults.h>
Public Member Functions | |
QgsLabelingResults () | |
QgsLabelingResults (const QgsLabelingResults &)=delete | |
QgsLabelingResults cannot be copied. More... | |
~QgsLabelingResults () | |
QList< QgsLabelPosition > | allLabels () const |
Returns a list of all labels generated by the labeling run. More... | |
QList< QgsCalloutPosition > | calloutsWithinRectangle (const QgsRectangle &rectangle) const |
Returns a list of callouts with origins or destinations inside the given rectangle. More... | |
QList< QgsLabelPosition > | labelsAtPosition (const QgsPointXY &p) const |
Returns the details of any labels placed at the specified point (in map coordinates). More... | |
QList< QgsLabelPosition > | labelsWithinRect (const QgsRectangle &r) const |
Returns the details of any labels placed within the specified rectangle (in map coordinates). More... | |
QgsLabelingResults & | operator= (const QgsLabelingResults &rh)=delete |
QgsLabelingResults cannot be copied. More... | |
void | setMapSettings (const QgsMapSettings &settings) |
Sets the map settings associated with the labeling run. More... | |
Friends | |
class | QgsPalLabeling |
class | QgsVectorLayerDiagramProvider |
class | QgsVectorLayerLabelProvider |
Class that stores computed placement from labeling engine.
Definition at line 32 of file qgslabelingresults.h.
QgsLabelingResults::QgsLabelingResults | ( | ) |
Definition at line 19 of file qgslabelingresults.cpp.
|
default |
|
delete |
QgsLabelingResults cannot be copied.
QList< QgsLabelPosition > QgsLabelingResults::allLabels | ( | ) | const |
Returns a list of all labels generated by the labeling run.
Definition at line 27 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 68 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 32 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 50 of file qgslabelingresults.cpp.
|
delete |
QgsLabelingResults cannot be copied.
void QgsLabelingResults::setMapSettings | ( | const QgsMapSettings & | settings | ) |
Sets the map settings associated with the labeling run.
Definition at line 84 of file qgslabelingresults.cpp.
|
friend |
Definition at line 82 of file qgslabelingresults.h.
|
friend |
Definition at line 84 of file qgslabelingresults.h.
|
friend |
Definition at line 83 of file qgslabelingresults.h.