marble/src
GpsTracking Class Reference
#include <GpsTracking.h>
Detailed Description
Definition at line 39 of file GpsTracking.h.
Public Types | |
| enum | TrackingMethod { Gps, IP, MobilePhone } |
Public Slots | |
| void | updateIp () |
| void | getData (bool error) |
Public Member Functions | |
| GpsTracking (GpxFile *currentGpx, TrackingMethod method=Gps, QObject *parent=0) | |
| ~GpsTracking () | |
| bool | update (const QSize &canvasSize, ViewParams *viewParams, QRegion ®) |
| void | construct (const QSize &canvasSize, ViewParams *viewParams) |
| QRegion | genRegion (const QSize &canvasSize, ViewParams *viewParams) |
| void | draw (ClipPainter *painter, const QSize &canvasSize, ViewParams *viewParams) |
Member Enumeration Documentation
Constructor & Destructor Documentation
| GpsTracking::GpsTracking | ( | GpxFile * | currentGpx, | |
| TrackingMethod | method = Gps, |
|||
| QObject * | parent = 0 | |||
| ) | [explicit] |
Definition at line 24 of file GpsTracking.cpp.
| GpsTracking::~GpsTracking | ( | ) |
Definition at line 51 of file GpsTracking.cpp.
Member Function Documentation
| bool GpsTracking::update | ( | const QSize & | canvasSize, | |
| ViewParams * | viewParams, | |||
| QRegion & | reg | |||
| ) |
update the gps object
this function is designed to be polled at a regular interval so that the gps object can update its position and construct the new polygon that needs to be painted to screen.
- Parameters:
-
canvasSize current size of view radius current radius of globe invRotAxis current Quaternion representation of globe. reg the region on screen that needs to be re-painted following this update
- Returns:
truethe region of the screen needs to be repaintedfalsethe gps object was not updated so no repaint nessary.
Definition at line 163 of file GpsTracking.cpp.
| void GpsTracking::construct | ( | const QSize & | canvasSize, | |
| ViewParams * | viewParams | |||
| ) |
Definition at line 65 of file GpsTracking.cpp.
| QRegion GpsTracking::genRegion | ( | const QSize & | canvasSize, | |
| ViewParams * | viewParams | |||
| ) |
generates the region of the view that needs to be updated when the position of the gps changes.
it is a union of the old position with the new one.
- Parameters:
-
canvasSize current size of view. radius current radius invRotAxis current Quaternion representation of globe.
- Returns:
- QRegion representation of where on the view needs to be updated.
Definition at line 115 of file GpsTracking.cpp.
| void GpsTracking::draw | ( | ClipPainter * | painter, | |
| const QSize & | canvasSize, | |||
| ViewParams * | viewParams | |||
| ) |
Definition at line 242 of file GpsTracking.cpp.
| void GpsTracking::updateIp | ( | ) | [slot] |
Definition at line 138 of file GpsTracking.cpp.
| void GpsTracking::getData | ( | bool | error | ) | [slot] |
Definition at line 129 of file GpsTracking.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference