• 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
  • scene
GeoSceneHead.cpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2008 Torsten Rahn <rahn@kde.org>
3 
4  This file is part of the KDE project
5 
6  This library is free software you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License as published by the Free Software Foundation either
9  version 2 of the License, or (at your option) any later version.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Library General Public License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  aint with this library see the file COPYING.LIB. If not, write to
18  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  Boston, MA 02110-1301, USA.
20 */
21 
22 // Own
23 #include "GeoSceneHead.h"
24 
25 // Marble
26 #include "GeoSceneTypes.h"
27 #include "GeoSceneIcon.h"
28 #include "GeoSceneZoom.h"
29 #include "GeoSceneLicense.h"
30 
31 namespace Marble
32 {
33 
34 class GeoSceneHeadPrivate
35 {
36  public:
37  GeoSceneHeadPrivate()
38  : m_zoom(new GeoSceneZoom),
39  m_icon(new GeoSceneIcon),
40  m_license(new GeoSceneLicense),
41  m_name(),
42  m_target(),
43  m_theme(),
44  m_description(),
45  m_radius( 0.0 ),
46  m_visible( true )
47  {
48  }
49 
50  ~GeoSceneHeadPrivate()
51  {
52  delete m_icon;
53  delete m_zoom;
54  delete m_license;
55  }
56 
57  const char* nodeType() const
58  {
59  return GeoSceneTypes::GeoSceneHeadType;
60  }
61 
62  GeoSceneZoom* m_zoom;
63  GeoSceneIcon* m_icon;
64  GeoSceneLicense* m_license;
65 
66  QString m_name;
67  QString m_target;
68  QString m_theme;
69  QString m_description;
70  qreal m_radius;
71 
72  bool m_visible;
73 };
74 
75 
76 GeoSceneHead::GeoSceneHead()
77  : d( new GeoSceneHeadPrivate )
78 {
79 }
80 
81 GeoSceneHead::~GeoSceneHead()
82 {
83  delete d;
84 }
85 
86 const char* GeoSceneHead::nodeType() const
87 {
88  return d->nodeType();
89 }
90 
91 QString GeoSceneHead::name() const
92 {
93  return d->m_name;
94 }
95 
96 void GeoSceneHead::setName( const QString& name )
97 {
98  d->m_name = name;
99 }
100 
101 QString GeoSceneHead::target() const
102 {
103  return d->m_target;
104 }
105 
106 void GeoSceneHead::setTarget( const QString& target )
107 {
108  d->m_target = target;
109 }
110 
111 QString GeoSceneHead::theme() const
112 {
113  return d->m_theme;
114 }
115 
116 QString GeoSceneHead::mapThemeId() const
117 {
118  return d->m_target + '/' + d->m_theme + '/' + d->m_theme + ".dgml";
119 }
120 
121 void GeoSceneHead::setTheme( const QString& theme )
122 {
123  d->m_theme = theme;
124 }
125 
126 QString GeoSceneHead::description() const
127 {
128  return d->m_description;
129 }
130 
131 void GeoSceneHead::setDescription( const QString& description )
132 {
133  d->m_description = description;
134 }
135 
136 qreal GeoSceneHead::radius() const
137 {
138  return d->m_radius;
139 }
140 
141 void GeoSceneHead::setRadius( qreal radius )
142 {
143  d->m_radius = radius;
144 }
145 
146 bool GeoSceneHead::visible() const
147 {
148  return d->m_visible;
149 }
150 
151 void GeoSceneHead::setVisible( bool visible )
152 {
153  d->m_visible = visible;
154 }
155 
156 const GeoSceneIcon* GeoSceneHead::icon() const
157 {
158  return d->m_icon;
159 }
160 
161 GeoSceneIcon* GeoSceneHead::icon()
162 {
163  return d->m_icon;
164 }
165 
166 const GeoSceneZoom* GeoSceneHead::zoom() const
167 {
168  return d->m_zoom;
169 }
170 
171 GeoSceneZoom* GeoSceneHead::zoom()
172 {
173  return d->m_zoom;
174 }
175 
176 const GeoSceneLicense* GeoSceneHead::license() const {
177  return d->m_license;
178 }
179 
180 GeoSceneLicense* GeoSceneHead::license()
181 {
182  return d->m_license;
183 }
184 
185 }
Marble::GeoSceneHead::target
QString target() const
Definition: GeoSceneHead.cpp:101
GeoSceneHead.h
GeoSceneTypes.h
Marble::GeoSceneIcon
Icon properties of a GeoScene document.
Definition: GeoSceneIcon.h:38
Marble::GeoSceneHead::license
const GeoSceneLicense * license() const
Definition: GeoSceneHead.cpp:176
Marble::GeoSceneHead::description
QString description() const
Definition: GeoSceneHead.cpp:126
Marble::GeoSceneHead::nodeType
virtual const char * nodeType() const
Definition: GeoSceneHead.cpp:86
Marble::GeoSceneHead::mapThemeId
QString mapThemeId() const
Definition: GeoSceneHead.cpp:116
Marble::GeoSceneHead::setTarget
void setTarget(const QString &target)
Definition: GeoSceneHead.cpp:106
Marble::GeoSceneTypes::GeoSceneHeadType
const char * GeoSceneHeadType
Definition: GeoSceneTypes.cpp:22
Marble::GeoSceneHead::visible
bool visible() const
Definition: GeoSceneHead.cpp:146
Marble::GeoSceneHead::~GeoSceneHead
~GeoSceneHead()
Definition: GeoSceneHead.cpp:81
Marble::GeoSceneHead::setVisible
void setVisible(bool visible)
Definition: GeoSceneHead.cpp:151
Marble::GeoSceneHead::setName
void setName(const QString &name)
Definition: GeoSceneHead.cpp:96
Marble::GeoSceneHead::setDescription
void setDescription(const QString &)
Definition: GeoSceneHead.cpp:131
GeoSceneZoom.h
Marble::radius
static qreal radius(qreal zoom)
Definition: thumbnailer.cpp:99
Marble::GeoSceneHead::setTheme
void setTheme(const QString &theme)
Definition: GeoSceneHead.cpp:121
QString
Marble::GeoSceneHead::theme
QString theme() const
Definition: GeoSceneHead.cpp:111
Marble::GeoSceneHead::name
QString name() const
Definition: GeoSceneHead.cpp:91
Marble::GeoSceneHead::icon
const GeoSceneIcon * icon() const
Definition: GeoSceneHead.cpp:156
Marble::GeoSceneHead::GeoSceneHead
GeoSceneHead()
Definition: GeoSceneHead.cpp:76
Marble::GeoSceneHead::zoom
const GeoSceneZoom * zoom() const
Definition: GeoSceneHead.cpp:166
Marble::GeoSceneHead::setRadius
void setRadius(qreal radius)
Definition: GeoSceneHead.cpp:141
Marble::GeoSceneZoom
Zoom properties of a GeoScene document.
Definition: GeoSceneZoom.h:34
GeoSceneLicense.h
GeoSceneIcon.h
Marble::GeoSceneLicense
Definition: GeoSceneLicense.h:23
Marble::GeoSceneHead::radius
qreal radius() const
Planet radius, 0.0 if unknown.
Definition: GeoSceneHead.cpp:136
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