[Marble-devel] Gps tracking
Konrad Enzensberger
e.konrad at mpegcode.com
Wed Sep 7 07:07:47 UTC 2011
Hi Thorsten,
> I recall that at some point we had a method inside MarbleMap which took
> three
> parameters to accomplish this
i can not see which kind of value the third parameter should be.
angle in radian or degree ?
which way you use to calculate the third parameter ?
br, 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