marble
RouteSimulationPositionProviderPlugin.cpp
Go to the documentation of this file.
121 GeoDataDocument* document = const_cast<MarbleModel *>( marbleModel() )->routingManager()->alternativeRoutesModel()->currentRoute();
132 m_status = m_lineString.isEmpty() ? PositionProviderStatusUnavailable : PositionProviderStatusAcquiring;
172 m_direction = m_currentPosition.bearing( newPosition, GeoDataCoordinates::Degree, GeoDataCoordinates::FinalBearing );
191 Q_EXPORT_PLUGIN2( RouteSimulationPositionProviderPlugin, Marble::RouteSimulationPositionProviderPlugin )
A container for Features, Styles and in the future Schemas.
Definition: GeoDataDocument.h:65
virtual QDateTime timestamp() const
Definition: RouteSimulationPositionProviderPlugin.cpp:155
void statusChanged(PositionProviderStatus status) const
This file contains the headers for MarbleModel.
Definition: PluginInterface.h:28
virtual QString description() const
Returns a user description of the plugin.
Definition: RouteSimulationPositionProviderPlugin.cpp:53
virtual QString name() const
Returns the user-visible name of the plugin.
Definition: RouteSimulationPositionProviderPlugin.cpp:33
virtual QString version() const
Definition: RouteSimulationPositionProviderPlugin.cpp:48
QString tr(const char *sourceText, const char *disambiguation, int n)
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
virtual GeoDataCoordinates position() const
Definition: RouteSimulationPositionProviderPlugin.cpp:86
virtual void initialize()
Definition: RouteSimulationPositionProviderPlugin.cpp:115
QString fromUtf8(const char *str, int size)
virtual QIcon icon() const
Returns an icon for the plugin.
Definition: RouteSimulationPositionProviderPlugin.cpp:71
void positionChanged(GeoDataCoordinates position, GeoDataAccuracy accuracy) const
virtual ~RouteSimulationPositionProviderPlugin()
Definition: RouteSimulationPositionProviderPlugin.cpp:111
virtual GeoDataAccuracy accuracy() const
Definition: RouteSimulationPositionProviderPlugin.cpp:91
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 qreal direction() const
Returns the direction in which the gps device is moving.
Definition: RouteSimulationPositionProviderPlugin.cpp:150
virtual QString copyrightYears() const
Definition: RouteSimulationPositionProviderPlugin.cpp:58
A LineString that allows to store a contiguous set of line segments.
Definition: GeoDataLineString.h:75
GeoDataCoordinates & at(int pos)
Returns a reference to the coordinates of a node at a given position. This method detaches the return...
Definition: GeoDataLineString.cpp:143
PositionProviderStatus
Definition: PositionProviderPluginInterface.h:25
virtual QString nameId() const
Returns the unique name of the plugin.
Definition: RouteSimulationPositionProviderPlugin.cpp:38
virtual qreal speed() const
Returns the speed of the gps device in meters per second.
Definition: RouteSimulationPositionProviderPlugin.cpp:144
virtual bool isInitialized() const
Definition: RouteSimulationPositionProviderPlugin.cpp:139
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
virtual QList< PluginAuthor > pluginAuthors() const
Definition: RouteSimulationPositionProviderPlugin.cpp:63
QDateTime currentDateTime()
virtual QString guiString() const
Returns the string that should appear in the user interface.
Definition: RouteSimulationPositionProviderPlugin.cpp:43
bool isEmpty() const
Returns whether the LineString has no nodes at all.
Definition: GeoDataLineString.cpp:133
RouteSimulationPositionProviderPlugin()
Definition: RouteSimulationPositionProviderPlugin.cpp:103
const MarbleModel * marbleModel() const
Definition: PositionProviderPlugin.cpp:37
virtual PositionProviderPlugin * newInstance() const
Create a new PositionProvider Plugin and return it.
Definition: RouteSimulationPositionProviderPlugin.cpp:76
virtual PositionProviderStatus status() const
Definition: RouteSimulationPositionProviderPlugin.cpp:81
Definition: GeoDataAccuracy.h:22
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
singleShot
QVector< GeoDataPlacemark * > placemarkList() const
A convenience function that returns all placemarks in this container.
Definition: GeoDataContainer.cpp:214
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.