|
QGIS API Documentation
2.12.0-Lyon
|
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 () | |
| ~QgsLabelSearchTree () | |
| void | clear () |
| Removes and deletes all the entries. More... | |
| bool | insertLabel (LabelPosition *labelPos, int featureId, const QString &layerName, const QString &labeltext, const QFont &labelfont, bool diagram=false, bool pinned=false) |
| Inserts label position. More... | |
| void | label (const QgsPoint &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... | |
A class to query the labeling structure at a given point (small wraper around pal RTree class)
Definition at line 33 of file qgslabelsearchtree.h.
| QgsLabelSearchTree::QgsLabelSearchTree | ( | ) |
Definition at line 25 of file qgslabelsearchtree.cpp.
| QgsLabelSearchTree::~QgsLabelSearchTree | ( | ) |
Definition at line 29 of file qgslabelsearchtree.cpp.
| void QgsLabelSearchTree::clear | ( | ) |
Removes and deletes all the entries.
Definition at line 94 of file qgslabelsearchtree.cpp.
| bool QgsLabelSearchTree::insertLabel | ( | LabelPosition * | labelPos, |
| int | featureId, | ||
| const QString & | layerName, | ||
| const QString & | labeltext, | ||
| const QFont & | labelfont, | ||
| bool | diagram = false, |
||
| bool | pinned = false |
||
| ) |
Inserts label position.
Does not take ownership of labelPos
Definition at line 70 of file qgslabelsearchtree.cpp.
| void QgsLabelSearchTree::label | ( | const QgsPoint & | p, |
| QList< QgsLabelPosition * > & | posList | ||
| ) | const |
Returns label position(s) at a given point.
QgsLabelSearchTree keeps ownership, don't delete the LabelPositions
Definition at line 34 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.
1.8.9.1