QGIS API Documentation
3.0.2-Girona (307d082)
|
A class to query the labeling structure at a given point (small wraper around pal RTree class) More...
#include <qgslabelsearchtree.h>
Public Member Functions | |
QgsLabelSearchTree ()=default | |
Constructor for QgsLabelSearchTree. More... | |
QgsLabelSearchTree (const QgsLabelSearchTree &rh)=delete | |
QgsLabelSearchTree cannot be copied. More... | |
~QgsLabelSearchTree () | |
void | clear () |
Removes and deletes all the entries. More... | |
bool | insertLabel (pal::LabelPosition *labelPos, int featureId, const QString &layerName, const QString &labeltext, const QFont &labelfont, bool diagram=false, bool pinned=false, const QString &providerId=QString()) |
Inserts label position. More... | |
void | label (const QgsPointXY &p, QList< QgsLabelPosition *> &posList) const |
Returns label position(s) at a given point. More... | |
void | labelsInRect (const QgsRectangle &r, QList< QgsLabelPosition *> &posList) const |
Returns label position(s) in given rectangle. More... | |
QgsLabelSearchTree & | operator= (const QgsLabelSearchTree &rh)=delete |
QgsLabelSearchTree cannot be copied. More... | |
A class to query the labeling structure at a given point (small wraper around pal RTree class)
Definition at line 37 of file qgslabelsearchtree.h.
|
default |
Constructor for QgsLabelSearchTree.
QgsLabelSearchTree::~QgsLabelSearchTree | ( | ) |
Definition at line 25 of file qgslabelsearchtree.cpp.
|
delete |
QgsLabelSearchTree cannot be copied.
void QgsLabelSearchTree::clear | ( | ) |
Removes and deletes all the entries.
Definition at line 98 of file qgslabelsearchtree.cpp.
bool QgsLabelSearchTree::insertLabel | ( | pal::LabelPosition * | labelPos, |
int | featureId, | ||
const QString & | layerName, | ||
const QString & | labeltext, | ||
const QFont & | labelfont, | ||
bool | diagram = false , |
||
bool | pinned = false , |
||
const QString & | providerId = QString() |
||
) |
Inserts label position.
Does not take ownership of labelPos
Definition at line 74 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 30 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 54 of file qgslabelsearchtree.cpp.
|
delete |
QgsLabelSearchTree cannot be copied.