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

marble

  • sources
  • kde-4.12
  • kdeedu
  • marble
  • src
  • lib
  • marble
  • geodata
  • data
GeoDataTrack.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2011 Guillaume Martres <smarter@ubuntu.com>
9 //
10 
11 #ifndef MARBLE_GEODATAGXTRACK_H
12 #define MARBLE_GEODATAGXTRACK_H
13 
14 #include "GeoDataCoordinates.h"
15 #include "GeoDataGeometry.h"
16 
17 #include <QDateTime>
18 #include <QList>
19 
20 namespace Marble {
21 
22 class GeoDataTrackPrivate;
23 class GeoDataExtendedData;
24 class GeoDataLineString;
25 
54 class GEODATA_EXPORT GeoDataTrack : public GeoDataGeometry
55 {
56 
57 public:
58  GeoDataTrack();
59  explicit GeoDataTrack( const GeoDataGeometry &other );
60 
64  int size() const;
65 
72  bool interpolate() const;
73 
79  void setInterpolate(bool on);
80 
85  QDateTime firstWhen() const;
86 
91  QDateTime lastWhen() const;
92 
97  QList<GeoDataCoordinates> coordinatesList() const;
98 
103  QList<QDateTime> whenList() const;
104 
112  GeoDataCoordinates coordinatesAt( const QDateTime &when ) const;
113 
118  GeoDataCoordinates coordinatesAt( int index ) const;
119 
124  void addPoint( const QDateTime &when, const GeoDataCoordinates &coord );
125 
131  void appendCoordinates( const GeoDataCoordinates &coord );
132 
136  void appendAltitude( qreal altitude );
137 
143  void appendWhen( const QDateTime &when );
144 
148  void clear();
149 
153  void removeBefore( const QDateTime &when );
154 
158  void removeAfter( const QDateTime &when );
159 
163  const GeoDataLineString *lineString() const;
164 
168  GeoDataExtendedData& extendedData() const;
169 
174  void setExtendedData( const GeoDataExtendedData& extendedData );
175 
176  virtual const char* nodeType() const;
177  virtual EnumGeometryId geometryId() const;
178  virtual const GeoDataLatLonAltBox& latLonAltBox() const;
179  virtual void pack( QDataStream& stream ) const;
180  virtual void unpack( QDataStream& stream );
181 
182 private:
183  GeoDataTrackPrivate *d;
184 };
185 
186 }
187 
188 Q_DECLARE_METATYPE( Marble::GeoDataTrack* )
189 
190 #endif // MARBLE_GEODATAGXTRACK_H
GeoDataCoordinates.h
interpolate
void interpolate(MarbleWidget *widget, qreal value)
Definition: examples/cpp/animation-video/main.cpp:68
Marble::GeoDataCoordinates
A 3d point representation.
Definition: GeoDataCoordinates.h:52
Marble::GeoDataTrack
A geometry for tracking objects made of (time, coordinates) pairs.
Definition: GeoDataTrack.h:54
Marble::GeoDataGeometry
A base class for all geodata features.
Definition: GeoDataGeometry.h:47
Marble::GeoDataExtendedData
a class which allows to add custom data to KML Feature.
Definition: GeoDataExtendedData.h:35
Marble::GeoDataLineString
A LineString that allows to store a contiguous set of line segments.
Definition: GeoDataLineString.h:75
Marble::EnumGeometryId
EnumGeometryId
Definition: Serializable.h:40
GEODATA_EXPORT
#define GEODATA_EXPORT
Definition: geodata_export.h:22
GeoDataGeometry.h
Marble::GeoDataLatLonAltBox
A class that defines a 3D bounding box for geographic data.
Definition: GeoDataLatLonAltBox.h:49
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal