• 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
GeoDataMultiTrack_p.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 MARBLE_GEODATAMULTITRACKPRIVATE_H
11 #define MARBLE_GEODATAMULTITRACKPRIVATE_H
12 
13 #include "GeoDataGeometry_p.h"
14 
15 #include "GeoDataTypes.h"
16 #include "GeoDataTrack.h"
17 
18 namespace Marble
19 {
20 
21 class GeoDataMultiTrackPrivate : public GeoDataGeometryPrivate
22 {
23  public:
24  GeoDataMultiTrackPrivate()
25  {
26  }
27 
28  ~GeoDataMultiTrackPrivate()
29  {
30  qDeleteAll(m_vector);
31  }
32 
33  GeoDataMultiTrackPrivate& operator=( const GeoDataMultiTrackPrivate &other)
34  {
35  GeoDataGeometryPrivate::operator=( other );
36  qDeleteAll( m_vector );
37  foreach( GeoDataTrack *track, other.m_vector ) {
38  m_vector.append( new GeoDataTrack( *track ) );
39  }
40  return *this;
41  }
42 
43  virtual GeoDataGeometryPrivate* copy()
44  {
45  GeoDataMultiTrackPrivate* copy = new GeoDataMultiTrackPrivate;
46  *copy = *this;
47  return copy;
48  }
49 
50  virtual const char* nodeType() const
51  {
52  return GeoDataTypes::GeoDataMultiTrackType;
53  }
54 
55  virtual EnumGeometryId geometryId() const
56  {
57  return GeoDataMultiTrackId;
58  }
59  QVector<GeoDataTrack*> m_vector;
60 };
61 
62 } // namespace Marble
63 
64 #endif
Marble::GeoDataMultiTrackPrivate
Definition: GeoDataMultiTrack_p.h:21
Marble::GeoDataMultiTrackId
Definition: Serializable.h:47
Marble::GeoDataTrack
A geometry for tracking objects made of (time, coordinates) pairs.
Definition: GeoDataTrack.h:54
GeoDataGeometry_p.h
Marble::GeoDataMultiTrackPrivate::copy
virtual GeoDataGeometryPrivate * copy()
Definition: GeoDataMultiTrack_p.h:43
GeoDataTrack.h
Marble::GeoDataGeometryPrivate
Definition: GeoDataGeometry_p.h:25
Marble::GeoDataMultiTrackPrivate::GeoDataMultiTrackPrivate
GeoDataMultiTrackPrivate()
Definition: GeoDataMultiTrack_p.h:24
Marble::GeoDataMultiTrackPrivate::operator=
GeoDataMultiTrackPrivate & operator=(const GeoDataMultiTrackPrivate &other)
Definition: GeoDataMultiTrack_p.h:33
Marble::GeoDataMultiTrackPrivate::~GeoDataMultiTrackPrivate
~GeoDataMultiTrackPrivate()
Definition: GeoDataMultiTrack_p.h:28
Marble::GeoDataTypes::GeoDataMultiTrackType
const char * GeoDataMultiTrackType
Definition: GeoDataTypes.cpp:61
Marble::GeoDataMultiTrackPrivate::geometryId
virtual EnumGeometryId geometryId() const
Definition: GeoDataMultiTrack_p.h:55
Marble::GeoDataGeometryPrivate::operator=
GeoDataGeometryPrivate & operator=(const GeoDataGeometryPrivate &other)
Definition: GeoDataGeometry_p.h:47
QVector
Marble::EnumGeometryId
EnumGeometryId
Definition: Serializable.h:40
GeoDataTypes.h
Marble::GeoDataMultiTrackPrivate::nodeType
virtual const char * nodeType() const
Definition: GeoDataMultiTrack_p.h:50
Marble::GeoDataMultiTrackPrivate::m_vector
QVector< GeoDataTrack * > m_vector
Definition: GeoDataMultiTrack_p.h:59
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