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

marble

  • sources
  • kde-4.14
  • 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 
69  bool operator==( const GeoDataTrack& other ) const;
70  bool operator!=( const GeoDataTrack& other ) const;
71 
78  bool interpolate() const;
79 
85  void setInterpolate(bool on);
86 
91  QDateTime firstWhen() const;
92 
97  QDateTime lastWhen() const;
98 
103  QList<GeoDataCoordinates> coordinatesList() const;
104 
109  QList<QDateTime> whenList() const;
110 
118  GeoDataCoordinates coordinatesAt( const QDateTime &when ) const;
119 
124  GeoDataCoordinates coordinatesAt( int index ) const;
125 
130  void addPoint( const QDateTime &when, const GeoDataCoordinates &coord );
131 
137  void appendCoordinates( const GeoDataCoordinates &coord );
138 
142  void appendAltitude( qreal altitude );
143 
149  void appendWhen( const QDateTime &when );
150 
154  void clear();
155 
159  void removeBefore( const QDateTime &when );
160 
164  void removeAfter( const QDateTime &when );
165 
169  const GeoDataLineString *lineString() const;
170 
174  GeoDataExtendedData& extendedData() const;
175 
180  void setExtendedData( const GeoDataExtendedData& extendedData );
181 
182  virtual const char* nodeType() const;
183  virtual EnumGeometryId geometryId() const;
184  virtual const GeoDataLatLonAltBox& latLonAltBox() const;
185  virtual void pack( QDataStream& stream ) const;
186  virtual void unpack( QDataStream& stream );
187 
188 private:
189  GeoDataTrackPrivate *d;
190 };
191 
192 }
193 
194 Q_DECLARE_METATYPE( Marble::GeoDataTrack* )
195 
196 #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
QDataStream
Marble::GeoDataGeometry
A base class for all geodata features.
Definition: GeoDataGeometry.h:47
Marble::operator==
bool operator==(const DownloadPolicyKey &lhs, const DownloadPolicyKey &rhs)
Definition: DownloadPolicy.h:49
Marble::GeoDataExtendedData
a class which allows to add custom data to KML Feature.
Definition: GeoDataExtendedData.h:35
Marble::operator!=
bool operator!=(GeoDataLatLonBox const &lhs, GeoDataLatLonBox const &rhs)
Definition: GeoDataLatLonBox.cpp:59
QList
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
QDateTime
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 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
  • 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