• 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
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 GeoDataNetworkLink::~GeoDataNetworkLink()
53 {
54  delete d;
55 }
56 
57 const char *GeoDataNetworkLink::nodeType() const
58 {
59  return GeoDataTypes::GeoDataNetworkLinkType;
60 }
61 
62 bool GeoDataNetworkLink::refreshVisibility() const
63 {
64  return d->m_refreshVisibility;
65 }
66 
67 void GeoDataNetworkLink::setRefreshVisibility( bool refreshVisibility )
68 {
69  d->m_refreshVisibility = refreshVisibility;
70 }
71 
72 bool GeoDataNetworkLink::flyToView() const
73 {
74  return d->m_flyToView;
75 }
76 
77 void GeoDataNetworkLink::setFlyToView( bool flyToView)
78 {
79  d->m_flyToView = flyToView;
80 }
81 
82 GeoDataLink &GeoDataNetworkLink::link()
83 {
84  return d->m_link;
85 }
86 
87 const GeoDataLink& GeoDataNetworkLink::link() const
88 {
89  return d->m_link;
90 }
91 
92 void GeoDataNetworkLink::setLink(const GeoDataLink &link)
93 {
94  d->m_link = link;
95 }
96 
97 }
Marble::GeoDataNetworkLink::setFlyToView
void setFlyToView(bool flyToView)
Definition: GeoDataNetworkLink.cpp:77
Marble::GeoDataNetworkLink::flyToView
bool flyToView() const
Definition: GeoDataNetworkLink.cpp:72
Marble::GeoDataNetworkLink::operator=
GeoDataNetworkLink & operator=(const GeoDataNetworkLink &other)
Definition: GeoDataNetworkLink.cpp:45
Marble::GeoDataLink
Definition: GeoDataLink.h:22
Marble::GeoDataNetworkLink::link
GeoDataLink & link()
Definition: GeoDataNetworkLink.cpp:82
Marble::GeoDataNetworkLink::setLink
void setLink(const GeoDataLink &link)
Definition: GeoDataNetworkLink.cpp:92
GeoDataNetworkLink.h
Marble::GeoDataNetworkLink
Definition: GeoDataNetworkLink.h:23
Marble::GeoDataNetworkLink::setRefreshVisibility
void setRefreshVisibility(bool refreshVisibility)
Definition: GeoDataNetworkLink.cpp:67
Marble::GeoDataFeature
A base class for all geodata features.
Definition: GeoDataFeature.h:55
Marble::GeoDataNetworkLink::~GeoDataNetworkLink
~GeoDataNetworkLink()
Definition: GeoDataNetworkLink.cpp:52
Marble::GeoDataTypes::GeoDataNetworkLinkType
const char * GeoDataNetworkLinkType
Definition: GeoDataTypes.cpp:58
Marble::GeoDataNetworkLink::nodeType
virtual const char * nodeType() const
Provides type information for downcasting a GeoNode.
Definition: GeoDataNetworkLink.cpp:57
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:62
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