mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
sip binding for QgsLabelingEngineInterface::labelsWithinRect()
qgis.utils.iface.mapCanvas().mapRenderer().labelingEngine().labelsWithinRect(some_extent) can now return all labels shown within the canvas (if that's the extent given).
This commit is contained in:
parent
c668c5d7d4
commit
0c62390027
@ -28,6 +28,9 @@ public:
|
||||
//! return infos about labels at a given (map) position
|
||||
//! @note: this method was added in version 1.7
|
||||
virtual QList<QgsLabelPosition> labelsAtPosition( const QgsPoint& p )= 0;
|
||||
//! return infos about labels within a given (map) rectangle
|
||||
//! @note: this method was added in version 1.9
|
||||
virtual QList<QgsLabelPosition> labelsWithinRect( const QgsRectangle& r ) = 0;
|
||||
|
||||
|
||||
//! called when passing engine among map renderers
|
||||
|
@ -89,6 +89,9 @@ class QgsLabelingEngineInterface
|
||||
//! return infos about labels at a given (map) position
|
||||
//! @note: this method was added in version 1.7
|
||||
virtual QList<QgsLabelPosition> labelsAtPosition( const QgsPoint& p ) = 0;
|
||||
//! return infos about labels within a given (map) rectangle
|
||||
//! @note: this method was added in version 1.9
|
||||
virtual QList<QgsLabelPosition> labelsWithinRect( const QgsRectangle& r ) = 0;
|
||||
|
||||
//! called when passing engine among map renderers
|
||||
virtual QgsLabelingEngineInterface* clone() = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user