[Qgis-developer] Fwd: [patch] rubberband extension
wonder.sk at gmail.com
Mon Oct 1 04:16:39 EDT 2007
(I resend the mail I've sent to qgis-dev - it has been crunched by
spam filter thinking that gmail is an evil spam server)
---------- Forwarded message ----------
From: Martin Dobias <wonder.sk at gmail.com>
Date: Oct 1, 2007 1:43 AM
Subject: Re: [Qgis-developer] [patch] rubberband extension
To: "Jürgen E. Fischer" <jef+qgis at norbit.de>
Cc: qgis-developer at qgis.org
On 9/29/07, Jürgen E. Fischer <jef+qgis at norbit.de> wrote:
> Hi there,
> attached patch adds the ability to query the points currently in a
> QgsRubberBand and to remove the last.
I've applied your patch to SVN trunk (rev 7235), with several modifications:
- changed indentation to meet QGIS guidelines - two spaces instead of a tab
- changed array of points to QList<QgsPoint> as now we use only Qt
containers for public API
- changed getPoints() and getPoint() to return a const reference - no
need to copy the object
- added python bindings
Thanks for the contribution.
> I use this in a plugin to avoid the need to keep track of the selected
> points twice and to be able to take back the last entered point from a
> context menu.
Could you tell us more about your plugin? We're always interested in
what ways people use QGIS :-)
> QgsMapToolCapture should probably be updated accordingly, but didn't find the
> time yet.
In what way should it be updated?
More information about the Qgis-developer