marble
PositionTracking.cpp
Go to the documentation of this file.
87 m_length += distanceSphere( m_currentTrack->coordinatesAt( m_currentTrack->size() - 1 ), position );
339 d->m_currentTrack = dynamic_cast<GeoDataTrack*>( d->m_trackSegments->child( d->m_trackSegments->size() - 1 ) );
396 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:234
QString errorString() const
Definition: GeoDataMultiTrack.h:25
void addStyleMap(const GeoDataStyleMap &map)
Add a stylemap to the stylemap storage.
Definition: GeoDataDocument.cpp:166
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:244
A container for Features, Styles and in the future Schemas.
Definition: GeoDataDocument.h:65
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:137
void setAlpha(int alpha)
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
GeoDataAccuracy accuracy() const
Returns the estimated accuracy of the current position.
Definition: PositionTracking.cpp:384
GeoDataGeometry * geometry()
The geometry of the GeoDataPlacemark is to be rendered to the marble map along with the icon at the c...
Definition: GeoDataPlacemark.cpp:152
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:221
const char * name() const
bool isTrackEmpty() const
Returns true if there is no position in the track.
Definition: PositionTracking.cpp:366
void setName(const QString &value)
Set a new name for this feature.
Definition: GeoDataFeature.cpp:549
Definition: GeoDataDocument.h:43
bool isEmpty() const
Standard Marble way of writing XML This class is intended to be a standardised way of writing XML for...
Definition: GeoWriter.h:29
void addStyle(const GeoDataStyle &style)
Add a style to the style storage.
Definition: GeoDataDocument.cpp:134
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
PositionProviderStatus
Definition: PositionProviderPluginInterface.h:25
const char * kmlTag_nameSpaceOgc22
Definition: KmlElementDictionary.cpp:34
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:239
virtual void close()
void clearTrack()
Removes all track segments which were recorded.
Definition: PositionTracking.cpp:288
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:249
void statusChanged(PositionProviderStatus status)
bool saveTrack(const QString &fileName)
Saves the track document to file.
Definition: PositionTracking.cpp:255
PositionProviderStatus status() const
Returns the status of the current position provider plugin, if any.
Definition: PositionTracking.cpp:394
iterator insert(const Key &key, const T &value)
void setPositionProviderPlugin(PositionProviderPlugin *plugin)
Change the position provider to use.
Definition: PositionTracking.cpp:184
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:389
Definition: GeoDataAccuracy.h:22
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
QString baseName() const
qreal length(qreal planetRadius) const
Returns the total track length.
Definition: PositionTracking.cpp:379
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-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.