QGIS API Documentation  3.24.2-Tisler (13c1a02865)
Public Member Functions | Friends | List of all members
QgsLabelingResults Class Reference

Class that stores computed placement from labeling engine. More...

#include <qgslabelingresults.h>

Public Member Functions

 QgsLabelingResults ()
 
 QgsLabelingResults (const QgsLabelingResults &)=delete
 QgsLabelingResults cannot be copied. More...
 
 ~QgsLabelingResults ()
 
QList< QgsLabelPositionallLabels () const
 Returns a list of all labels generated by the labeling run. More...
 
QList< QgsCalloutPositioncalloutsWithinRectangle (const QgsRectangle &rectangle) const
 Returns a list of callouts with origins or destinations inside the given rectangle. More...
 
QList< QgsLabelPositionlabelsAtPosition (const QgsPointXY &p) const
 Returns the details of any labels placed at the specified point (in map coordinates). More...
 
QList< QgsLabelPositionlabelsWithinRect (const QgsRectangle &r) const
 Returns the details of any labels placed within the specified rectangle (in map coordinates). More...
 
QgsLabelingResultsoperator= (const QgsLabelingResults &rh)=delete
 QgsLabelingResults cannot be copied. More...
 
void setMapSettings (const QgsMapSettings &settings)
 Sets the map settings associated with the labeling run. More...
 

Friends

class QgsPalLabeling
 
class QgsVectorLayerDiagramProvider
 
class QgsVectorLayerLabelProvider
 

Detailed Description

Class that stores computed placement from labeling engine.

Since
QGIS 2.4

Definition at line 32 of file qgslabelingresults.h.

Constructor & Destructor Documentation

◆ QgsLabelingResults() [1/2]

QgsLabelingResults::QgsLabelingResults ( )

Definition at line 19 of file qgslabelingresults.cpp.

◆ ~QgsLabelingResults()

QgsLabelingResults::~QgsLabelingResults ( )
default

◆ QgsLabelingResults() [2/2]

QgsLabelingResults::QgsLabelingResults ( const QgsLabelingResults )
delete

QgsLabelingResults cannot be copied.

Member Function Documentation

◆ allLabels()

QList< QgsLabelPosition > QgsLabelingResults::allLabels ( ) const

Returns a list of all labels generated by the labeling run.

Since
QGIS 3.20

Definition at line 27 of file qgslabelingresults.cpp.

◆ calloutsWithinRectangle()

QList< QgsCalloutPosition > QgsLabelingResults::calloutsWithinRectangle ( const QgsRectangle rectangle) const

Returns a list of callouts with origins or destinations inside the given rectangle.

The rectangle is specified in map coordinates.

Since
QGIS 3.20

Definition at line 68 of file qgslabelingresults.cpp.

◆ labelsAtPosition()

QList< QgsLabelPosition > QgsLabelingResults::labelsAtPosition ( const QgsPointXY p) const

Returns the details of any labels placed at the specified point (in map coordinates).

Definition at line 32 of file qgslabelingresults.cpp.

◆ labelsWithinRect()

QList< QgsLabelPosition > QgsLabelingResults::labelsWithinRect ( const QgsRectangle r) const

Returns the details of any labels placed within the specified rectangle (in map coordinates).

Definition at line 50 of file qgslabelingresults.cpp.

◆ operator=()

QgsLabelingResults& QgsLabelingResults::operator= ( const QgsLabelingResults rh)
delete

QgsLabelingResults cannot be copied.

◆ setMapSettings()

void QgsLabelingResults::setMapSettings ( const QgsMapSettings settings)

Sets the map settings associated with the labeling run.

Since
QGIS 3.4.8

Definition at line 84 of file qgslabelingresults.cpp.

Friends And Related Function Documentation

◆ QgsPalLabeling

friend class QgsPalLabeling
friend

Definition at line 82 of file qgslabelingresults.h.

◆ QgsVectorLayerDiagramProvider

friend class QgsVectorLayerDiagramProvider
friend

Definition at line 84 of file qgslabelingresults.h.

◆ QgsVectorLayerLabelProvider

friend class QgsVectorLayerLabelProvider
friend

Definition at line 83 of file qgslabelingresults.h.


The documentation for this class was generated from the following files: