|
QGIS API Documentation 4.3.0-Master (f865f0c58a6)
|
Queries the labeling structure at a given point. More...
#include <qgslabelsearchtree.h>
Public Member Functions | |
| QgsLabelSearchTree () | |
| QgsLabelSearchTree (const QgsLabelSearchTree &rh)=delete | |
| ~QgsLabelSearchTree () | |
| Q_DECL_DEPRECATED QList< QgsLabelPosition > | allLabels () const |
| Returns a list of all labels generated by the labeling run. | |
| QList< const QgsCalloutPosition * > | calloutsInRectangle (const QgsRectangle &rectangle) const |
| Returns the list of callouts with origins or destinations inside the given rectangle. | |
| Q_DECL_DEPRECATED void | clear () |
| Removes and deletes all the entries. | |
| void | label (const QgsPointXY &p, QList< QgsLabelPosition * > &posList) const |
| Returns label position(s) at a given point. | |
| void | labelsInRect (const QgsRectangle &r, QList< QgsLabelPosition * > &posList) const |
| Returns label position(s) in given rectangle. | |
| QgsLabelSearchTree & | operator= (const QgsLabelSearchTree &rh)=delete |
| Q_DECL_DEPRECATED void | setMapSettings (const QgsMapSettings &settings) |
| Sets the map settings associated with the labeling run. | |
Friends | |
| class | QgsLabelingResults |
Queries the labeling structure at a given point.
This class is a small wrapper around the pal RTree class.
Definition at line 49 of file qgslabelsearchtree.h.
|
default |
|
default |
|
delete |
| QList< QgsLabelPosition > QgsLabelSearchTree::allLabels | ( | ) | const |
Returns a list of all labels generated by the labeling run.
Definition at line 43 of file qgslabelsearchtree.cpp.
| QList< const QgsCalloutPosition * > QgsLabelSearchTree::calloutsInRectangle | ( | const QgsRectangle & | rectangle | ) | const |
Returns the list of callouts with origins or destinations inside the given rectangle.
The rectangle is specified in map coordinates.
QgsLabelSearchTree keeps ownership, don't delete the returned objects.
Definition at line 67 of file qgslabelsearchtree.cpp.
| void QgsLabelSearchTree::clear | ( | ) |
Removes and deletes all the entries.
Definition at line 84 of file qgslabelsearchtree.cpp.
| void QgsLabelSearchTree::label | ( | const QgsPointXY & | p, |
| QList< QgsLabelPosition * > & | posList ) const |
Returns label position(s) at a given point.
QgsLabelSearchTree keeps ownership, don't delete the LabelPositions
Definition at line 21 of file qgslabelsearchtree.cpp.
| void QgsLabelSearchTree::labelsInRect | ( | const QgsRectangle & | r, |
| QList< QgsLabelPosition * > & | posList ) const |
Returns label position(s) in given rectangle.
QgsLabelSearchTree keeps ownership, don't delete the LabelPositions
Definition at line 48 of file qgslabelsearchtree.cpp.
|
delete |
| void QgsLabelSearchTree::setMapSettings | ( | const QgsMapSettings & | settings | ) |
Sets the map settings associated with the labeling run.
Definition at line 81 of file qgslabelsearchtree.cpp.
|
friend |
Definition at line 109 of file qgslabelsearchtree.h.