• 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
GeoDataMultiTrack.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 2012 Thibaut Gridel <tgridel@free.fr>
9 
10 #ifndef GEODATAMULTITRACK_H
11 #define GEODATAMULTITRACK_H
12 
13 #include "geodata_export.h"
14 
15 #include "GeoDataGeometry.h"
16 
17 #include <QVector>
18 
19 namespace Marble
20 {
21 
22 class GeoDataMultiTrackPrivate;
23 class GeoDataTrack;
24 
25 class GEODATA_EXPORT GeoDataMultiTrack : public GeoDataGeometry
26 {
27 public:
28  GeoDataMultiTrack();
29  explicit GeoDataMultiTrack( const GeoDataGeometry& other );
30 
31  virtual ~GeoDataMultiTrack();
32 
33  virtual const GeoDataLatLonAltBox& latLonAltBox() const;
34 
35  int size() const;
36  GeoDataTrack& at( int pos );
37  const GeoDataTrack& at( int pos ) const;
38  GeoDataTrack& operator[]( int pos );
39  const GeoDataTrack& operator[]( int pos ) const;
40 
41  GeoDataTrack& first();
42  const GeoDataTrack& first() const;
43  GeoDataTrack& last();
44  const GeoDataTrack& last() const;
45 
49  GeoDataTrack* child( int );
50 
54  const GeoDataTrack* child( int ) const;
55 
59  int childPosition( GeoDataTrack *child);
60 
64  void append( GeoDataTrack *other );
65 
66  GeoDataMultiTrack& operator << ( const GeoDataTrack& value );
67 
68  QVector<GeoDataTrack*>::Iterator begin();
69  QVector<GeoDataTrack*>::Iterator end();
70  QVector<GeoDataTrack*>::ConstIterator constBegin() const;
71  QVector<GeoDataTrack*>::ConstIterator constEnd() const;
72  void clear();
73  QVector<GeoDataTrack> vector() const;
74 
75  QVector<GeoDataTrack*>::Iterator erase ( QVector<GeoDataTrack*>::Iterator pos );
76  QVector<GeoDataTrack*>::Iterator erase ( QVector<GeoDataTrack*>::Iterator begin,
77  QVector<GeoDataTrack*>::Iterator end );
78 
79  // Serialize the Placemark to @p stream
80  virtual void pack( QDataStream& stream ) const;
81  // Unserialize the Placemark from @p stream
82  virtual void unpack( QDataStream& stream );
83  private:
84  GeoDataMultiTrackPrivate *p() const;
85 };
86 
87 }
88 
89 #endif // GEODATAMULTITRACK_H
Marble::GeoDataMultiTrackPrivate
Definition: GeoDataMultiTrack_p.h:21
Marble::GeoDataMultiTrack
Definition: GeoDataMultiTrack.h:25
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
GEODATA_EXPORT
#define GEODATA_EXPORT
Definition: geodata_export.h:22
geodata_export.h
Marble::operator<<
QTextStream & operator<<(QTextStream &stream, const RoutingInstruction &i)
Definition: RoutingInstruction.cpp:455
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