QGIS API Documentation
2.6.0-Brighton
|
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. | |
void | label (const QgsPoint &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. | |
bool | insertLabel (LabelPosition *labelPos, int featureId, const QString &layerName, const QString &labeltext, const QFont &labelfont, bool diagram=false, bool pinned=false) |
Inserts label position. |
A class to query the labeling structure at a given point (small wraper around pal RTree class)
QgsLabelSearchTree::QgsLabelSearchTree | ( | ) |
QgsLabelSearchTree::~QgsLabelSearchTree | ( | ) |
void QgsLabelSearchTree::clear | ( | ) |
Removes and deletes all the entries.
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
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
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