<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:st1 =
"urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19190"><o:SmartTagType
name="country-region"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="City"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="place"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!--[if !mso]>
<STYLE>st1\:* {
BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>
<!--
/* Font Definitions */
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:Arial;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
@page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
-->
</STYLE>
</HEAD>
<BODY lang=EN-GB link=blue bgColor=#ffffff vLink=purple>
<DIV><FONT size=2 face=Arial>Hi Ian,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>>><SPAN style="FONT-SIZE: 10pt">I have tried
implementing my own </SPAN><FONT size=2 face="Courier New"><SPAN
style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9.5pt">PositionProviderPlugin</SPAN></FONT><FONT
size=2><SPAN style="FONT-SIZE: 9.5pt"> </SPAN></FONT></FONT></DIV>
<DIV><FONT size=2 face=Arial><FONT size=2 face="Courier New"><SPAN
style="FONT-SIZE: 9.5pt"></SPAN></FONT></FONT> </DIV>
<DIV><FONT size=2 face=Arial>try the positionprovider/FileReade
plugin,</FONT></DIV>
<DIV><FONT size=2 face=Arial>this is a Gps simulation plugin.</FONT></DIV>
<DIV><FONT size=2 face=Arial>First use marble/routing functionality to
create</FONT></DIV>
<DIV><FONT size=2 face=Arial>a route, export the route to:</FONT></DIV>
<DIV><FONT size=2 face=Arial>..\mapdata\routing\route.kml </FONT><FONT size=2
face=Arial>.</FONT></DIV>
<DIV><FONT size=2 face=Arial>The FileReader plugin imports the placemarks from
the route.kml,</FONT></DIV>
<DIV><FONT size=2 face=Arial>see if this works.</FONT></DIV>
<DIV><FONT size=2 face="Courier New"></FONT> </DIV>
<DIV><FONT size=2 face=Arial>br, konrad</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=ian.holtham@srt-marine.com
href="mailto:ian.holtham@srt-marine.com">Ian Holtham</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=marble-devel@kde.org
href="mailto:marble-devel@kde.org">marble-devel@kde.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, March 28, 2012 5:26
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Marble-devel] Plotting custom
position data on MarbleWidget (viaPositionProviderPlugin?)</DIV>
<DIV><BR></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT size=2 face=Arial><SPAN
style="FONT-SIZE: 10pt">Hello. I would like to be able to plot a track of
position data (from a custom GPS data source) onto a map displayed in
MarbleWidget. Ideally I would like the user to be able to hover over any point
on the track and get a display of the data (time, position, etc) at that
point?<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT size=2 face=Arial><SPAN
style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT size=2 face=Arial><SPAN style="FONT-SIZE: 10pt">Could
anyone let me know the best way to do this?<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT size=2 face=Arial><SPAN
style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT size=2 face=Arial><SPAN style="FONT-SIZE: 10pt">I
have tried implementing my own </SPAN></FONT><FONT size=2
face="Courier New"><SPAN
style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9.5pt">PositionProviderPlugin</SPAN></FONT><FONT
size=2><SPAN style="FONT-SIZE: 9.5pt"> and setting this visible in the
MarbleWidget:<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT size=2 face=Consolas><SPAN
style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT size=2 face="Courier New"><SPAN
style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9.5pt">Marble::MarbleModel*
model = <FONT color=blue><SPAN
style="COLOR: blue">this</SPAN></FONT>->model();<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT size=2 face="Courier New"><SPAN
style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9.5pt">model->positionTracking()->setPositionProviderPlugin(
<FONT color=blue><SPAN style="COLOR: blue">new</SPAN></FONT>
Marble::CustomPositionProvider() );<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT size=2 face="Courier New"><SPAN
style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9.5pt">model->positionTracking()->setTrackVisible(
<FONT color=blue><SPAN style="COLOR: blue">true</SPAN></FONT>
);<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT size=2 face=Arial><SPAN
style="FONT-SIZE: 9.5pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT size=2 face=Arial><SPAN
style="FONT-SIZE: 9.5pt">However when I run this, the widget only displays a
small segment (say 30 degrees) of the map centred at the current position in
the direction given by the </SPAN></FONT><FONT size=2 face="Courier New"><SPAN
style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9.5pt">PositionProviderPlugin</SPAN></FONT><FONT
size=2><SPAN style="FONT-SIZE: 9.5pt"> with the rest of the widget remaining
undrawn.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT size=2 face=Arial><SPAN
style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT size=2 face=Arial><SPAN style="FONT-SIZE: 10pt">I am
using a QT only build of the MarbleWidget (version 1.2) build on Windows using
Visual Studio 2010<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT size=2 face=Arial><SPAN
style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT size=2 face=Arial><SPAN style="FONT-SIZE: 10pt">Any
assistance would be gratefully appreciated.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT size=2 face=Arial><SPAN
style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=navy size=2 face="Courier New"><SPAN
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">Ian
Holtham</SPAN></FONT><FONT color=navy><SPAN
style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=navy size=2 face="Courier New"><SPAN
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">Software
Engineer</SPAN></FONT><FONT color=navy><SPAN
style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=navy size=2 face=Arial><SPAN
style="COLOR: navy; FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=navy size=2 face="Courier New"><SPAN
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">Software
Radio Technology plc</SPAN></FONT><FONT color=navy><SPAN
style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=navy size=2 face="Courier New"><SPAN
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">Wireless
House</SPAN></FONT><FONT color=navy><SPAN
style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><st1:City w:st="on"><st1:place w:st="on"><FONT color=navy
size=2 face="Courier New"><SPAN
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">Westfield</SPAN></FONT></st1:place></st1:City><FONT
color=navy face="Courier New"><SPAN
style="FONT-FAMILY: 'Courier New'; COLOR: navy"> Industrial
Estate</SPAN></FONT><FONT color=navy><SPAN
style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=navy size=2 face="Courier New"><SPAN
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">Midsomer
Norton</SPAN></FONT><FONT color=navy><SPAN
style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><st1:City w:st="on"><st1:place w:st="on"><FONT color=navy
size=2 face="Courier New"><SPAN
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">Bath</SPAN></FONT></st1:place></st1:City><FONT
color=navy><SPAN style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><st1:country-region w:st="on"><st1:place w:st="on"><FONT
color=navy size=2 face="Courier New"><SPAN
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">England</SPAN></FONT></st1:place></st1:country-region><FONT
color=navy><SPAN style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=navy size=2 face="Courier New"><SPAN
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">BA3
4BS</SPAN></FONT><FONT color=navy><SPAN
style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=navy size=2 face=Arial><SPAN
style="COLOR: navy; FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=navy size=2 face="Courier New"><SPAN
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">Direct line
+44 (0)1761 409 516</SPAN></FONT><FONT color=navy><SPAN
style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=navy size=2 face="Courier New"><SPAN
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">Office +44
(0)1761 409 500</SPAN></FONT><FONT color=navy><SPAN
style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=navy size=2 face="Courier New"><SPAN
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">Fax +44
(0)1761 410 093</SPAN></FONT><FONT color=navy><SPAN
style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=navy size=2 face=Arial><SPAN
style="COLOR: navy; FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=navy size=2 face="Courier New"><SPAN
style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><A
href="http://www.srt-marine.com/">www.srt-marine.com</A></SPAN></FONT><FONT
size=3 face="Times New Roman"><SPAN
style="FONT-FAMILY: 'Times New Roman'; FONT-SIZE: 12pt"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT size=2
face=Arial><o:p> </o:p></FONT></P></DIV>Registered Office: Wireless
House, Westfield Industrial Estate, Midsomer Norton, Bath BA3 4BS The SRT plc
group includes: Software Radio Technology plc. Registered in England No.
5459678 SRT Marine Technology Ltd. Registered in England No. 4317661 The
message contains information that may be privileged or confidential and is the
property of the Software Radio Technology plc group. It is intended only for
the person to whom it is addressed. If you are not the intended recipient, you
are not authorized to read, print, retain, copy, disseminate, distribute, or
use this message or any part thereof. If you receive this message in error,
please notify the sender immediately and delete all copies of this message.
Please Note: No commitment is or can be made by any employee of SRT on behalf
of SRT for any goods or service unless a numbered and duly authorised SRT
Purchase Order is first provided.
<P>
<HR>
<P></P>_______________________________________________<BR>Marble-devel mailing
list<BR>Marble-devel@kde.org<BR>https://mail.kde.org/mailman/listinfo/marble-devel<BR></BLOCKQUOTE></BODY></HTML>