• 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
GeoDataTour.cpp
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 2013 Illya Kovalevskyy <illya.kovalevskyy@gmail.com>
9 //
10 
11 #include "GeoDataTour.h"
12 #include "GeoDataPlaylist.h"
13 #include "GeoDataTypes.h"
14 
15 namespace Marble
16 {
17 
18 class GeoDataTourPrivate
19 {
20 public:
21  GeoDataTourPrivate() :
22  m_playlist(0)
23  {}
24  GeoDataPlaylist *m_playlist;
25 };
26 
27 const GeoDataTour GeoDataTour::null;
28 
29 GeoDataTour::GeoDataTour() :
30  GeoDataFeature(),
31  d(new GeoDataTourPrivate)
32 {
33 }
34 
35 GeoDataTour::GeoDataTour(const GeoDataTour &other) :
36  GeoDataFeature(),
37  d(new GeoDataTourPrivate(*other.d))
38 {
39 }
40 
41 GeoDataTour& GeoDataTour::operator=(const GeoDataTour &other)
42 {
43  GeoDataFeature::operator=(other);
44  *d = *other.d;
45  return *this;
46 }
47 
48 bool GeoDataTour::operator==(const GeoDataTour& other) const
49 {
50  return equals( other ) &&
51  *d->m_playlist == *other.d->m_playlist;
52 }
53 
54 bool GeoDataTour::operator!=(const GeoDataTour& other) const
55 {
56  return !this->operator==(other);
57 }
58 
59 GeoDataTour::~GeoDataTour()
60 {
61  delete d;
62 }
63 
64 GeoDataPlaylist* GeoDataTour::playlist()
65 {
66  return d->m_playlist;
67 }
68 
69 const GeoDataPlaylist* GeoDataTour::playlist() const
70 {
71  return d->m_playlist;
72 }
73 
74 void GeoDataTour::setPlaylist(GeoDataPlaylist *playlist)
75 {
76  d->m_playlist = playlist;
77  d->m_playlist->setParent( this );
78 }
79 
80 const char *GeoDataTour::nodeType() const
81 {
82  return GeoDataTypes::GeoDataTourType;
83 }
84 
85 } // namespace Marble
Marble::GeoDataTour::null
static const GeoDataTour null
Definition: GeoDataTour.h:41
Marble::GeoDataTour::operator==
bool operator==(const GeoDataTour &other) const
Definition: GeoDataTour.cpp:48
Marble::GeoDataFeature::equals
bool equals(const GeoDataFeature &other) const
Definition: GeoDataFeature.cpp:94
Marble::GeoDataTour
Definition: GeoDataTour.h:25
Marble::GeoDataTour::~GeoDataTour
virtual ~GeoDataTour()
Definition: GeoDataTour.cpp:59
Marble::GeoDataTour::nodeType
virtual const char * nodeType() const
Provides type information for downcasting a GeoData.
Definition: GeoDataTour.cpp:80
Marble::GeoDataPlaylist
Definition: GeoDataPlaylist.h:22
Marble::GeoDataTypes::GeoDataTourType
const char * GeoDataTourType
Definition: GeoDataTypes.cpp:83
Marble::GeoDataTour::setPlaylist
void setPlaylist(GeoDataPlaylist *playlist)
Definition: GeoDataTour.cpp:74
GeoDataPlaylist.h
Marble::GeoDataTour::GeoDataTour
GeoDataTour()
Definition: GeoDataTour.cpp:29
Marble::GeoDataFeature
A base class for all geodata features.
Definition: GeoDataFeature.h:57
Marble::GeoDataTour::operator=
GeoDataTour & operator=(const GeoDataTour &other)
Definition: GeoDataTour.cpp:41
Marble::GeoDataTour::operator!=
bool operator!=(const GeoDataTour &other) const
Definition: GeoDataTour.cpp:54
GeoDataTypes.h
Marble::GeoDataTour::playlist
GeoDataPlaylist * playlist()
Definition: GeoDataTour.cpp:64
GeoDataTour.h
Marble::GeoDataFeature::operator=
GeoDataFeature & operator=(const GeoDataFeature &other)
Definition: GeoDataFeature.cpp:80
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