marble
PositionSource.cpp
Go to the documentation of this file.
93 foreach( const Marble::PositionProviderPlugin *plugin, pluginManager->positionProviderPlugins() ) {
115 connect( m_marbleWidget->model()->positionTracking(), SIGNAL(gpsLocation(GeoDataCoordinates,qreal)),
117 connect( m_marbleWidget->model()->positionTracking(), SIGNAL(statusChanged(PositionProviderStatus)),
137 bool const hasPosition = m_marbleWidget->model()->positionTracking()->status() == Marble::PositionProviderStatusAvailable;
140 Marble::GeoDataCoordinates position = m_marbleWidget->model()->positionTracking()->currentLocation();
146 m_speed = m_marbleWidget->model()->positionTracking()->speed() * Marble::METER2KM / Marble::SEC2HOUR;
QString source() const
Definition: position-tracking.qml:12
bool hasPosition() const
void activeChanged()
This file contains the headers for MarbleModel.
QList< const PositionProviderPlugin * > positionProviderPlugins() const
Returns all available PositionProviderPlugins.
Definition: PluginManager.cpp:84
MarbleWidget * map()
qreal latitude(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
retrieves the latitude of the GeoDataCoordinates object use the unit parameter to switch between Radi...
Definition: GeoDataCoordinates.cpp:751
Represents a coordinate with the properties of a name and coordinates.
Definition: Coordinate.h:28
The abstract class that provides position information.
Definition: PositionProviderPlugin.h:26
Definition: PositionTracking.h:31
qreal altitude() const
return the altitude of the Point in meters
Definition: GeoDataCoordinates.cpp:1197
Coordinate * position()
void setMarbleModel(const MarbleModel *)
Definition: PositionProviderPlugin.cpp:42
bool isEmpty() const
virtual QString nameId() const =0
Returns the unique name of the plugin.
PositionProviderStatus
Definition: PositionProviderPluginInterface.h:25
qreal longitude(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
retrieves the longitude of the GeoDataCoordinates object use the unit parameter to switch between Rad...
Definition: GeoDataCoordinates.cpp:739
void hasPositionChanged()
void positionChanged()
bool active() const
qreal speed() const
void mapChanged()
virtual PositionProviderPlugin * newInstance() const =0
Create a new PositionProvider Plugin and return it.
void setPositionProviderPlugin(PositionProviderPlugin *plugin)
Change the position provider to use.
Definition: PositionTracking.cpp:184
Wraps a Marble::MarbleWidget, providing access to important properties and methods.
Definition: MarbleDeclarativeWidget.h:50
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void speedChanged()
void sourceChanged()
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.