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:
Larry Shaffer 2012-07-18 16:06:46 -06:00
parent c668c5d7d4
commit 0c62390027
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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;