19#ifndef QGSLABELSEARCHTREE_H
20#define QGSLABELSEARCHTREE_H
93 bool insertLabel(
pal::LabelPosition *labelPos,
QgsFeatureId featureId, const QString &layerName, const QString &labeltext, const QFont &labelfont,
bool diagram = false,
bool pinned = false, const QString &providerId = QString(),
bool isUnplaced = false,
long long linkedId = 0 )
SIP_SKIP;
133 long long mNextFeatureId = 1;
139 QTransform mTransform;
Represents the calculated placement of a map label callout line.
A generic rtree spatial index based on a libspatialindex backend.
Represents the calculated placement of a map label.
QList< QgsLabelPosition * > groupedLabelPositions(long long groupId) const
Returns a list of all label positions sharing the same group ID (i.e.
QgsLabelSearchTree & operator=(const QgsLabelSearchTree &rh)=delete
bool insertLabel(pal::LabelPosition *labelPos, QgsFeatureId featureId, const QString &layerName, const QString &labeltext, const QFont &labelfont, bool diagram=false, bool pinned=false, const QString &providerId=QString(), bool isUnplaced=false, long long linkedId=0)
Inserts label position.
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.
QgsLabelSearchTree(const QgsLabelSearchTree &rh)=delete
void labelsInRect(const QgsRectangle &r, QList< QgsLabelPosition * > &posList) const
Returns label position(s) in given rectangle.
QList< const QgsCalloutPosition * > calloutsInRectangle(const QgsRectangle &rectangle) const
Returns the list of callouts with origins or destinations inside the given rectangle.
bool insertCallout(const QgsCalloutPosition &position)
Inserts a rendered callout position.
void setMapSettings(const QgsMapSettings &settings)
Sets the map settings associated with the labeling run.
QList< QgsLabelPosition > allLabels() const
Returns a list of all labels generated by the labeling run.
Contains configuration for rendering maps.
A rectangle specified with double values.
LabelPosition is a candidate feature label position.
qint64 QgsFeatureId
64 bit feature ids negative numbers are used for uncommitted/newly added features