marble
PlacemarkPositionProviderPlugin.cpp
Go to the documentation of this file.
137 GeoDataCoordinates const newCoordinates = placemark ? placemark->coordinate( m_timestamp ) : GeoDataCoordinates();
139 m_direction = m_coordinates.bearing( newCoordinates, GeoDataCoordinates::Degree, GeoDataCoordinates::FinalBearing );
169 m_direction = previousCoordinates.bearing( m_coordinates, GeoDataCoordinates::Degree, GeoDataCoordinates::FinalBearing );
172 const qreal averageAltitude = ( m_coordinates.altitude() + m_coordinates.altitude() ) / 2.0 + marbleModel()->planetRadius();
virtual PositionProviderPlugin * newInstance() const
Create a new PositionProvider Plugin and return it.
Definition: PlacemarkPositionProviderPlugin.cpp:92
virtual PositionProviderStatus status() const
Definition: PlacemarkPositionProviderPlugin.cpp:97
virtual QDateTime timestamp() const
Definition: PlacemarkPositionProviderPlugin.cpp:122
void statusChanged(PositionProviderStatus status) const
virtual QString name() const
Returns the user-visible name of the plugin.
Definition: PlacemarkPositionProviderPlugin.cpp:33
virtual QIcon icon() const
Returns an icon for the plugin.
Definition: PlacemarkPositionProviderPlugin.cpp:70
This file contains the headers for MarbleModel.
virtual QString copyrightYears() const
Definition: PlacemarkPositionProviderPlugin.cpp:58
Definition: PluginInterface.h:28
virtual void initialize()
Definition: PlacemarkPositionProviderPlugin.cpp:75
GeoDataCoordinates coordinate(const QDateTime &dateTime=QDateTime(), bool *iconAtCoordinates=0) const
Return the coordinates of the placemark at time dateTime as a GeoDataCoordinates. ...
Definition: GeoDataPlacemark.cpp:172
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
virtual qreal direction() const
Returns the direction in which the gps device is moving.
Definition: PlacemarkPositionProviderPlugin.cpp:117
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
QString tr(const char *sourceText, const char *disambiguation, int n)
The abstract class that provides position information.
Definition: PositionProviderPlugin.h:26
qreal altitude() const
return the altitude of the Point in meters
Definition: GeoDataCoordinates.cpp:1197
virtual bool isInitialized() const
Definition: PlacemarkPositionProviderPlugin.cpp:87
PlacemarkPositionProviderPlugin()
Definition: PlacemarkPositionProviderPlugin.cpp:22
void positionChanged(GeoDataCoordinates position, GeoDataAccuracy accuracy) const
virtual QList< PluginAuthor > pluginAuthors() const
Definition: PlacemarkPositionProviderPlugin.cpp:63
qreal bearing(const GeoDataCoordinates &other, Unit unit=Radian, BearingType type=InitialBearing) const
Returns the bearing (true bearing, the angle between the line defined by this point and the other and...
Definition: GeoDataCoordinates.cpp:1213
virtual GeoDataCoordinates position() const
Definition: PlacemarkPositionProviderPlugin.cpp:102
virtual QString version() const
Definition: PlacemarkPositionProviderPlugin.cpp:48
virtual QString nameId() const
Returns the unique name of the plugin.
Definition: PlacemarkPositionProviderPlugin.cpp:38
PositionProviderStatus
Definition: PositionProviderPluginInterface.h:25
bool isValid() const
virtual GeoDataAccuracy accuracy() const
Definition: PlacemarkPositionProviderPlugin.cpp:107
virtual qreal speed() const
Returns the speed of the gps device in meters per second.
Definition: PlacemarkPositionProviderPlugin.cpp:112
QString fromLatin1(const char *str, int size)
const MarbleModel * marbleModel() const
Definition: PositionProviderPlugin.cpp:37
Definition: GeoDataAccuracy.h:22
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
virtual QString guiString() const
Returns the string that should appear in the user interface.
Definition: PlacemarkPositionProviderPlugin.cpp:43
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
virtual QString description() const
Returns a user description of the plugin.
Definition: PlacemarkPositionProviderPlugin.cpp:53
qint64 msecsTo(const QDateTime &other) const
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.