<div>Wow, great!</div>I alreay know the logics behind it. I have done many QgsMapCanvasItem subclasses in my Python plugins to customize the marker graphics.<div>Having it incorporated in QgsRubberBand saves some boilerplate code ;)</div>
<div><br></div><div>giovanni</div><div><br></div><div><br><br><div class="gmail_quote">2012/11/14 Matthias Kuhn <span dir="ltr"><<a href="mailto:matthias.kuhn@gmx.ch" target="_blank">matthias.kuhn@gmx.ch</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On the other hand, there is already QgsVertexMarker, which offers<br>
similar possibilities.<br>
<div class="HOEnZb"><div class="h5"><br>
On Wed, 2012-11-14 at 13:01 +0100, Matthias Kuhn wrote:<br>
> Already done:<br>
><br>
> <a href="https://github.com/matthias-kuhn/Quantum-GIS/tree/rubberband-point" target="_blank">https://github.com/matthias-kuhn/Quantum-GIS/tree/rubberband-point</a><br>
><br>
> Please have a look at it.<br>
><br>
> from qgis.gui import *<br>
> rb = QgsRubberBand( qgis.utils.iface.mapCanvas(), QGis.Point )<br>
> rb.setWidth( 5 )<br>
> [Add some points]<br>
><br>
> On Wed, 2012-11-14 at 12:54 +0100, G. Allegri wrote:<br>
> > I'll try to implement it as soon as I find a slot of time.<br>
> > I don't guarantee it because my C++ programming skills are not so<br>
> > high...<br>
> ><br>
> ><br>
> > giovanni<br>
> ><br>
> > 2012/11/14 Matthias Kuhn <<a href="mailto:matthias.kuhn@gmx.ch">matthias.kuhn@gmx.ch</a>><br>
> >         On Mon, 2012-11-12 at 21:27 +0100, G. Allegri wrote:<br>
> >         > Let me clarify my request a bit more. I know QgsRubberBand<br>
> >         can manage<br>
> >         > points and paint them as square graphics.<br>
> >         > What I mean is painting circles (drawEllipse).<br>
> ><br>
> >         I think it's reasonable to introduce such a thing.<br>
> >         QgsRubberBand is used<br>
> >         for temporary highlighting / painting of features and I see no<br>
> >         reason<br>
> >         why this should not be allowed for points. I would also have<br>
> >         use for<br>
> >         that.<br>
> ><br>
> >         Matthias<br>
> ><br>
> >         > giovanni<br>
> >         ><br>
> >         > Sent from Nexus<br>
> >         ><br>
> >         > Il giorno 12/nov/2012 18:27, "G. Allegri"<br>
> >         <<a href="mailto:giohappy@gmail.com">giohappy@gmail.com</a>> ha<br>
> >         > scritto:<br>
> >         >         Bear with me if this is a trivial request.<br>
> >         >         QgsRubberBand only supports lines and polygons, why<br>
> >         don't we<br>
> >         >         extend it to support points/multipoints too?<br>
> >         ><br>
> >         ><br>
> >         >         giovanni<br>
> >         > _______________________________________________<br>
> >         > Qgis-developer mailing list<br>
> >         > <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
> >         > <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
> ><br>
> ><br>
> ><br>
> ><br>
><br>
><br>
> _______________________________________________<br>
> Qgis-developer mailing list<br>
> <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
<br>
<br>
</div></div></blockquote></div><br></div>