[Marble-devel] Gps tracking
Konrad Enzensberger
e.konrad at mpegcode.com
Tue Sep 6 09:13:52 UTC 2011
Hi Thorsten,
>>where it puts the driving direction always upwards:
yes
>>the third parameter in createFromEuler should allow to rotate the globe
i am not clear about third parameter value.
should it be an angle ? in radians ? or degree?
maybe this angle should be calculated from last gps position to current
position?
thanks, konrad
----- Original Message -----
From: "Torsten Rahn" <tackat at t-online.de>
To: <marble-devel at kde.org>
Sent: Monday, September 05, 2011 5:25 PM
Subject: Re: [Marble-devel] Gps tracking
>
> Hi Konrad,
>
>> Is there a way to rotate the map to allways drive in north direction ?
>> like
>> navigation devices do?
>
> Well currently it does always have north pointed upwards. You probably
> mean
> the case where it puts the driving direction always upwards:
>
> This was possible many moons ago: Have a look at:
>
> void MarbleMap::centerOn( const qreal lon, const qreal lat )
> {
> Quaternion quat;
> quat.createFromEuler( -lat * DEG2RAD, lon * DEG2RAD, 0.0 );
> d->m_viewParams.setPlanetAxis( quat );
> d->m_textureLayer.setNeedsUpdate();
>
> emit visibleLatLonAltBoxChanged( d->m_viewParams.viewport()-
>>viewLatLonAltBox() );
> }
>
> IIRC the third parameter in createFromEuler should allow to rotate the
> globe
> around the axis that is orthonormal to the screen plane.
>
> I recall that at some point we had a method inside MarbleMap which took
> three
> parameters to accomplish this. Apparently It got removed at one point.
> Maybe
> we should reintroduce it.
>
> BR,
>
> Torsten
>
>
>
>> thanks for support,
>> konrad
>
> _______________________________________________
> 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