Marble

GeoDataTour.cpp
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2013 Illya Kovalevskyy <[email protected]>
4 //
5 
6 #include "GeoDataTour.h"
7 #include "GeoDataTour_p.h"
8 
9 
10 namespace Marble
11 {
12 
13 const GeoDataTour GeoDataTour::null;
14 
15 GeoDataTour::GeoDataTour()
16  : GeoDataFeature( new GeoDataTourPrivate )
17 {
18  // nothing to do
19 }
20 
21 GeoDataTour::GeoDataTour(const GeoDataTour& other)
22  : GeoDataFeature(other, new GeoDataTourPrivate(*other.d_func()))
23 {
24 }
25 
26 GeoDataTour::~GeoDataTour()
27 {
28  // nothing to do;
29 }
30 
31 GeoDataTour& GeoDataTour::operator=(const GeoDataTour& other)
32 {
33  if (this != &other) {
34  Q_D(GeoDataTour);
35  *d = *other.d_func();
36  }
37 
38  return *this;
39 }
40 
41 
42 bool GeoDataTour::operator==(const GeoDataTour& other) const
43 {
44  Q_D(const GeoDataTour);
45  return equals( other ) &&
46  *d->m_playlist == *other.d_func()->m_playlist;
47 }
48 
49 bool GeoDataTour::operator!=(const GeoDataTour& other) const
50 {
51  return !this->operator==(other);
52 }
53 
54 GeoDataFeature * GeoDataTour::clone() const
55 {
56  return new GeoDataTour(*this);
57 }
58 
59 
60 GeoDataPlaylist* GeoDataTour::playlist()
61 {
62  Q_D(GeoDataTour);
63  return d->m_playlist;
64 }
65 
66 const GeoDataPlaylist* GeoDataTour::playlist() const
67 {
68  Q_D(const GeoDataTour);
69  return d->m_playlist;
70 }
71 
72 void GeoDataTour::setPlaylist(GeoDataPlaylist *playlist)
73 {
74  Q_D(GeoDataTour);
75  d->m_playlist = playlist;
76  d->m_playlist->setParent(this);
77 }
78 
79 const char *GeoDataTour::nodeType() const
80 {
81  return GeoDataTypes::GeoDataTourType;
82 }
83 
84 } // namespace Marble
bool operator==(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
Binds a QML item to a specific geodetic location in screen coordinates.
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Oct 2 2023 03:52:08 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.