Skip to content
Permalink
Browse files

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).
  • Loading branch information
dakcarto committed Jul 18, 2012
1 parent c668c5d commit 0c62390027cae1cbbf9442b896171b90e919d4ce
Showing with 6 additions and 0 deletions.
  1. +3 −0 python/core/qgsmaprenderer.sip
  2. +3 −0 src/core/qgsmaprenderer.h
@@ -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;

0 comments on commit 0c62390

Please sign in to comment.
You can’t perform that action at this time.