PositionTracking Class Reference
from PyKDE4.marble import *
Inherits: QObject
Namespace: Marble
Detailed Description
- Abstract class:
- This class can be used as a base class for new classes, but can not be instantiated directly.
Signal Documentation
- Signal syntax:
QObject.connect(source, SIGNAL("gpsLocation(Marble::GeoDataCoordinates, qreal)"), target_slot)
- Signal syntax:
QObject.connect(source, SIGNAL("statusChanged(Marble::PositionProviderStatus)"), target_slot)
Method Documentation
Returns the estimated accuracy of the current position
Removes all track segments which were recorded
Returns the current position, if any
provides direction of the gps device in degrees with geographical north
gives the error message from the current position provider
bool isTrackEmpty |
( |
|
self ) |
|
Returns true if there is no position in the track
float length |
( |
self, |
|
|
|
float |
planetRadius |
|
) |
|
|
|
Returns the total track length
- Parameters:
-
| planetRadius | Scale factor, usually the radius of the underlying planet, e.g. EARTH_RADIUS
|
- Returns:
- Length of all track segments on the unit sphere scaled by planetRadius
bool saveTrack |
( |
self, |
|
|
|
QString |
fileName |
|
) |
|
|
|
Saves the track document to file
setTrackVisible |
( |
self, |
|
|
|
bool |
visible |
|
) |
|
|
|
Toggles the visibility of the Position Tracking document
provides speed of the gps device
QDateTime timestamp |
( |
|
self ) |
|
Returns the timestamp of last recent tracking point.
bool trackVisible |
( |
|
self ) |
|
provides the visibility of the Position Tracking document