marble
PositionTracking.cpp
Go to the documentation of this file.
86 m_length += distanceSphere( m_currentTrack->coordinatesAt( m_currentTrack->size() - 1 ), position );
338 d->m_currentTrack = dynamic_cast<GeoDataTrack*>( d->m_trackSegments->child( d->m_trackSegments->size() - 1 ) );
395 return d->m_positionProvider ? d->m_positionProvider->status() : PositionProviderStatusUnavailable;
qreal direction() const
provides direction of the gps device in degrees with geographical north
Definition: PositionTracking.cpp:233
Definition: GeoDataMultiTrack.h:25
void addStyleMap(const GeoDataStyleMap &map)
Add a stylemap to the stylemap storage.
Definition: GeoDataDocument.cpp:137
A geometry for tracking objects made of (time, coordinates) pairs.
Definition: GeoDataTrack.h:54
bool trackVisible() const
provides the visibility of the Position Tracking document
Definition: PositionTracking.cpp:243
A container for Features, Styles and in the future Schemas.
Definition: GeoDataDocument.h:64
Definition: GeoDataParser.h:40
The representation of GeoData in a model This class represents all available data given by kml-data f...
Definition: GeoDataTreeModel.h:32
PositionTracking(GeoDataTreeModel *model)
Definition: PositionTracking.cpp:136
qreal distanceSphere(qreal lon1, qreal lat1, qreal lon2, qreal lat2)
This method calculates the shortest distance between two points on a sphere.
Definition: MarbleMath.h:52
void gpsLocation(GeoDataCoordinates, qreal)
a class to map different styles to one style
Definition: GeoDataStyleMap.h:38
const char * kmlTag_nameSpace22
Definition: KmlElementDictionary.cpp:33
GeoDataGeometry * geometry() const
The geometry of the GeoDataPlacemark is to be rendered to the marble map along with the icon at the c...
Definition: GeoDataPlacemark.cpp:63
GeoDataAccuracy accuracy() const
Returns the estimated accuracy of the current position.
Definition: PositionTracking.cpp:383
The abstract class that provides position information.
Definition: PositionProviderPlugin.h:26
Definition: GeoDataParser.h:36
QString error() const
gives the error message from the current position provider
Definition: PositionTracking.cpp:220
bool isTrackEmpty() const
Returns true if there is no position in the track.
Definition: PositionTracking.cpp:365
void setName(const QString &value)
Set a new name for this feature.
Definition: GeoDataFeature.cpp:485
Definition: GeoDataDocument.h:43
Standard Marble way of writing XML This class is intended to be a standardised way of writing XML for...
Definition: GeoWriter.h:28
void addStyle(const GeoDataStyle &style)
Add a style to the style storage.
Definition: GeoDataDocument.cpp:110
PositionProviderStatus
Definition: PositionProviderPluginInterface.h:25
void setDocumentType(const QString &documentType)
Set the current document type.
Definition: GeoWriter.cpp:79
QDateTime timestamp() const
Returns the timestamp of last recent tracking point.
Definition: PositionTracking.cpp:238
void clearTrack()
Removes all track segments which were recorded.
Definition: PositionTracking.cpp:287
void positionProviderPluginChanged(PositionProviderPlugin *activePlugin)
emits positionProviderPluginChanged(0) when provider is disabled
PositionProviderPlugin * positionProviderPlugin()
Returns the current position provider plugin, or 0 if none is in use.
void setTrackVisible(bool visible)
Toggles the visibility of the Position Tracking document.
Definition: PositionTracking.cpp:248
void statusChanged(PositionProviderStatus status)
bool saveTrack(const QString &fileName)
Saves the track document to file.
Definition: PositionTracking.cpp:254
PositionProviderStatus status() const
Returns the status of the current position provider plugin, if any.
Definition: PositionTracking.cpp:393
void setPositionProviderPlugin(PositionProviderPlugin *plugin)
Change the position provider to use.
Definition: PositionTracking.cpp:183
bool write(QIODevice *device, const GeoNode *feature)
The main API call to use the XML writer.
Definition: GeoWriter.cpp:28
GeoDataCoordinates currentLocation() const
Returns the current position, if any.
Definition: PositionTracking.cpp:388
Definition: GeoDataAccuracy.h:22
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
qreal length(qreal planetRadius) const
Returns the total track length.
Definition: PositionTracking.cpp:378
GeoDocument * releaseDocument()
retrieve the parsed document and reset the parser If parsing was successful, retrieve the resulting d...
Definition: GeoParser.cpp:205
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.