29 return mLabelSearchTree ? mLabelSearchTree->allLabels() : QList<QgsLabelPosition>();
34 QList<QgsLabelPosition> positions;
36 QList<QgsLabelPosition *> positionPointers;
37 if ( mLabelSearchTree )
39 mLabelSearchTree->label( p, positionPointers );
40 QList<QgsLabelPosition *>::const_iterator pointerIt = positionPointers.constBegin();
41 for ( ; pointerIt != positionPointers.constEnd(); ++pointerIt )
52 QList<QgsLabelPosition> positions;
54 QList<QgsLabelPosition *> positionPointers;
55 if ( mLabelSearchTree )
57 mLabelSearchTree->labelsInRect( r, positionPointers );
58 QList<QgsLabelPosition *>::const_iterator pointerIt = positionPointers.constBegin();
59 for ( ; pointerIt != positionPointers.constEnd(); ++pointerIt )
70 QList<QgsLabelPosition> positions;
71 if ( mLabelSearchTree )
73 const QList<QgsLabelPosition *> positionPointers = mLabelSearchTree->groupedLabelPositions( groupId );
74 positions.reserve( positionPointers.size() );
83 QList<QgsCalloutPosition> positions;
85 if ( mLabelSearchTree )
87 const QList<const QgsCalloutPosition *>positionPointers = mLabelSearchTree->calloutsInRectangle( rectangle );
99 mLabelSearchTree->setMapSettings( settings );