• 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
GeoDataNetworkLink.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 Mayank Madan <maddiemadan@gmail.com>
9 //
10 
11 #include "GeoDataNetworkLink.h"
12 #include "GeoDataTypes.h"
13 
14 namespace Marble {
15 
16 class GeoDataNetworkLinkPrivate
17 {
18 public:
19  bool m_refreshVisibility;
20 
21  bool m_flyToView;
22 
23  GeoDataLink m_link;
24 
25  GeoDataNetworkLinkPrivate();
26 };
27 
28 GeoDataNetworkLinkPrivate::GeoDataNetworkLinkPrivate() :
29  m_refreshVisibility(false), m_flyToView(false)
30 {
31  // nothing to do
32 }
33 
34 GeoDataNetworkLink::GeoDataNetworkLink() : d( new GeoDataNetworkLinkPrivate )
35 {
36  // nothing to do
37 }
38 
39 GeoDataNetworkLink::GeoDataNetworkLink( const Marble::GeoDataNetworkLink &other ) :
40  GeoDataFeature( other ), d( new GeoDataNetworkLinkPrivate( *other.d ) )
41 {
42  // nothing to do
43 }
44 
45 GeoDataNetworkLink &GeoDataNetworkLink::operator=( const GeoDataNetworkLink &other )
46 {
47  GeoDataFeature::operator=( other );
48  *d = *other.d;
49  return *this;
50 }
51 
52 bool GeoDataNetworkLink::operator==( const GeoDataNetworkLink &other ) const
53 {
54  return equals( other) &&
55  d->m_refreshVisibility == other.d->m_refreshVisibility &&
56  d->m_link == other.d->m_link &&
57  d->m_flyToView == other.d->m_flyToView;
58 }
59 
60 bool GeoDataNetworkLink::operator!=( const GeoDataNetworkLink &other ) const
61 {
62  return !this->operator==( other );
63 }
64 
65 GeoDataNetworkLink::~GeoDataNetworkLink()
66 {
67  delete d;
68 }
69 
70 const char *GeoDataNetworkLink::nodeType() const
71 {
72  return GeoDataTypes::GeoDataNetworkLinkType;
73 }
74 
75 bool GeoDataNetworkLink::refreshVisibility() const
76 {
77  return d->m_refreshVisibility;
78 }
79 
80 void GeoDataNetworkLink::setRefreshVisibility( bool refreshVisibility )
81 {
82  d->m_refreshVisibility = refreshVisibility;
83 }
84 
85 bool GeoDataNetworkLink::flyToView() const
86 {
87  return d->m_flyToView;
88 }
89 
90 void GeoDataNetworkLink::setFlyToView( bool flyToView)
91 {
92  d->m_flyToView = flyToView;
93 }
94 
95 GeoDataLink &GeoDataNetworkLink::link()
96 {
97  return d->m_link;
98 }
99 
100 const GeoDataLink& GeoDataNetworkLink::link() const
101 {
102  return d->m_link;
103 }
104 
105 void GeoDataNetworkLink::setLink(const GeoDataLink &link)
106 {
107  d->m_link = link;
108 }
109 
110 }
Marble::GeoDataNetworkLink::setFlyToView
void setFlyToView(bool flyToView)
Definition: GeoDataNetworkLink.cpp:90
Marble::GeoDataNetworkLink::flyToView
bool flyToView() const
Definition: GeoDataNetworkLink.cpp:85
Marble::GeoDataNetworkLink::operator=
GeoDataNetworkLink & operator=(const GeoDataNetworkLink &other)
Definition: GeoDataNetworkLink.cpp:45
Marble::GeoDataFeature::equals
bool equals(const GeoDataFeature &other) const
Definition: GeoDataFeature.cpp:94
Marble::GeoDataLink
Definition: GeoDataLink.h:22
Marble::GeoDataNetworkLink::link
GeoDataLink & link()
Definition: GeoDataNetworkLink.cpp:95
Marble::GeoDataNetworkLink::operator==
bool operator==(const GeoDataNetworkLink &other) const
Definition: GeoDataNetworkLink.cpp:52
Marble::GeoDataNetworkLink::operator!=
bool operator!=(const GeoDataNetworkLink &other) const
Definition: GeoDataNetworkLink.cpp:60
Marble::GeoDataNetworkLink::setLink
void setLink(const GeoDataLink &link)
Definition: GeoDataNetworkLink.cpp:105
GeoDataNetworkLink.h
Marble::GeoDataNetworkLink
Definition: GeoDataNetworkLink.h:23
Marble::GeoDataNetworkLink::setRefreshVisibility
void setRefreshVisibility(bool refreshVisibility)
Definition: GeoDataNetworkLink.cpp:80
Marble::GeoDataFeature
A base class for all geodata features.
Definition: GeoDataFeature.h:57
Marble::GeoDataNetworkLink::~GeoDataNetworkLink
~GeoDataNetworkLink()
Definition: GeoDataNetworkLink.cpp:65
Marble::GeoDataTypes::GeoDataNetworkLinkType
const char * GeoDataNetworkLinkType
Definition: GeoDataTypes.cpp:62
Marble::GeoDataNetworkLink::nodeType
virtual const char * nodeType() const
Provides type information for downcasting a GeoNode.
Definition: GeoDataNetworkLink.cpp:70
GeoDataTypes.h
Marble::GeoDataNetworkLink::GeoDataNetworkLink
GeoDataNetworkLink()
Definition: GeoDataNetworkLink.cpp:34
Marble::GeoDataFeature::operator=
GeoDataFeature & operator=(const GeoDataFeature &other)
Definition: GeoDataFeature.cpp:80
Marble::GeoDataNetworkLink::refreshVisibility
bool refreshVisibility() const
Definition: GeoDataNetworkLink.cpp:75
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