[Marble-devel] Visibility of GeoDataLinearRing
Knut Krause
knut.krause at lagom.de
Wed Feb 26 08:47:01 UTC 2014
Hej Josh,
this was my first thought too but the IRC channel told me to use the
GeoDataDocument instead since using GeoPainter directly is not what you're
supposed to do nowadays.
Sadly it looks like nobody has another suggestion though. I'll try the code
from the techbase as it is later and if it's showing the same bug maybe I'll
have to stick with GeoPainter, too.
Knut
Am Dienstag, 25. Februar 2014, 10:02:46 schrieb Josh Knox:
> On 02/13/2014 05:57 AM, Knut Krause wrote:
> > Hi,
> >
> > I added a GeoDataLinearRing to my MarbleWidget to show a selected region.
> > Now this ring is just visible at some higher zoom levels. What can I do
> > that my ring is always visible?
> >
> >
> > Knut
> > _______________________________________________
> > Marble-devel mailing list
> > Marble-devel at kde.org
> > https://mail.kde.org/mailman/listinfo/marble-devel
>
> Hi Knut,
>
> I draw various perimeters by stuffing GeoDataLinearRing into a
> GeoDataPolygon and then drawing that with GeoPainter::drawPolygon();.
>
> As a simple example:
>
> void KnutsWidget::customPaint(GeoPainter* painter) {
>
> GeoDataLinearRing points;
>
> // add some points to the ring
> // ...
> // ...
>
> // put the points in a polygon
> GeoDataPolygon region;
> region.setOuterBoundary(points);
>
> painter->drawPolygon(region);
> }
>
> This draws the polygon boundary at all zoom levels for me.
>
> Josh
>
>
>
>
>
>
>
> _______________________________________________
> Marble-devel mailing list
> Marble-devel at kde.org
> https://mail.kde.org/mailman/listinfo/marble-devel
More information about the Marble-devel
mailing list