• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

marble/src

GpsTracking Class Reference

#include <GpsTracking.h>

Inheritance diagram for GpsTracking:

Inheritance graph
[legend]

List of all members.


Detailed Description

Author:
Andrew Manson <g.real.ate@gmail.com>

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 &reg)
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

enum GpsTracking::TrackingMethod

Enumerator:
Gps 
IP 
MobilePhone 

Definition at line 45 of file GpsTracking.h.


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:
true the region of the screen needs to be repainted false the 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:
  • GpsTracking.h
  • GpsTracking.cpp

marble/src

Skip menu "marble/src"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal